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

addChild on specific layer

Explorer ,
Dec 19, 2010 Dec 19, 2010

Copy link to clipboard

Copied

I'm currently using addChild to make snow appear, but it is displayed above all other layers...

how could i make it like this that the addChild will get shown behind the most top layer?

TOPICS
ActionScript

Views

2.6K

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

correct answers 1 Correct answer

Advocate , Dec 19, 2010 Dec 19, 2010

try:

addChildAt(yourMC,numChildren-2);

or

addChildAt(yourMC,numChildren-3);

Votes

Translate

Translate
Advocate ,
Dec 19, 2010 Dec 19, 2010

Copy link to clipboard

Copied

try:

addChildAt(yourMC,numChildren-2);

or

addChildAt(yourMC,numChildren-3);

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
Explorer ,
Dec 19, 2010 Dec 19, 2010

Copy link to clipboard

Copied

LATEST

using numchildren with -6 did it!

thanks

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
Advocate ,
Dec 19, 2010 Dec 19, 2010

Copy link to clipboard

Copied

or:

if you want that otherMC on top after you add your MC:

addChild(yourMC);

addChild(otherMC);

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