[Tweener] Tweener's tweens won't play twice
Zeh Fernando
zeh at zehfernando.com
Thu Dec 4 12:22:37 PST 2008
I haven't tested that sortof situation; however, it may be because Tweener
AS2 creates certain global variables (all AS2 classes become global
variables), *and* it creates a MovieClip on the _root to handle the main
onenterframe event. I know little about AS2/AS3 integration, but that sort
of stuff is probably bound to cause trouble to the separate AS2 sandbox
inside the AS3 VM.
All I can suggest is loading the new content on a second loader. If your
loading method looks anything like the example from the actionscript.org,
*normally* it wouldn't cause trouble (it's a separate, new object), but I
wouldn't discount that AS2 uses some less-than-ordinary hooks when accessing
the _root. If it doesn't, then just try loading/unloading into the same
Loader, just create a new instance.
Other idea is using _lockroot on your AS2 SWF and recompile it -- if that
forces the AS2 vm to use a separate 'root' sandbox for that specific SWF, it
would help.
Zeh
On Wed, Dec 3, 2008 at 4:53 PM, Gerry Creighton <gerry at thespikeranch.com>wrote:
> There was another post here:
> http://www.actionscript.org/forums/showthread.php3?p=747060#post747060
>
>
> On Dec 3, 2008, at 11:35 AM, John Cooper wrote:
>
>
> Hi all.
> here's my first post with a problem I hope someone knows the answer to....
> We have a project that's using the AS2 version of Tweener
> http://code.google.com/p/tweener/
> we have an AS3 loader that pulls in the SWF which contains the tweens
> 'dance.swf'
> on the first run the dance.swf plays fine, all the animation work
>
> then on a button press the loader.swf unloads the dance.swf and loading a
> new swf, 'text.swf'
> when unloading that and reloading the 'dance.swf' no animations occur
>
> someone else has had this issue and posted here
> http://www.actionscript.org/forums/showthread.php3?t=188631
>
> anyone have any ideas? We thought it might be AS3 SWF loading in an AS2 swf
> so we're just testing that at the moment
>
> thanks all
>
> John Cooper
>
> john at atomicshed.com
>
> www.atomicshed.com
> blog.atomicshed.com
>
> twitter.com / del.icio.us / flickr.com / ATOMICSHED
> KAPOW.ME limited edition prints'n stuff
>
>
>
>
>
>
> _______________________________________________
> Tweener mailing list
> Tweener at lists.caurinauebi.com
> http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
>
>
>
> _______________________________________________
> 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/20081204/089e1ef4/attachment.htm>
More information about the Tweener
mailing list