I’m using the loadmovie action on a frame that is played several times when certain buttons are clicked and the problem is that everytime the frame is played it would load the new movie again. Is there a way to disable the loadmovie action after it is executed the first time? I only need it to play once and thats it. Any help would be appreciated, thanks in advance. Oh and I’m using flash MX by the way. =)
yep.
if(loadTrip!=true){
loadMovie();
loadTrip=true;
}
a good programer would include
loadTrip=false;
in one of the first frames of the movie… just to initialize the variable, but I don’t think it’s necessary. The first time the command is reached, the loadTrip will not equal anything, hence fullfilling the if statement. As soon as the loadMovie command is executed, the script sets the var to true, and the if statement will never be fullfilled again.
wow that was fast, thanks David, works like a charm! =)
np, I live to serve. Welcome to Kirupa… I hope all your questions are that easy to solve.
Here you go David, this is my site. You just helped me complete my first decent flash site. I’ve only been working with flash for about 3 months so theres still bugs I need to work out, but take a look at it when you have time and maybe give me some pointers, thanks again. =)