views:

1629

answers:

1

I have an assignment where at one point, I have to put a movieclip on the stage. I can't just drag it and place it and set it to visible at some point in time, I have to use Actionscript to pull it from the library and make it appear on the stage at certain X/Y coordinates.

My assignment says that the function attachMovie() would be useful, but I don't see how, since that's used for attaching movieclips to other movieclips...

Can anybody help here?

+2  A: 

You can use attachMovie with the stage.

In AS2 is something like:

_root.attachMovie("name_of_the_original_clip", "name_of_the_new_clip", _root.getNextHighestDepth());

In AS2 the stage is considered a MovieClip in itself. I hope it helps!

ozke
Indeed, also, the reason it didn't work was because I forgot to add linkage...
WebDevHobo
ozke
No problems. I deleted my answer below and the original comment here. They're redundant now. :) Thanks for the update!
Kriem