Flash Question
Out of context: Reply #4
- Started
- Last post
- 10 Responses
- PonyBoy0
as2 - a little diff. syntax - same concepts:
Stage.scaleMode = " noScale "; //keeps everything from resizing w/the Stage when it's scaled
Stage.align = " TL "; //aligns the stage to the top leftsiteListener = new Object(); // create the listener
siteListener.onResize = siteLisFunct; // apply a function to the listener
Stage.addListener(siteListener); // add the listener to the 'Stage'// this is the function called when the stage is resized
function siteLisFunct() {
stageHeight = Stage.height;
stageWidth = Stage.width;
}-- put that all on your first frame of your movie... anything that needs to adjust when the stage is resized should be controlled in that function applied to the 'siteListener' object
It's a bit of a learning curve here - you have to understand functions and then understand Flash's built-in properties that you can use to control such things as the 'Stage'...
... google some of what I just wrote above like 'Stage.addListener' - plenty of info out there... but this should be enough to get you on the right track :)