views:

21

answers:

2

I have added some backgrounds on stage and then on top of that adding another background and all these are movieclips.

At some time i have to remove the backgrounds and then it should be added but here problem am facing is the background become coming front.

so is there any function like send to back or bring to frond based on the movie clip names.

+2  A: 

You want to experiment with :

setChildIndex(object, z-value)

This set the depth of the object on the stage.

swapChildren (object1, object2)

This exchange the position of two objects on the stage.

Raveline
+1. I've edited in links to relevant functions - didn't see any point in posting another answer just for links.
Amarghosh
Great, thanks :)
Raveline
thanks, setChildIndex helped me to fixed the problem. I just did this . p.setChildIndex(controls,p.numChildren - 1);
Ela