AS3 stop() function doesn’t work
20 January 2010
4 Comments
Here is the “configuration”:
- One main movie that loads external movies.
- Externals movies that have stop() functions on their timeline.
When played alone, the external movies run perfectly. The stop() functions work well and everything’s fine.
But when loaded into the main movieclip, all the stop() functions stop working… (well in a way they work “too well”)
Reason:
Conflicting classes… (I suppose)
My external movies have a base class, let’s call it “ExternalMcBaseClass”.
In my main movie, I declare that my external movies are of the type of “ExternalMcBaseClass”. When I specify their type as a simple “MovieClip”, all of the sudden, everything seems to work fine again.
Why ?
I’m not really sure and this is really annoying…
If someone knows why then feel free to explain it.









Hello,
I try to reproduce your issue without success.
I work a lot with external swf loaded into a Main swf. Each swf having their own base class. No problem.
Can you give more details ?
I mean, when you say \"base class\" you mean the class linked to the document.
Because this class should always extends MovieClip… and so stop is a properties of MovieClip.
Regards,
S.
Hi,
yes “base class” is the class linked to the document and yes, this class extends MovieClip (among others)
I’ll try to put an example soon.
Do you mean like this …?
http://www.adrianparr.com/?p=124
This issue seems different. In my case, it only happens when I specify the class as its real class type (extending the MovieClip class). But it works when I just specify it as a MovieClip.
Leave your response!
Recent Posts
Categories
links
Meta
Recent Comments
Most Commented
Tags
écran de veille 3d 3d model actionscript action script advertising angle animation api array AS3 benchmark bug C++ chess chessanytime class cpp demo digital rain DirectX displayobject event flash font for for each function loop matrix Matrix Fall MovieClip network ocx OpenGL particle effect réseau rotation screensaver socket source source code Visual Basic website whilePowered by eShop v.3
Powered by WordPress | Log in | Entries (RSS) | Comments (RSS) | Arthemia theme by Michael Hutagalung - customized by Thomas John