Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to paint on laeyr?

Explorer ,
Jan 09, 2017 Jan 09, 2017

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

225
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 10, 2017 Jan 10, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 10, 2017 Jan 10, 2017
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines