PDA

View Full Version : load movies in frame



distortion_00
July 17th, 2002, 01:40 AM
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 :D

sbeener
July 17th, 2002, 03:17 AM
on (press) {
loadVariablesNum ("test.txt", 0);
if (frame == 15){
loadMovieNum ("pg7.swf",2);
}else{
play();
}
}

jsk
July 17th, 2002, 04:26 AM
or perhaps

if (_currentFrame == 15){

sbeener
July 17th, 2002, 12:49 PM
oops! yes, that's right. good point. :)

distortion_00
July 17th, 2002, 09:37 PM
thanks people!! :) couldnt of done it without your help