Have you tried addFrameScript?

  Leandro Ferreira
Sent from Brasilia, DF, Brazil

On Tue, Aug 4, 2009 at 15:30, Mario Gonzalez <ma...@wddg.com> wrote:

> (I think there was a problem when i sent my initial email so resending)
>
> Hey list,
>
> Here's a problem i've had to lesser or greater degrees for pretty much
> ever. I'm sure everyone's come across it.
> Depending on what's going on, on the site, or especially if it's during the
> application initialization.
>
> Here's an example scenario,
>
> You have 10 different illustrated pants for a character in a MovieClip,
> each mapped to a different label.
> Based on the database information, you load the proper 'pants' swf, then
> switch to the variation of it based on the frame label using gotoAndStop.
> However when you try to access, pants.getChildByName('thing') you receive
> null.
>
> Sometimes the assets are just not ready yet, period case closed.
>
> I've tried different solutions to this problem on different projects,
> ranging from
> -moving asset initialization function (sometimes just not an option)
> -creating a FrameDelay class,
> -creating enterframe listener checking then killing itself once the asset
> is accessible,
> - and shamefully even sometimes having to use setTimeout with 250 ms when
> the site was live and there was no time for elegant work arounds
> --
>
> I'm aware of how the flash player works, that it needs a step sometimes to
> process the assets in the frame.
> Does anyone have a kind of magic bullet solution or workaround for this or
> in general i'm interested in hearing how you guys have dealt with this
> problem.
> --
>
> Mario Gonzalez
> http://www.onedayitwillmake.com
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 4305 (20090804) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to