[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: [Gnash-dev] Re: gotoAndPlay bug in Gnash (was: Serious performanc

From: Udo Giacomozzi
Subject: Re[2]: [Gnash-dev] Re: gotoAndPlay bug in Gnash (was: Serious performance problem)
Date: Thu, 10 May 2007 11:07:43 +0200

Hello Sandro,

Thursday, May 10, 2007, 10:52:05 AM, you wrote:
SS> Could you also add an onClipEvent(construct) please ?

AArrrgghhh!! I *hate* you! ;) construct is called :-(

Ok, new code for the instances:

onClipEvent(load) {
        trace("instance A: loaded");

onClipEvent(unload) {
        trace("instance A: unload");

onClipEvent(enterFrame) {
        trace("instance A: enterFrame");

onClipEvent(construct) {
        trace("instance A: construct");

I also added some traces to see where gotoAndPlay() is called and when
particular frame actions are executed.


--- first frame ---
instance A: construct
instance A: loaded
_level0.A created in frame 3
instance A: enterFrame
--- gotoAndPlay ---
instance B: construct
instance C: construct
instance A: unload
_level0.A removed in frame 14
instance B: loaded
instance B: unload
instance C: loaded
_level0.C created in frame 14
instance C: enterFrame
--- last frame ---

Now, to make it a bit more complicated, you see that "loaded" is
printed even if I said in my previous post that it gets not fired.
That's because I define onClipEvent(unload). No clue why, but
onClipEvent(load) works only when there is a "unload" event handler.

SS> Also, could you target at versions from 4 to 8 to see if there's
SS> *any* difference introduced ?

SWF5 and earlier don't support these features (onUnload, construct,
...). SWF6 doesn't support onClipEvent(construct), but shows otherwise
the same output. SWF7-8: no difference

BTW, onClipEvent(construct) is not documented.

My SWF in version 7 attached.

Now, I'm interested in some explanation for this new fact :(


Attachment: skipFramesTest.swf
Description: application/shockwave-flash

reply via email to

[Prev in Thread] Current Thread [Next in Thread]