PDA

View Full Version : AttachMovie - new level


elektra
11-23-2004, 02:42 PM
Hi Flash people
Im making a drawing program, where the user is able to place items on the stage and remove them if he wants to. Ive made a MC that attaches to another MC when the user clicks a button.
What I want is to make this button place new instances of the MC each time it is clicked - and place them in different levels so that the first one stays on the stage in stead of being replaced by the new one.
Im sure there is a way to do that - I just cant find it
Anyone?

Xeef
11-23-2004, 03:21 PM
hi

you can do this :
_root.attachMovie("BlaBla", "Bla", _root.getNextHighestDepth());
or you can have a var which ceaps count on which is the next level to use