gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash testsuite/misc-ming.all/action_execution_...


From: Sandro Santilli
Subject: [Gnash-commit] gnash testsuite/misc-ming.all/action_execution_...
Date: Thu, 06 Sep 2007 18:59:51 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/09/06 18:59:51

Modified files:
        testsuite/misc-ming.all: action_execution_order_test4.c 
        .              : ChangeLog 

Log message:
                * testsuite/misc-ming.all/action_execution_order_test4.c: more
                  explicit test showing that defining onLoad for _root in first
                  frame works, while doesn't work for child sprites.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/action_execution_order_test4.c?cvsroot=gnash&r1=1.4&r2=1.5
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4239&r2=1.4240

Patches:
Index: testsuite/misc-ming.all/action_execution_order_test4.c
===================================================================
RCS file: 
/sources/gnash/gnash/testsuite/misc-ming.all/action_execution_order_test4.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- testsuite/misc-ming.all/action_execution_order_test4.c      6 Sep 2007 
13:37:05 -0000       1.4
+++ testsuite/misc-ming.all/action_execution_order_test4.c      6 Sep 2007 
18:59:51 -0000       1.5
@@ -97,6 +97,8 @@
   sh_red = make_fill_square (0, 300, 60, 60, 255, 0, 0, 255, 0, 0);
   SWFMovieClip_add(mc1, (SWFBlock)sh_red);  
   add_clip_actions(mc1, " _root.note('actions in 1st frame of mc1'); "
+                       // Defining onLoad in first frame of a sprite doesn't 
work, but works for root
+                       " this.onLoad = function() { _root.note('mc1 onLoad 
called'); _root.x1 += 'YY'; };"
                         " _root.x1 += '2+'; ");
   SWFMovieClip_nextFrame(mc1); /* mc1, 1st frame */
   add_clip_actions(mc1, " _root.note('actions in 2nd frame of mc1'); "
@@ -108,6 +110,8 @@
   sh_red = make_fill_square (80, 300, 60, 60, 255, 0, 0, 255, 0, 0);
   SWFMovieClip_add(mc2, (SWFBlock)sh_red); 
   add_clip_actions(mc2, " _root.note('actions in 1st frame of mc2'); "
+                       // Defining onLoad in first frame of a sprite doesn't 
work, but works for root
+                       " this.onLoad = function() { _root.note('mc2 onLoad 
called'); _root.x1 += 'XX'; };"
                         " _root.x1 += '4+'; "); 
   SWFMovieClip_nextFrame(mc2); /* mc2, 1st frame */
   add_clip_actions(mc2, " _root.note('actions in 2nd frame of mc2'); "
@@ -119,6 +123,8 @@
   sh_red = make_fill_square (160, 300, 60, 60, 255, 0, 0, 255, 0, 0);
   SWFMovieClip_add(mc3, (SWFBlock)sh_red);  
   add_clip_actions(mc3, " _root.note('actions in 1st frame of mc3'); "
+                       // Defining onLoad in first frame of a sprite doesn't 
work, but works for root
+                       " this.onLoad = function() { _root.note('mc3 onLoad 
called'); _root.x1 += 'ZZ'; };"
                         " _root.x1 += '6+';"); 
   SWFMovieClip_nextFrame(mc3); /* mc3, 1st frame */
   add_clip_actions(mc3, " _root.note('actions in 2nd frame of mc3'); "

Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4239
retrieving revision 1.4240
diff -u -b -r1.4239 -r1.4240
--- ChangeLog   6 Sep 2007 12:47:07 -0000       1.4239
+++ ChangeLog   6 Sep 2007 18:59:51 -0000       1.4240
@@ -1,5 +1,8 @@
 2007-09-06 Sandro Santilli <address@hidden>
 
+       * testsuite/misc-ming.all/action_execution_order_test4.c: more
+         explicit test showing that defining onLoad for _root in first
+         frame works, while doesn't work for child sprites.
        * server/sprite_instance.cpp (add_display_object): only syntetize 
          and instance name when actually placing a new character (simplifies
          the code and fixes a case related to ratio compatibility).




reply via email to

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