Skip to main content
Inspiring
January 10, 2017
Question

How to paint on laeyr?

  • January 10, 2017
  • 2 replies
  • 252 views

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);

This topic has been closed for replies.

2 replies

Brainiac
January 10, 2017

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.

Inspiring
January 10, 2017

I've found only this way how to insert object before other container.addChildAt(myShape, container.getChildIndex(otherShape));