I need to have a button load an external SWF then disable the button so a second click doesn’t start to load it again. I tried defining a variable. Checking for the value before loading the SWF. Then changing the value of the variable. It didn’t work. The SWF loaded and the variable changed but the button still loaded the SWF again on further clicks. Here’s the code I have.
x = 1;
on (release) {
if (x=1) {
loadMovieNum(“mov.swf”, 2);
x = 2;
}
}
I also tried using loadVariables with an external .txt file but that didn’t work either.
Am I going about this totally wrong or what?
little help?