[Tweener] Tweener failing on second run as AS2 inside Flex
Zeh Fernando
zeh at zehfernando.com
Thu Jul 16 07:12:00 PDT 2009
AS3 loading AS2 content, right?
I've seen mentions this happening from time to time, although I haven't had
to deal with that myself. Apparently it's something about _global or _root
elements of AS2 movies (the classes themselves) getting mangled once you
load other movies that use the same element (Tweener classes in AS2).
If you have control over the AS2 movie, I'd suggest using _lockroot as true
inside of it. This will make sure that Tweener creates a 'local'
onEnterFrame handler at least.
Zeh
On Thu, Jul 16, 2009 at 9:39 AM, Chuck Neal <chuck_lists at mediamacros.com>wrote:
> I'm working on an interactive animation for a client that will play inside
> a Flex based system. My file is AS2 and works fine in the browser or flash
> player.
>
> I do have control of the code that loads the movies so I have been able to
> try a few things in Flex, but still no luck. For this system I have to use
> Flex 2.01. 3 is not supported.
>
> When I load it into their system with a SWFLoader it works, the first time,
> but then on swapping files it stops. Everything that is not using a tween
> appears to work fine including localConnections, etc.
>
> For example, my menu starts out with an _alpha of 0. That works, but the
> animation of it loading up with an alpha tween does not run. It appears all
> tweens break on second load.
>
> I have tried the following...
>
> * Change the source property of the SWFLoader
> * Destroying and re-creating the SWFLoader
>
> Has anyone else seen this and are there any known work arounds?
>
> Thanks.
>
> -Chuck
> --------------------------
> Chuck Neal
> President, MMI (MediaMacros, Inc.)
> chuck at mediamacros.com
> http://www.mediamacros.com
> http://www.mediamacros.net
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20090716/d1a4f6d1/attachment.htm>
More information about the Tweener
mailing list