To Press A Button Twice?

hey,

I’ve a button that unloads a movieclip when I press it, ok that’s no problem so far…

but how can I load the movieclip in my instance again[color=#004080] [color=black]by pressing the same[/color][/color]
[color=#004080][color=#000000]button twice ???[/color]
[/color]

thanx, already

Hi,

I am giving one simple example that will solve ur problem:

Create a button on the stage and name it as: myButton
And write this script on the first frame:

c=1;
myButton.onRelease = function(){
foundFunc(c);
}

function foundFunc(x){
if(c%2){
trace(“Load”);
}else{
trace(“UnLoad”);
}
c++;
}

I think u got it :love:


aShIsH

thank you !!! I’ll try it immediately, hope it fixes my problem…

man…you’re a genius !!! It works perfectly…
BIG thanx, again !!!