Button 2 loadMovie once only?

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?

Wow, I certainly love that MX has the ability to have enabled = false.

I have no clue if this will work (and I don’t have Flash 5 to test), but try…

x = 1;

on (release) {
if (x==1) {
loadMovieNum(“mov.swf”, 2);
x = 2;
}
}