Copy link to clipboard
Copied
I created few layers in IDE Animate with some graphic.
How can I paint Share on one of them layer before other layers?
var mc = new createjs.MovieClip();
var child1 = new createjs.Shape(new createjs.Graphics().beginFill("#ABC").drawRect(0,0,600,600);
mc.addChild(child1);
this.parent.addChild(mc);
Copy link to clipboard
Copied
I've found only this way how to insert object before other container.addChildAt(myShape, container.getChildIndex(otherShape));
Copy link to clipboard
Copied
Place a named empty movieclip for drawing in the editor instead of trying to create it at runtime. That way you can manually position it at whatever depth you want.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now