I have been reading the documentation, and i cannot find a way to remove clips that are created using this method. Like the guy in the other post, i want this clip unloaded (destroyed) when ANY other link is clicked. This clip is an empty container clip that will be generating child clips that will each be loading thumbnails for images. Obviously i need to destroy the parent clip to remove all children without looping, etc.
This movie clip (“TL”) is created in a keyframe that is the stopping point of an animation. When a user clicks the Portfolio link from the menu, the menu hides itself, and then goes to a frame label where actionscript awaits. Once there, the AS tells the submenu movie to animate (play). The submenu then plays and stops when it hits a certain frame (the one with the ‘stop();’ code, lol), and that frame then contains actionscript that generates the Gallery Thumbnails’ parent container (“TL”), via:
var TL:MovieClip = createMovieClip(“TL”,60);
and GT then creates movie clips for thumbnails to be contained in via:
TL.createEmptyMovieClip(‘Thumb’ + i,TL.getDepth() -1);
All this works so far. Now, to get rid of the clip when any other button is clicked, i tell the gallery movie to play again, which alphas it out of sight. So, on the NEXT frame of the timeline AFTER the frame which the TL and children are created is where i need to place the actionscript to unload/remove them. The problem is that there is no method for this! It seems that all the methods for removing / unloading clips only apply to clips that were duplicated or instatiated from loading external files or attaching instances from the library…
So that’s where i’m stuck. I need to remove this “TL” clip, and can’t figure out how. Any help is apreciated. The site is http://UniSys-Corp.com if it would help to see how my menus animate.
I tried switching things around a bit, to no avail. This works:
_root.mcMenuGalleryAnimation.attachMovie("thumbsList","TL",60);
TL._x = -300;
TL._y = 0;
TL.width = 60;
TL.height = 60;
TL.loadMovie("../portfolio/misc/tn/1.jpg");
But this does not:
_root.mcMenuGalleryAnimation.attachMovie("thumbsList","TL",60);
TL._x = -300;
TL._y = 0;
TL.width = 60;
TL.height = 60;
TL.attachMovie("thumbnail","tn",TL.getDepth() +1);
tn.loadMovie("../portfolio/misc/tn/1.jpg");