[COLOR=black][FONT=Verdana]Hi all,[/FONT][/COLOR]
[COLOR=black][FONT=Verdana]I was trying to learn how to use attachMovie to load a movieclip in to my main stage, drag it around and include a close button. I then added a variable (x) that would control which clip would on top depending on which was clicked last.[/FONT][/COLOR]
[COLOR=black][FONT=Verdana]The question bit…[/FONT][/COLOR]
[COLOR=black][FONT=Verdana]I’ve managed to do this (…sort of), but was wondering if anyone could hint me with the code to disable the button if the clip is loaded, and enable it as soon as the clip has been closed so that it may be opened once again?[/FONT][/COLOR]
[COLOR=black][FONT=Verdana]I’m using this to load the clip where x is the variable;[/FONT][/COLOR]
[COLOR=black][FONT=Verdana]
[COLOR=black][FONT=Verdana]on (release) {[/FONT][/COLOR]
[COLOR=black][FONT=Verdana] attachMovie("new", "newname1", x);[/FONT][/COLOR]
[COLOR=black][FONT=Verdana] newname1._x=200;[/FONT][/COLOR]
[COLOR=black][FONT=Verdana] newname1._y=250;[/FONT][/COLOR]
[COLOR=black][FONT=Verdana] x++;[/FONT][/COLOR]
[COLOR=black][FONT=Verdana]}[/FONT][/COLOR]
[/FONT][/COLOR][COLOR=black][FONT=Verdana]and this to remove it;[/FONT][/COLOR]
[COLOR=black][FONT=Verdana]
[COLOR=black][FONT=Verdana]on (release) {[/FONT][/COLOR]
[COLOR=black][FONT=Verdana] this.removeMovieClip();[/FONT][/COLOR]
[COLOR=black][FONT=Verdana]}[/FONT][/COLOR]
[/FONT][/COLOR][COLOR=black][FONT=Verdana]Hope my question makes sense :puzzle: [/FONT][/COLOR]