PDA

View Full Version : how to add movieclip to container?


vs2002
04-04-2010, 05:51 AM
hello there!
I'm not good at Eglish. but I want you to read my article.
I have some problem.
I wanna add movieclip to container(movieclip).
the movieclip which added in container is like "mc <m1>"
I was trying to add like this but didn't
how to add movieclip to movieclip container?
plz help me..

neilmmm
04-04-2010, 09:12 AM
var m:MovieClip=mc.attachMovie("m1","m1",mc.getNextHighestDepth())
//m._x = // to set x val of m1 in mc


this will put a mc with linkage name m1 into mc

Ziggwies
04-12-2010, 08:31 PM
For AS3 use addChild.