CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 08/02/14 10:47:23
Modified files: testsuite/misc-ming.all: action_execution_order_extend_test.c Log message: add a ratio, and set depth to 1000, making the placement almost identical to the one in FlowPlayer.. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/action_execution_order_extend_test.c?cvsroot=gnash&r1=1.10&r2=1.11 Patches: Index: action_execution_order_extend_test.c =================================================================== RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/action_execution_order_extend_test.c,v retrieving revision 1.10 retrieving revision 1.11 diff -u -b -r1.10 -r1.11 --- action_execution_order_extend_test.c 7 Sep 2007 11:56:07 -0000 1.10 +++ action_execution_order_extend_test.c 14 Feb 2008 10:47:23 -0000 1.11 @@ -76,8 +76,17 @@ SWFMovieClip_add(mc_red, (SWFBlock)sh_red); /* Add mc_blu to mc_red and name it as "mc_blu" */ it_blu = SWFMovieClip_add(mc_red, (SWFBlock)mc_blu); - SWFDisplayItem_setDepth(it_blu, 10); +#if 0 // adding *any* clip-event handler makes user-defined onLoad execute ! + SWFDisplayItem_addAction(it_blu, + compileSWFActionCode("_root.note('mc_blu clip unload executed'); " + ), SWFACTION_UNLOAD); +#endif + SWFDisplayItem_setDepth(it_blu, 1000); SWFDisplayItem_setName(it_blu, "mc_blu"); +#if 1 /* setting ratio doesn't change the fact we won't execute user-defined onLoad event handler + * if no clip handlers are defined */ + SWFDisplayItem_setRatio(it_blu, 0); +#endif add_clip_actions(mc_red, "_root.note('as in frame1 of mc_red'); _root.x1 = \"as_in_mc_red\"; "); add_clip_actions(mc_red, " func = function() {}; "); SWFMovieClip_nextFrame(mc_red); /* 1st frame */ @@ -124,7 +133,7 @@ }; \ _root.mc_red.mc_blu.onUnload = function () \ { \ - note('mc_blu unload executed'); \ + note('mc_blu user-defined UNLOAD executed'); \ _root.y6 = 'mc_blu onUnload called'; \ };"); _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit