PDA

View Full Version : How do I make a MovieClip reappear



Atris
July 20th, 2006, 01:07 AM
hello all.

i'm using the following code to dynmically attatch a MovieClip to the root of the stage.
init();
function init(){
attachMovie("cluster", "cluster", 2);
cluster._x =200;
cluster._y =125;
attachMovie("bottom", "bottom", 1);
bottom._x =-1;
bottom._y =504;
}
i'm using the following code (on a MovieClip button) to remove the "cluster" MovieClip when a button is clicked

function laterPa(){
cluster.swapDepths(_root.getNextHighestDepth());
cluster.removeMovieClip();
}
cluster.centre.onRelease = function(){
laterPa();
helloCentre();
btnBack();
}
All of this works great. My only problem is making the "cluster" MoiveClip re-appear in it's original state once the back button is clicked.
i tried calling the init(); function again but that didn't work

any ideas

cheers,

-Atris

SmoothDime
July 20th, 2006, 01:36 AM
use the _visible property instead of removing the movieClip.

Anogar
July 20th, 2006, 01:43 AM
_alpha works as well.

Atris
July 20th, 2006, 10:20 AM
i tried that but the map is still present. therefore, when you move your mouse over that area you get the mouse over. removing it solved the problem. i just can't seem to get it back.