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

Reply via email to