swfmill-produced Movie / multiple frames / z-order

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

swfmill-produced Movie / multiple frames / z-order

fallen-2
Hi!

After i finally got the import of multiple frames into a project targetting flash9/as3 right (see: http://markmail.org/message/dlnjttvznjscwcck), i directly stumbled onto another problem: Once i start such a clip with start() or use gotoAndStop(), all child clips of this clip lie below the imported images.

The setup:

XML-FILE PARSED WITH SWFMILL 0.2.12.4:

[...]
<clip id="Frame1" import="image1.png"/>
<clip id="Frame2" import="image2.png"/>
<clip id="Frame3" import="image3.png"/>

<clip id="TestClip">
    <frame><place id="Frame1" name="fr1" depth="1"/></frame>
    <frame><place id="Frame2" name="fr2" depth="1"/></frame>
    <frame><place id="Frame3" name="fr3" depth="1"/></frame>
</clip>
[...]



CODE:

class TestClip extends MovieClip
{
    public var fr1 : MovieClip;
    public var fr2 : MovieClip;
    public var fr2 : MovieClip;
}


CODE SNIPPET OF MAIN CLASS:

[...]
var clip:TestClip = new TestClip();
var clipChild1:MovieClip = new MovieClip();

clipChild1.graphics.beginFill( 0x009999, 1.0 );
clipChild1.graphics.drawRect( 0, 0, 50, 50 );
clipChild1.graphics.endFill( 0x009999, 1.0 );

clip.addChild( clipChild1 );

flash.Lib.current.addChild( clip );
[...]


At this point the rectangle is displayed over the image in [clip]. After a clip.start() it appears beneath the images.

I guess this has something to do with the zOrder but i'm really stuck right now. In flash8/as2 this problem did not occur, and i'v got no idea how to solve this for flash9/as3 :( Any hint would be helpful! Thanx in advance.

Greetings,
Fallen

--
haXe - an open source web programming language
http://haxe.org