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

addChild -

New Here ,
Oct 10, 2008 Oct 10, 2008

Copy link to clipboard

Copied

Hi
I am trying to change the position of a movie clip which is acting as a menu and loading other swfs onto the stage
The problem is, is that the movie clip is also animated and when an swf is loaded the movie clip appears underneath the loaded swf. Can you suggest what method i should use to change the heirachy of this movieclip.

Thanks very much
help is sincerley appreciated
TOPICS
ActionScript

Views

260

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 ,
Oct 11, 2008 Oct 11, 2008

Copy link to clipboard

Copied

You can use setChildIndex method:

myContainer.setChildIndex(objectToReposition, desiredIndex)

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 ,
Oct 11, 2008 Oct 11, 2008

Copy link to clipboard

Copied

LATEST
Or you could addChild the menu again, which will bring it on top. Like:

//get a loader going to load the new swf in, then add it to the stage:
addChild(loadervar);
//then bring the menu to the front again:
addChild(menumc);


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