Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash


Actionscript 3 - Resize The Flash Stage?

I created a game but I made the game a little too big. It would be alot of hard work to shrink all the objects in the game and resize the stage using the properties. I notice that in debug mode the whole screen can shrink when you adjust the window. Is there some code I can use to this on it's own? and will it be costly on performance ?

View 2 Replies (Posted: Feb 6 10 at 16:48)

Sponsored Links:

Related Forum Messages For Flash category:
ActionScript 2.0 :: Stage Resize In Flash
how to do stage resize in flash

Posted: February 2nd, 2010

View 13 Replies!   View Related
ActionScript 3.0 :: Resize Flash Stage On Scale?
There is a flash with stage size 800 x 600. I need to add a button on the flash. When the user clicks the button one time, it will resize to be 600 x 450 and all MC, texstbox, button insides the flash would be resized on scale.

When the user clicks the button 2nd time, it will resize to be 400 x 300 and all components resize on scale as well.

When the user clicks the button 3rd time, it will resize to 800 x 600 again.

Is there any AS3 source code for it?

Posted: 08-04-2009, 05:56 AM

View 7 Replies!   View Related
Flash :: Dynamically Resize A Button On Stage
I have a button on stage in a movie, the button ("clicker") is empty apart from the "hit" frame. The stage and button are 300x300 and i'm using swfobject to display the flash movie at 400x600 pixels. I have the following actionscript.[code]I want teh button to expand to fill the available stage space (which is 400x600 in this example) so i use the following...

-clicker._width = Stage.width;

-clicker._height = Stage.height;

however this causes the button to disapear from the stage, possibly down to 0x0 in size, as opposed to filling the available stage space. It's been a while since i worked with actionscript so it's probably something obvious, however i can't seem to spot what the problem is.

Posted: Nov 30 10 at 15:49

View 2 Replies!   View Related
ActionScript 3.0 :: Resize Images In Flash To Fit Stage?
I am starting flashagain after a long time and found a good simple flash slide show action script.

the only problem is i have images that are bigger than the stage that i would like it to resize proportionately and than fit the stage

eg the stage is 542x175 and the images are 823x220

here is the code

// set random # variables - each must be 0 for first 'while' loop below
var randomNum = 0;
var randomNumLast = 0;


Posted: 01-07-2010, 03:39 AM

View 1 Replies!   View Related
Flash :: Stick Stage To Left Side When Resize?
I'm a bit newbie to Flash, and I'm experiencing strange problem. I have a simple flash application, which when run in Flash player looks like this

the thing is, when i resize the Flash player window, a black frame becomes visible to the left and top of the stage. is it possible that these black areas start appearing on the right side, and the stage to be fixed on the left? The strange thing is that these black areas are not part of the stage, the (0,0) coordinate is there where white area starts and not in the corner of the window, and that's causing me problems.

Posted: Jul 26 11 at 10:51

View 1 Replies!   View Related
Actionscript 3 :: Centering Objects On Stage And Auto-Scaling With Stage Resize
I'm writing a web based flash app that's written entirely in AS3. I have objects on the screen as part of a GUI. I would like the user to be able to resize the window, or make it full screen. I would like everything to auto-scale with the resize, but also remain in the same relative position on the stage.

Posted: Oct 19 11 at 7:50

View 1 Replies!   View Related
ActionScript 2.0 :: Position A Movieclip In The Middle Of The Stage Even If The Stage Or Window Resize?
i saw a thread while ago .. that always position a movieclip in the middle of the stage even if the stage or window resize any1 can point me to it

Posted: February 27th, 2006

View 3 Replies!   View Related
ActionScript 2.0 :: Adjusting Columns And Rows On Stage Resize, According To Stage.width?
When you resize the browser window the thumbnails rows and columns adjust accordingly to fit.I've managed to attach the thumbnails correct when my enableButtons() function is called but i'm unsure how to approach resizing.

Stage.align = "TL";
var numberOfGalleries:Number = 20;
var thumbMarginX:Number = 163;
var thumbMarginY:Number = 109;


Posted: May 10th, 2008

View 1 Replies!   View Related
ActionScript 3.0 :: Can't Get Stage Resize Listener To Resize Movieclips In "main" Swf
I've got a large bitmap (1920 x1306) that my client wants as a bg image, scaled to the swf size on load (930 x 575); but that can "grow" up to its original size if/when a user expands the browser window. All the rest of clips in the display list are to remain in place (except for a copyright clip, which they want to always be 14 pix above the bottom of the browser frame. I've tried loading the bitmap dynamically at full size and then using scaleX,scaleY to set it's initial smaller (930x575) size, and I've tried just setting the height/width of the dynamically loaded image using the math of scaleX,ScaleY just in case the scaleX "transformed" the bitmap so that it couldn't return to its original size. Both make the bitmap the right size. But the resize function below did nothing to it, (or the copyright.y.) THEN I tried just putting the bitmap into the display list (both sizing methods work here, too). But even as an original member of the compiled display list, the resize event is still not reaching the target. Everything I've seen on the web says this should work - luck.

Here's the AS3 code in the 1st frame of my swf:

import flash.display.Stage;
import flash.display.StageAlign;
import flash.display.StageScaleMode;


Posted: Sep 9, 2009 5:02 PM

View 1 Replies!   View Related
Actionscript 3 :: Align A Clip To The Left Of The Stage On Resize With Flash?
I'm trying to get my clip to stay at the left of the screen on stage resize, but it isn't working. This is my code:

stage.addEventListener(Event.RESIZE, resizeHandler);
function resizeHandler(e:Event){
circleMenu.x = 0;

Obviously that doesn't work, but how do you get the global zero X position. When I resize the window, my clip moves along with it.

Posted: Apr 6 11 at 14:54

View 2 Replies!   View Related
Actionscript :: Fix Flash Objects In Specific Location In The Stage - Resize The File?
I have an object inside my flash file and i want to lock the object on 0 x-axis 0 y-axis but when i re-size my SWF file my object's location changed to another location how can i fix that?

Posted: Dec 23 09 at 15:30

View 1 Replies!   View Related
Resize And Stage.stageHeight?
I have two problems. 1) the page still will not resize properly until the window is resized. I assume I have the code wrong somehow.

2) I changed the height of my menu object to stage.stageHeight, but its now coming up squished and only about 30% of the actual height of the stage. I am not sure what I did as it seemed to be working before, but I cant seem to fix it.

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
stage.addEventListener(Event.RESIZE, stageresizeListener);


Posted: 06-20-2010, 02:42 PM

View 6 Replies!   View Related
Resize Everything On Stage In All Frames?
Is it possible to resize everything on the stage in one (or a few) step? I know scaling the movie has the same result, but when working in Flash it's a lot easier when you see the actual size.

Posted: Nov 18, 2009 8:04 AM

View 1 Replies!   View Related
ActionScript 2.0 :: Resize Mc To Stage?
I've been working on my web site. Its 1024x768px and i run it fullscreen.I come up with an idea and i added a 1024x768px to the top (new frame) as a intro like action.When i try to resize it to stage it will really mess up my whole pageAnd also cause of resize my movieclip stretched and looking terrible

var xy:Tween = new Tween(asdasd, "_x", Strong.easeInOut, 0, -1024, 2, true);


Posted: August 14th, 2008

View 9 Replies!   View Related
IDE :: Not To Resize Part Of The Stage?
They show their work as the page�s background which can be resize with the browser window, but their navigation always stays the same.I know how to achieve the resizing effect, but it resizes the whole stage including navigation.

Posted: May 15th, 2009

View 2 Replies!   View Related
Flex :: Flash - Resize Children When Parent Is Resize?
I have Buttons which I have rotated vertically within a Canvas, that is working fine. The problem occurs, when the user resizes the window to a small size a vertical scroll bar appears, I would rather have each button squashed upto a smaller size.

<mx:Canvas xmlns:mx="" width="40" maxWidth="40" xmlns:myComponents="myComponents.*"


Posted: Jul 29 09 at 11:20

View 2 Replies!   View Related
ActionScript 3.0 :: Way To Resize Stage Dynamically
The stage is set to 955x465 at 1st frame but once load external movie clip in 2nd frame the stage is set to 955x855 size, is it possible to do it?

Posted: 01-31-2010, 02:26 AM

View 1 Replies!   View Related
ActionScript 2.0 :: Resize Stage And Image?
i am trying to build a resize with stage image gallery. It is working except for when you first open the swf the image has it's original size, and it only adjusts to the stage when the stage resizes.s the script:

ActionScript Code:


Posted: 07-09-2009, 10:34 AM

View 0 Replies!   View Related
ActionScript 2.0 :: Stage.resize And DuplicateMovieClip?
have a Movieclip where i have duplicated a clip that loads external swf. My cuestion is how can i make this movieclip resize it self and it's content on stage resize.

Posted: 07-13-2009, 09:33 AM

View 2 Replies!   View Related
ActionScript 3.0 :: Resize A Movieclip To Stage?
I have a movieclip that i want to resize to fit the stage and center it with a button click. Then resize back to it's original size and place with a second button.[code]...

Posted: 06-07-2010, 07:58 PM

View 6 Replies!   View Related
ActionScript 3.0 :: Unable To Resize Stage
I'm trying to resize my stage using this code but I can get it work correctly. (I'm using FLASH CS4)

ActionScript Code:
var Stage_height = flash.system.Capabilities.screenResolutionY;
var Stage_width = flash.system.Capabilities.screenResolutionX;
[SWF(width=Stage_width, height=Stage_height)]

When I launch it I get this ERROR Could not parse 'Stage_height' as a number for height. And the same for the width.

I tried to set them as Number variables but that didn't work either.

Posted: 12-03-2010, 10:43 AM

View 7 Replies!   View Related
ActionScript 3.0 :: Exporting Swf And Stage Resize
i have a swf that i export and it works perfectly its 600 kb and runs nicely. i put proper code to for the stage to resize and keep all the movie clips in their right place, center ect.. but when i resize my swf my animation slows down drastically? there is a lot of animations movie clips within movie clips for it to all work.

Posted: 04-15-2011, 12:30 PM

View 6 Replies!   View Related
ActionScript 2.0 :: Stage Resize Detecting?
I m doing the background to resize according to the stages width, but if I use OnEnterFrame event, the movie get to slow.What is the other way of doing the same? Detecting the changes in width of the stage and only then aplying the resize of the background?

Posted: May 4th, 2007

View 3 Replies!   View Related
ActionScript 2.0 :: Resize Swf Stage With Buttons?
how I could resize my swf stage with buttons and change the look of things, without affecting what's in the webcam / chat area of something similar to this: [URL]

Posted: May 6th, 2007

View 1 Replies!   View Related
Copyright 2005-08, All rights reserved