Jump to content
GreenSock

mekberg

Instances created via getClass ignore keyframe actionscript

Recommended Posts

Hello,

 

I have a swf file containing a simple symbol with keyframed states. Each state has a stop() at the end of its frames. When I load the swf using SWFLoader, get the class, create an instance of it, and add it as a child, the playhead continues - seemingly ignoring all actionscript. Traces put on these keyframes do not fire. I can, of course, manually call goToAndStop() on the class in question but the bug still happens when I resume playing from any one of the states.

 

(Sample uses FlashDevelop, but I can simplify this further if needed)

 

Thanks!

LoaderMaxDemo.zip

Link to comment
Share on other sites

hmm. I really am not an expert in this arena nor have I had this problem. I would recommend searching in the direction of LoaderContext and ApplicationDomain. And this guy seems to have a similar issue:

 

http://nils.realeyesmedia.com/?p=81

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×