Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

createemptymovieclip behind other layers!!!!

Status
Not open for further replies.

pollux0

IS-IT--Management
Mar 20, 2002
262
US
i am trying to create an empty movie clip in a flash movie on the fly. it is working but it is being created in front of other stuff in other layers when it really should be in the background. i thought "depth" would take care of this but it does not. thanks in advance!!

_root.createEmptyMovieClip("theback", 0);
_root.theback.loadMovie("images/plane.jpg");
 
I suppose you could just move the layer on the timeline. frozenpeas
 
how does flash know what layer to create the empty movie clip? You cannot specify it in the actionscript.

 
You have to convert the items that you wnat your empty clip to appear behind to movieclips too. Then you can use swapDepths() (or attachMovie) to set their depths to be in front of your new clip.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top