Thanks mate… what i herd was that we cant use names to refer movie clips in AS3 but i will try this… This all worked fine in AS2 but im trying to migrate to AS3 and having some issues
[QUOTE=flashhash;2355574]Thanks mate… what i herd was that we cant use names to refer movie clips in AS3 but i will try this… This all worked fine in AS2 but im trying to migrate to AS3 and having some issues[/QUOTE]
Whoever told you that is wrong.
I’m not sure if this helps, but if you can add the movie clips in the first place by making an instance of them (using their class Identifier in the Linkage properties). That way you can just type "removeChild(name of your instance) and since you added it through that class, it will disappear.
I’m not sure personally how you would do a pre-existing class, perhaps you need an instance name and linkage properties set up.
UPDATE: Yea, that worked for me. I had a pre-existing movie clip on the stage. I set up it’s linkage properties, and gave the instance on the stage a name. Then I simply did, removeChild(instancename).
Here’s my example. I have a movie clip object that is on the stage. The name of the movie clip in the library is menuBar. I set up the linkage properties (so my document class can see it). I then set the object on the stage to the instance name “thisMenuBar”. Here is what my document class, Document.as, looks like: