bugGnash - The GNU Flash player - Bugs: bug #29771, MovieClips in skipped frames must...

 
 

bug #29771: MovieClips in skipped frames must not be constructed

Submitted by:  Bernd Kischnick <kisch>
Submitted on:  Tue 04 May 2010 11:10:05 AM UTC  
 
Category: ActionScriptSeverity: 3 - Normal
Release: trunkStatus: Fixed
Privacy: PublicAssigned to: Benjamin Wolsey <bwy>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 06 Jun 2010 12:27:23 PM UTC, comment #3:

This should be fixed in trunk, revno 12227. Construction isn't skipped if there is an onUnload handler, but otherwise it is.

Benjamin Wolsey <bwy>
Project MemberIn charge of this item.
Thu 06 May 2010 11:18:01 AM UTC, comment #2:

I've added a testcase, misc-ming.all/InitActionTest2.c, that reproduces this.

It shows that a function registered using registerClass is called when it shouldn't be. The real problem is not the registerClass part (probably), but the fact that the stagePlacementCallback is executed at all (i.e. that the MovieClip is placed on the stage).

Benjamin Wolsey <bwy>
Project MemberIn charge of this item.
Thu 06 May 2010 07:16:53 AM UTC, comment #1:

Just as a reference to additional material on timeline construction:

http://wiki.gnashdev.org/TimelineControl

Sandro Santilli <strk>
Project Member
Tue 04 May 2010 11:10:05 AM UTC, original submission:

When gnash skips over frames in a timeline using MovieClip.gotoAndStop(), MovieClip-objects in intermediate frames seem to be constructed although they shouldn't come into existence at all.

Test case (attached):
3 Frames in a toplevel timeline.
Each frame has an attached action which traces out the frame number.
Additionally, frame 1 contains the action "gotoAndStop(3)".

Frame 1 and 3 are empty keyframes.
Frame 2 is a keyframe containing a single MovieClip object with a custom class.
The custom class only contains a constructor which produces a trace.

The following trace output is expected from running the swf:
Frame 1
Frame 3

(Reproduced with Adobe Player 10 and swfdec 0.8.4)

The following trace output is observed (gnash -v):
558:1208123904] 00:10:36 TRACE: Frame 1
558:1208123904] 00:10:36 TRACE: Object in Frame 2 is constructed
558:1208123904] 00:10:36 TRACE: Frame 3

(Reproduced with gnash 0.8.5, 0.8.6, and 0.8.7)

Bernd Kischnick <kisch>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #20420:  ObjectsInSkippedFramesMustNotBeConstructed.swf added by kisch (419B - application/x-shockwave-flash - .swf test case, .as custom movieclip-derived class definition, .fla Adobe CS4 source)
file #20421:  ObjectsInSkippedFramesMustNotBeConstructed.as added by kisch (188B - application/octet-stream - .swf test case, .as custom movieclip-derived class definition, .fla Adobe CS4 source)
file #20422:  ObjectsInSkippedFramesMustNotBeConstructed.fla added by kisch (61KiB - application/octet-stream - .swf test case, .as custom movieclip-derived class definition, .fla Adobe CS4 source)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bwy (Posted a comment)
  • -unavailable- added by strk (Posted a comment)
  • -unavailable- added by kisch (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 9 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 25 Aug 2010 07:14:25 AM UTCbwyStatusReady For Test=>Fixed
      Open/ClosedOpen=>Closed
    Sun 06 Jun 2010 12:27:23 PM UTCbwyStatusConfirmed=>Ready For Test
      Assigned toNone=>bwy
    Thu 06 May 2010 11:18:01 AM UTCbwyRelease0.8.7=>trunk
      StatusNone=>Confirmed
    Tue 04 May 2010 11:10:05 AM UTCkischAttached File-=>Added ObjectsInSkippedFramesMustNotBeConstructed.swf, #20420
      Attached File-=>Added ObjectsInSkippedFramesMustNotBeConstructed.as, #20421
      Attached File-=>Added ObjectsInSkippedFramesMustNotBeConstructed.fla, #20422

    Back to the top


    Powered by Savane 3.1-cleanup1