View Full Version : resize the stage
cki1235
07-07-2005, 08:53 AM
Ok, my bad first, I set up my stage size to 800x600, and when I set the full screen mode, 800x600 is a bit small, I want to scale up the stage size a bit bigger when it plays on the full screen mode...... is there a way to do it? I use load movie function to my project, if I resize the stage size on my index file (index.swf), will that affect to my other files? :confused: :confused: :(
Billystyx
07-07-2005, 01:33 PM
depends how/where you are loading them into, but why do you want to resize? Is it the dimension ratio that is wrong - or just the size?
If the latter and it is going into an html page then resize it with the tags.
Otherwise, you can set the stage size with
_root._width=200;
_root._height=200;
The corner will still be at 0,0, but if you load to levels you will need to alter their sizes too.
cki1235
07-07-2005, 05:23 PM
It's not going into an html page tho. The reason of changing the stage size is coz part of the design when it placed on the 800x600 is too small, and I didn't notice that till now. So when I tried to test the movie and use fscommand, no scale, and the problem comes, but if I take out the full screen function and just stretch the coner of my swf file, then the design seems right in terms of legibility..... Stupid me....
I have tried it the code, and it's working fine w/ my other swf files while loading. But when I add fscommand function at my first frame, the stage is not in the center of my screen, how do I fix the problem? And if I just chage the ratio of my stage size, how do I set the script in my file?
Thank you in advance-- :o :confused:
Billystyx
07-08-2005, 10:34 AM
have you tried then working with
System.capabilities.screenResolutionX
System.capabilities.screenResolutionY
If you assign each of these to a variable you have the value of the width and the height of the screen.
SW=System.capabilities.screenResolutionX;
SH=System.capabilities.screenResolutionY;
x=Stage.width/SW*100;
Stage._width=SW;
Stage._height=Stage._height+(Stage._height*x/100);
billystyx
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.