Hi.  And thank you. :)

The loader's INIT event only fires once, when the swf finishes loading.

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

...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.

-[a]-


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Manish
Jethani
Sent: January 10, 2009 01:58
To: Flash Coders List
Subject: Re: [Flashcoders] Height and Width of a loaded SWF before it
visuallyrenders?

On Sat, Jan 10, 2009 at 10:33 PM, Andrew Murphy <[email protected]>
wrote:

> What I'd like to do is access the height and width of the loaded swf files
> before they visually render so that I can get them into the correct
> positions before the visual render occours.  Turn it into a one step
> process:  icon movie clip changes size and then they are all repositioned
by
> the scrollbar script.

You could listen for the 'init' event from the LoaderInfo object for
each loaded SWF. In the init handler the width and height properties
of the LoaderInfo object should be accessible.

 loader.contentLoaderInfo("init", function () {
   trace("" + loader.contentLoaderInfo.width); // width
   trace("" + loader.contentLoaderInfo.height); // height
 });

Manish
_______________________________________________
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