Say I can create 200 different movie clips on the stage when I press a button and want to destroy them when I click on them, how would I do this.
I tried creating the movie clip:
ActionScript Code:
[LEFT][COLOR=#993300]_root[/COLOR].[COLOR=#993300]attachMovie[/COLOR][COLOR=#000000]([/COLOR]box, [COLOR=#0000FF]“a342342”[/COLOR], [COLOR=#993300]_root[/COLOR].[COLOR=#993300]getNextHighestDepth[/COLOR]COLOR=#000000[/COLOR], [COLOR=#000000]{[/COLOR][COLOR=#993300]_x[/COLOR]: [COLOR=#000000]200[/COLOR], [COLOR=#993300]_y[/COLOR]: [COLOR=#000000]200[/COLOR][COLOR=#000000]}[/COLOR][COLOR=#000000])[/COLOR];
[COLOR=#993300]_root[/COLOR].[COLOR=#000000]a342342[/COLOR].[COLOR=#993300]onRelease[/COLOR] = [COLOR=#993300]function[/COLOR]COLOR=#000000[/COLOR]
[COLOR=#000000]{[/COLOR]
[COLOR=#993300]gotoAndPlay[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]
[/LEFT]
But it doesn’t work. The attached object isn’t click able in any way.