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

How to paint on laeyr?

Explorer ,
Jan 09, 2017 Jan 09, 2017

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

Views

158

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

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