Thu 18 Oct 2007 03:47:52 PM UTC, original submission:
I just noticed that attachMovie() does not work properly in Gnash. The following code just displays one movieclip, instead of four. "cross2".."cross4" probably are not even on the stage, since they would be partly visible if they were are 0/0.
Also, they are not displayed one over each other since they have different _rotation values.
"cross" is the name of an exported MovieClip which has the shape of a red "X".
Sorry, I haven't the time to investigate this further myself...
Compiled SWF attached.
-----------------------------------------------
// frame 2:
this.attachMovie("cross", "cross1", 10);
c1 = this["cross1"];
trace(c1);
c1._x = Stage.width / 5 * 1;
c1._y = Stage.height / 5 * 1;
c1._rotation = 10;
this.attachMovie("cross", "cross2", 11);
c2 = this["cross2"];
trace(c2);
c2._x = Stage.width / 5 * 4;
c2._y = Stage.height / 5 * 1;
c2._rotation = 20;
this.attachMovie("cross", "cross3", 12);
c3 = this["cross3"];
trace(c3);
c3._x = Stage.width / 5 * 1;
c3._y = Stage.height / 5 * 4;
c3._rotation = 30;
this.attachMovie("cross", "cross4", 13);
c4 = this["cross4"];
trace(c4);
c4._x = Stage.width / 5 * 4;
c4._y = Stage.height / 5 * 4;
c4._rotation = 40;
stop();
-----------------------------------------------
|