[flashpro] remove/unload/delete movieclip

Jason Van Pelt jvanpelt at integralpro.com
Wed Jan 19 10:59:53 EST 2005


Hello all,

I've got a button that, onRelease, attaches a movieclip from the library
to _root, and another button that removes the movieclip with
unloadMovie(_root.imgWin); (because removeMovieClip didn't work for some
reason).  This all works fine until, but if I then try to attach the
movie again without changing the instance name (it is "imgWin" again),
references to that movieclip don't work.  Can't drag it, cant unload
it...  

I have a feeling that even though I unload it from the stage that
there's still some reference to it, so creating another MC with the same
name confuses things.  I tried delete(_root.imgWin); but this didn't
help.

Anyone with any insights, please let me know asap before I spend two
hours to figure out that it's something stupid!

Thanks,
j.vanpelt


More information about the FlashPro mailing list