Re: Application height strange

1 view
Skip to first unread message
Message has been deleted

Todor Kolev

unread,
May 27, 2007, 6:08:41 PM5/27/07
to gug...@googlegroups.com
The Flash player is not very optimized and it renders even the movie clips that are invisible (_visible=false). When they are smaller and moved out of the scene the player stops rendering them. We made a couple of optimizations to enforce this behavior and that's why all UIComponentEx instances are made less than a pixel big and moved out of scene when they are invisible. If you access their dimensions and coordinates with the movie clip accessors (_width, _height, _x, _y) rather than UIComponent ones (width, height, x, y) then you'll get incorrect values. In your case you have invisible component in the application which is on (-1000, -1000), and this causes the application clip to report bigger dimensions.

To disable this you can set MoveOutOfSceneWhenInvisible and MinimizeWhenInvisible properties of the instances of UIComponentEx to false. You can also make this at the UIComponentEx class itself. This optimization will be redundant in the newer versions of Flash player and we plan to remove it.

Greetings,
Todor, Gugga Team

On 5/24/07, peper <pep...@gmail.com> wrote:

Hi.
The problem is, that my Application on stage is 721px high, but trace
'sais' it's 1721px high even if I had only one empty section on stage.
It looks like there's something invisible under the content.
I wanted to make scroll for the whole Application clip, but I can't
make it because of this strange height.



Reply all
Reply to author
Forward
0 new messages