Beginers question

i’ve created a button to load an external swf onto an empty movie clip when pressed
on (press) {
loadMovie (“movie.swf”, “emptymc”);
}

I also want to unload that swf with that same button when pressed again… I know how to load it…i just cant figure out the unload part. I hope someone can help me whit this. Thank you

I.M.

on (release) {
	if (!movieloaded) {
		movieclip.loadMovie("movie.swf");
		movieloaded = true;
	} else {
		movieclip.unloadMovie();
		movieloaded = false;
	}
}

??

thank you for your help, it work great:)

no problem :wink:

and …
welcome to kirupaville OonuclearoO !! =)