-
I am using this script to load a
set number of movies into a target location
on release
num=num+1
loadmovie("movie"+num+".swf", Target)
How could I set up the variable so that when
"num" equals a certain number, say 56
it knows to loop back to 1??
I tried using the "if" action but couldn't seem to
get it right.
-
Syntax-wise, this might work for you:
Code:
on(release){
for(num=1;num<57;num++){
loadmovie("movie"+num+".swf", Target);
}
}
I assume that this is just a general piece of code, because there are certain parts that won't work as it is - 'target' for example would also need to be incrementally named,
-
Yeah it was general, figured youu would all
know what i meant!
My target level is actually named Target.
Thanks for the help, worked great!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|