ActionScript 1/2 :: Scaling SWF To Less Than Or Equal To Original Size

Apr 1, 2010

how to scale a SWF in the browser window, but not larger than the original stage size in the FLA file?  For instance, I've designed a course in Flash with stage size of 1024x768 in Flash.  In the published HTML document, I change the following values:
 
'width', '1024' changed to 'width', '100%'
'height', '768' changed to 'height', '100%'
'scale', 'noscale' changed to 'scale', '100%'
 
These changes in the HTML source code allow the SWF to size with the browser, but I don't want the SWF to grow larger than 1024x768 if the browser window is greater than these dimensions.  I want the max size of the SWF to be 1024x768 regardless of the browser window.
 
how to achieve this in the HTML source code and/or AS2?

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Vector Scaling Object Without Affecting The Original Point

Mar 30, 2005

Vector Scaling Object Without Affecting the Original Point

View 1 Replies

Save Image With Its Original Size?

May 7, 2011

In my Flex application I load an image into the Image control. After loading the image I can apply filters like color transform or grayscale etc and then I want to save the image with the filter applied. I am having trouble saving the image with the filters applied. With the following code the Image gets saved without the filters.However, if I use [code]...

View 1 Replies

ActionScript 3.0 :: Importing Pictures With Original Size

Nov 30, 2008

I have been making animations (frame by frame) that I put into live action films of myself. I use flash so that I don't get any lag from the pictures not being close enough together. Trouble is...whenever I import pictures into flash, it lowers their size so it fits in the middle. How you can import the pictures with their original size intact.

View 1 Replies

ActionScript 1/2 :: Loading A .swf But Doesn't Keep Size Of Original .swf?

Sep 16, 2009

I'm attemping to load a swf into my movie.  I have this code:
 
but.onPress = function() { _root.floors.createEmptyMovieClip("container",2); loadMovie("zoom.swf", "container");container._x = -460; container._y = -200;};
stop();

It loads in fine, but it is not staying the size of the stage of the .swf it was in before.
 
I tried setting the width and height of the container clip by:
 
container._width = 500; container._height = 100;
 
but once i added that it didn't load in?

View 17 Replies

Flash :: Return Movieclip To Original Size?

May 6, 2010

I made a gallery in flash. I have external images load in a fixed display area -- I call it 'imageStage'. When the image is loaded, I resize the movieclip at the _x and _y to make the image fit the stage.

But what happens -- when I flip prev/next through a couple images, they keep shrinking and shrinking. Images that are smaller than the fixed area are being shrunk even further.

I'm thinking maybe if I clear the existing image from the MovieClip, it will reset itself back to regular size and proportions. But I don't know how to go about it.

View 1 Replies

ActionScript 3.0 :: Drawing Image In Its Original Size?

Sep 24, 2010

I started with a simple code to draw image. But i didn't get the expected results. What i got is:1) Image gets rendered but it gets scaled to high resolution and images gets distorted.So i wanted to draw image in its original size. If image size is 300*400 then i want to get it drawn in its original size.I google searched and try to find on how to achieve it. But no success.i want to know how to achieve this two things:1) drawing image in its original size, i don't want it to get scaled .2) how to set the size of display screen ? when i ran the code, the display screen(flash) cover whole browser page area ? I want to set the screen size to 450*300I am using Flash Builder 4 for making actionscript project. Here is the code :

Code:
package
{

[code].....

View 1 Replies

ActionScript 2.0 :: Stop Scaling - Stop It Going Back To It Original Value And Scale Again And Again?

Jun 8, 2005

I have a movieclip that I want to be scaled to 400.After that I don�t want it to scale anymore.How can I stop it going back to it�s original value and scale again and again.I have the as in "On enter frame",I dont want a button to be pressed to start scaling.

View 6 Replies

ActionScript 3.0 :: Flashpaper Size Does Not Match The Original File

Apr 30, 2010

I have some pdf documents that have been converted to flashpaper, I'm using a little AS3 code to include in flash, however the size does not match the original file; i try load the swf (flashpaper file) into 800x600 movie, but not works, btw there is the code and screenshot

[Code]...

View 2 Replies

ActionScript 3.0 :: Resize External Swf To Its Original Stage Size?

May 13, 2010

Here is my problem (unfortunatelly didn't find solution @google or in this forum): I'm loading external swf[AS2] into main swf[AS3] using Loader class. The main swf is 800 x 600 and the external swf is 290 x 247. After adding the external swf to the main swf the external swf expands (scale to) from 290 x 247 to the main swf's size: 800 x 600. How can i prevent this? I want the loaded swf to save it's original stage size.

View 2 Replies

Javascript :: Show Flash Using Original Canvas Size Dimensions?

Sep 2, 2010

I have a generalized media player web app that I wish to be able to use flash in. The client uploads the flash to a particular directory, and a webpage is produced automatically that houses that flash file. The output of this process currently looks something like this:

<OBJECT id="flashContent" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000">
<PARAM value="always" name="allowScriptAccess" />
<PARAM value="#FFFFFF" name="bgcolor" />

[Code]......

I am trying to get the flash to display using the original canvas size (540 x 400 by default) but every time I load this in chrome I get 300 x 150 and in IE the box is square.

how to get it to render using the flash canvas size?

View 2 Replies

ActionScript 2.0 :: Changing Original External Swf Size In The Main Movie?

Sep 21, 2006

I have an external swf that loads into my main movie using loadMovie. The original .swf that is being loaded is larger than what I'd like to appear in the main movie. Is it possible to tell the movie clip that the external is being loaded into, to reduce the size of the loaded .swf?

note:
I tried a
scaleContent = true;

View 2 Replies

ActionScript 2.0 :: Scale And Zoom - Back To Its Original Size And Position?

Apr 19, 2004

how i could create a function to do the following. I have a mc and when you click on it i want it to scale too say 150% and move to a different x y position, then when you click on it again i want it to go back to its original size and position.

View 3 Replies

Actionscript 3 :: Loader Class: Resize External Swf To It's Original Stage Size?

May 12, 2010

Here is my problem (unfortunatelly didn't find solution @google):I'm loading external swf[AS2] into main swf[AS3] using Loader class. The main swf is 800 x 600 and the external swf is 300 x 200.After adding the external swf to the main swf the external swf expands it's size from 300 x 200 to the main swf's size: 800 x 600.

View 1 Replies

ActionScript 2.0 :: Make Swf File Lager Than Its Original Size / When Mouse Is Rolled Over

Nov 2, 2009

can any one tell me that how to make an swf file lager than its original size when mouse is rolled over to it .eg)like yahoo.com they have flash banners when the mouse is rolled over to it the flash banner enlarges than tis original size.

View 0 Replies

ActionScript 2.0 :: Flash8 - External Swf To Retain Its Size In The Center Of The 800x600 Original Movie

Mar 11, 2009

My original movie is 800x600 and my external swf is 700x525... I'm using the following script on a keyframe... loadMovieNum("123.swf", 1); ... and under normal circumstances this would work fine... however... I need the 700x525 external swf to retain its size in the center of the 800x600 original movie... right now it's edge to edge and showing what's going on 'offstage' in the external swf! What scripting am I missing? I'm using Flash 8 on a Mac.

View 2 Replies

ActionScript 1/2 :: Sliding Photo Gallery - Graphic Symbol A Different Size From The Original Template

Mar 16, 2009

I just pulled together a picture gallery, where the pictures simply scroll across the screen using arrows. I used the template from [URL] The problem is that when I added my own pictures, the graphic symbol was obviously a different size from the original template. So when the images scroll they should stop at a certain point as to not show any empty space. I changed the values that i guessed were the ones setting up where the graphic has to stop at, but it doesnt seem to be doing anything. The code below is the only script of any importance, at least that I know of. The other stuff just points to targets and gotoandplay stuff.

View 3 Replies

ActionScript 3.0 :: Flash Senocular's TransformTool - MovieClip Is Relocated Much Smaller Than Its Original Size ?

Jul 5, 2010

I see a number of cool sites and examples using Senocular's TransformTool. Most of them look and function really well. I've downloaded and reviewed the code for a number of different examples.I can see how everyone else's works.I'm having difficulty with 2 points:

1. When I select a movieClip, the TransformTool appears in the correct spot and in the correct dimensions. But the movieClip itself is relocated much above the TransformTool and is MUCH smaller than its original size and the current (and correct) dimensions of the TransformTool. Selecting one of the handles and dragging stretches the movieClip but does not make it the same dimensions as the TransformTool

2. Releasing one of the handles seems to cause the handle to behave in the same way the movieClip did -- you can resize and move the handle.

View 4 Replies

ActionScript 3.0 :: SWF Sound And Make The Flash Stage The Size Of The Original Screen Capture Video Of 1024 X 768

May 24, 2010

Made a swf [URL] some viewers see and hear fine but others are having sound and size issues and I need some practical answers. SIZE: I make the Flash stage the size of the original screen capture video of 1024 x 768 and right now it is set to

[Code]...

View 2 Replies

ActionScript 3.0 :: Scaling X And Y Size Of Stage When Published

Apr 26, 2011

How do you do this in AS 3.0?I did it in AS 2.0 with the following code:this.onLoad = function () { this._xscale = 133.33; this._yscale = 166.70;can get it working for AS 3.0.

View 2 Replies

ActionScript 3.0 :: Scaling MovieClip Size - Width Of Stage

Jun 21, 2011

Is there any performance difference? I am scaling a 2000 - 4000 wide movieclip, within a 600 wide stage. Does it matter which way I scale it in terms of CPU usage;
myMovieClip.scaleX *= 2;
or
myMovieClip.width *= 2;
The movieclip will be scaled multiple times and to varying sizes.

View 5 Replies

ActionScript 2.0 :: Scaling Background & Fixed Size Foreground?

Feb 3, 2006

Is it possible to have a single jpg (1024x768) scale up & down with the browser window (no matter the aspect ratio, stretched to 100% browser width/height), while keeping the foreground content (most likely added via loadMovie) in a fixed scale and centered on the screen? An example can be seen on the Second Story home page.

View 9 Replies

ActionScript 3.0 :: Scaling Movie Clips To Window Size?

Feb 22, 2009

I have a flash document with movie clips in it that i want to scale depending on the monitor or window size. it looks great on 1024 x 768.....but not on small laptops

View 6 Replies

ActionScript 2.0 :: Scaling TextArea Component To The Size Of The Browser Window

Sep 20, 2004

I'm using the textArea component, but i want to scale it to the size of the browser window. The problem is it scale the content(xml+css) and the scrollbar, and i want to just change the size. I've also tried to attach the Component and then setting the size, but that give the same problem.

View 3 Replies

ActionScript 3.0 :: Flash Scaling Size Of Source Image For Server?

Dec 5, 2010

I have code that allows users to upload images, which are of any dimension and file size, and have applied that data to a bytearray and a loader class, which is then displayed and saved to the server. The server has a memory size limit per file of 256k. Everything works well unless the image is too big. How to change the size of that source image so the server will accept it. I've been trying to assign the loader data, or the bytearray, to a Matrix, or a Bitmap, or a BitmapData, figuring one of these can scale the dimensions of the image which will bring down the file size. (To be completely clear: this isn't movieclip.scaleX -- that doesn't affect the size of the source image)

Code:
var _clickMe:ClickMe = new ClickMe();
var _imageLoader:Loader=new Loader();
var bytes:ByteArray=new ByteArray();
var fileRef:FileReference = new FileReference();
var _faceBitmap:Bitmap = new Bitmap();
[Code] .....

View 3 Replies

ActionScript 2.0 :: Scaling Background Image To Size Of Browser Window

May 7, 2005

I am trying to scale a background image to the size of the browser window. For some reason it does not fill the entire stage?

Stage.scaleMode = "noScale";
Stage.align = "TL";
background_mc._width =Stage.width
background_mc._height =Stage.height
background_mc.onResize = function() {
background_mc._width = Stage.width
background_mc._height = Stage.height
} Stage.addListener(background_mc);

View 1 Replies

ActionScript 2.0 :: Loader Component Handy In Loading JPEGs And Scaling Them To The Specified Size

Dec 13, 2004

I've found the loader component handy in loading JPEGs and scaling them to the specified size. However, I've found it a little annoying that when the image is loaded, sometimes you can see the image in it's original size for a fraction of a second before it's resized to fit the loader. Is there any way to avoid this -- such as the loader only being visible after the image is resized?

View 1 Replies

ActionScript 3.0 :: Scaling Math - Zoom Into The Map The Labels Marking Items On The Map Remain The Same Size

Mar 4, 2011

I've got a map that you can zoom in and out of. What I'd like is that are you zoom into the map the labels marking items on the map remain the same size. Initially I did this successfully by making the labels independent movieclips(ie not children of the map mc) and then using localToGlobal to make sure they were in the right position. However I found that there was a bit of lag in their movement compared to the movement of the map.

So I thought what I'd try is to make the labels children of the map and then scale them up and down inversely to the scale of the map. However I haven't been entirely successful. I'm having difficulty finding the equation to make it scale up and down correctly in proportion to the map. The problem is that my labels are scaling in a linear fashion while my maps scaling isn't.

[Code]....

View 0 Replies

ActionScript 2.0 :: Clip Scaling - Each Letter To Start Of Larger Than It Should Be And Zoom Out (scale Down) To The Normal Size?

Feb 2, 2004

i got a logo, each letter it a clip, cos the logo is bit more than just text, but thats beside the point. I want each letter to start of larger than it should be and zoom out (scale down) to the normal size, pref with a bit of a bounce at the end, so it goes from very big to, slightly smaller then proper size, to proper size, get it? with help from Master64 (via IRC) i worked out that i could use _xscale and _yscale (i am relativly new here, lol ) but the problem i got is that it scales, but in huge jumps, not smooth.The class is ment to be reusable (duh!) so my concept is

Code:
start_width = 90
speed = 50[code].....

View 7 Replies

ActionScript 2.0 :: Keep Text In Text Field With Original Size?

Apr 19, 2007

how do i keep text in a text field from being stretched? when i say text i also mean pics cuz i loaded from a html file.the thing is, i have a container thatresizes to display different content and the text field is in it.. i dont want to alter it

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved