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 attachMovieTest.c


From: Sandro Santilli
Subject: [Gnash-commit] gnash/testsuite/misc-ming.all attachMovieTest.c
Date: Fri, 19 Jan 2007 15:07:25 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/01/19 15:07:25

Modified files:
        testsuite/misc-ming.all: attachMovieTest.c 

Log message:
        Added a note about another example of loop-back related failures.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/attachMovieTest.c?cvsroot=gnash&r1=1.1&r2=1.2

Patches:
Index: attachMovieTest.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/attachMovieTest.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- attachMovieTest.c   19 Jan 2007 14:22:56 -0000      1.1
+++ attachMovieTest.c   19 Jan 2007 15:07:25 -0000      1.2
@@ -96,6 +96,39 @@
        /* (maybe it's related to loop-back handling ?) */
        SWFMovie_nextFrame(mo); 
 
+       /***********************************************************************
+        * NOTE:
+        *
+        * The following snippet was initially implemented in a *single* frame
+        * (the second one, with first only contained the EXPORTASSET tag).
+        * The code went something like this:
+        *
+        *      if ( counter < 4 )
+        *      {
+        *              attachMovie('redsquare', 'square'+counter, 70+counter);
+        *              this['square'+counter]._x = 70*counter;
+        *              counter++;
+        *      }
+        *      else
+        *      {
+        *              stop();
+        *      }
+        *
+        * The problem with the above was that Gnash failed due to loop-back
+        * problems.
+        * The "expected" behaviour with the above code is exactly the same
+        * with the current one (ie: number of squares increment up to 4) but
+        * Gnash fails in that it resets the DisplayList to the one generated
+        * after first execution of first frame tags (an empty DisplayList)
+        * at each restart.
+        *
+        * Since we have separate testcases for loop-backs I've preferred
+        * to keep this one focused on MovieClip.attachMovie.
+        *
+        *      --strk 2007-01-19
+        *
+        
***********************************************************************/
+
        add_actions(mo,
                "attachMovie('redsquare', 'square'+counter, 70+counter);"
                "this['square'+counter]._x = 70*counter;"




reply via email to

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