View Full Version : Dynamically Attatch MC
Graphic
08-10-2006, 06:58 AM
I'm looking for a good tutorial about dynamically attatching a MovieClip with Actionscript. I try but it doesn't really work :(
any help would be apprecaited
what have you tried that didnt work?
Graphic
08-10-2006, 04:22 PM
I've been trying to get this to work:
createEmptyMovieClip(loadbox,this.getNextHighestDe pth());
loadbox._x=400;
loadbox._y=300;
and i tried that liek this:
createEmptyMovieClip(loadbox,this.getNextHighestDe pth());
loadbox._x=400;
loadbox._y=300;
loadMovie("loadbox_mc","loadbox");
But I can't seem to find anything on the internet, and I can't thin kof anythign that works...
that last line confuses me.... are you loading a mc into the mc you just created? is the mc (loadbox_mc) in your library? if so you could just attach it.
heh. sorry bad habit... i should not give you alternate code...just answer the question.
try this:
var loadmovie=this.createEmptyMovieClip("loadmovie",this.getNextHighestDepth());
when you create the movieclip... the first argument needs to be a string (so in quotes("")
Graphic
08-13-2006, 05:03 PM
thanks for your help, i just learned how to draw dynamically so I've started using that instead of attatching mcs. but thanks anyway
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.