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
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