PDA

View Full Version : why does stage width keep changing


dsdsdsdsd
10-25-2008, 10:12 PM
hello;

I have:

function handle_enterframe()
{ trace( stage.width ) ;
}


in my document props I have width set to 640, but my trace command keeps giving different values:
723
810
715
794
...


there are mcs offstage, that are being removed/added which is causing the changes;

QUESTION: why does my stage.width care if there are mcs offstage?


thanks
Shannon

wvxvw
10-25-2008, 10:59 PM
Because .width reflects the current width of the stage as DisplayObject, and .stageWidth reflects the total available space for placing other display objects.

dsdsdsdsd
10-26-2008, 02:08 AM
aha - thanks,

Shannon