PDA

View Full Version : _root._width and _root._height


mrand01
11-12-2003, 07:25 PM
If I use these commands, they seem to be returning incorrect values...my movie is 550 by 400, and it returns 523 X 261. Bug?

ferdymania
11-12-2003, 07:29 PM
dunno why it is wrong
but Stage.height and Stage.width are what you should be using...
steve

black
11-12-2003, 10:39 PM
dont do that _root dont support all methods and properties of MovieClip accurately~

mrand01
11-13-2003, 02:46 AM
This is a long shot, but does anyone know how to get the stage.width and stage.height properties from Visual Basic using the activeX control. Im building an application that loads swfs and adds functionality, but I can't figure out how to size the projector window to the flash swf size.

farafiro
11-13-2003, 04:29 AM
it gives you the real width and height of the stage that u see on the screen
so, if you are on the (100% view), it will give you a bigger value than the main stage
make it (View>> show all), then it will reflect the right values
also use the Stage.width, not the _root