Skip to main content
Participant
July 22, 2009
Question

Instanced movieclip-like class missing frame scripts after loading.

  • July 22, 2009
  • 1 reply
  • 459 views

Hi, I had a problem recently with as3 and found no answer about this issue, I hope somebody here can help me.

I did a game with a client's container.

This container has a custom loader function to load resources, so I loaded a swf with linked movieclip's based classes, these movieclips have frame scripts like stop() and dispatchEvent(..).

It actually loads the resources, I instanciate them and their frame script WORKS.

Now, I'm making a standalone version without the container:

1 - I load the same swf, using the standard flash loader.

2 - I instantiate the classes and add them to stage.

3 - The framescript is totally missing. The frame scripts like stop(), trace() and etc, aren't executing anymore.

I did a lot of research on the web, and found very few people with the same issue but no answer.

I tryed a lot of workarounds but nothing seems to happend, I think is a security-loader issue, but now I am clueless.

I will appreciate any kind of comment, thank you.

Patricio Foieri

patriciof@feelingvertigo.com

Feeling Vertigo

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
July 22, 2009

are you using a document class and, if so, does it extend the movieclip class (which is ok) or the sprite class (which will cause a problem).