Hi.  And thank you. :)

I'll have a closer look at this tomorrow.. but.. I'm not sure what the
purpose of it is.  At first glance it just seems to allow access to the
properties of the loaded SWF file, which I already have.  It's the timing of
animation event, the updating of the swf's properties, and the swf visually
rendering that I'm having a problem with.

Basically I want to have access to it's new hight/width before it visually
renders, so that I can reposition it.  Kinda doubting that's possible
though.

-[a]-


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

http://www.senocular.com/flash/actionscript.php?file=ActionScript_3.0/com/se
nocular/utils/SWFReader.as

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

> Hi all.
>
>
>
> I'm loading several .swf files into another .swf, to produce a horizontal
> bar of clickable "icons".  The loaded .swf files animate, changing their
> size, when they are clicked on.
>
>
>
> I've written a script in the loading .swf that positions the loaded .swfs
> in
> the scrollbar, but by the time it can access the height and width
> properties
> of the loaded .swf files they have already visually rendered.  (I'm
> currently using an Event.ENTER_FRAME to trigger the script that positions
> the loaded .swf files.)  This is causing a juddering in the scrollbar as
> the
> loaded swf files are rendering visually before the positioning script
> accesses their height and width and then position them, turning it into a
> two step process:  1) icon movie clip changes size and renders, 2)
> scrollbar
> script repositions the icon movie clips
>
>
>
> 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.
>
>
>
> I've tried creating an Event.RENDER within the loaded .swf files to
trigger
> the script in the loading swf to position the icons, but the loaded swf
> files never seem to fire a render event while it's animating.
>
>
>
> I'm not even sure what I want to do is possible as the loaded swfs may not
> have their new height/width before they have visually rendered.
>
>
>
> Thoughts..?
>
>
>
> Thank you. ^_^
>
>
>
> -[a]-
>
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
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