I'm having difficulty dynamically adding a movie clip to my movie. I have a main movie clip, and on the release of a button, it should add another movie clip from the library into the main movie clip. And technically, it does, but only for a split second, and then the imported movie clip disappears. I just realized that this happens for any action i have my button influence in any other movie clip. For example, when i change the dynamic text field's text property in a different movie clip, it only works for a second, even if i have a
on the actions layer in the movieclip. Here's the code on my actions layer:
wearIt_btn.onRelease = function()
main_mc.attachMovie("att1", "newName1", 1);
I copied almost directly off of the tutorial here for attachMovie (number 28), and the FLA provided works fine. Is it because i'm using actionScript 2?
And while i'm on the subject of movieclips, it is
possible to add my own properties to a movieclip, right? For instance, a url to a jpeg image to be loaded in, probably from an XML document? Once i get the darned thing loaded, i need to be switching its contents dynamically.
Thanks for the help in advance