Hi again. :)

It's not a load-time problem that I'm dealing with.  It's after they've
loaded and been displayed to the user.  The animation occours when the user
is interacting with them.

1) user clicks on one of the loaded swf files
2) swf file begins animating, changing it's height and width
3) in response to the changing height/width the swf files get moved to new
positions

The problem I'm having is that the swf file has to render first, before I
can access it's new height and width in order to calculate where to move it
to.  Which is causing juddering as the swf initially renders in the wrong
position, gets moved, and then renders in the wrong position again, etc.
until the animation is completed.

You might be onto something there with calling "invalidate".  Perhaps I can
use that to get the new height and width before it renders.  I'll give it a
whirl...

Ta. ^_^

-[a]-


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Manish
Jethani
Sent: January 11, 2009 07:21
To: Flash Coders List
Subject: Re: [Flashcoders] Height and Width of a loaded SWF before
itvisuallyrenders?

On 1/11/09, Andrew Murphy <[email protected]> wrote:

> I need an event that fires after the swf does an enterframe, resizing as
the
> graphics animate, but before the Flash redraws itself.

The render event is supposed to get dispatched only if you've called
stage.invalidate. Are you doing that from the loading application?

> ...I'm thinking what I want to do just isn't do-able.  That the new frame
of
> the swf has to be drawn before the height and width properties update.

One of the way to handle this may be to hide the loaded applications
at first, let them load and render off screen, and then lay them out
based on their final size. I guess you lose the animation though ...
but something along those lines.

Manish

-- 
http://manishjethani.com
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to