Load movies in frame

ok i wanna be able to load both variables from an external .txt file, and a external .swf file at the same time. now the problem is i need the .swf to only open if the movie is at frame 15. here is my current code:

on (press) {
loadVariablesNum (“test.txt”, 0);
}
on (press) {
if (frame = 15, loadMovieNum (pg7.swf",2) else play) {
}
}

doesnt seem to work and i have no idea how or why. if anyone could give me some help, i’d be muchly appreciative :smiley:


on (press) { 
   loadVariablesNum ("test.txt", 0); 
   if (frame == 15){
      loadMovieNum ("pg7.swf",2);
   }else{
      play();
   } 
} 

or perhaps

if (_currentFrame == 15){

oops! yes, that’s right. good point. :slight_smile:

thanks people!! :slight_smile: couldnt of done it without your help