I want to play my Flash movie twice then stop at the final frame. The stop() action script does not allow a set number of loops. What action script do I use?
Loop movie twice then stopIn the first frame declare a counting variable and assign it a value of zero if it has no value...
var count;
if(!count){
count = 0;
}
Then,in the last increment the count and test it to see if it equals 2... when it does, stop();
count += 1;
if(count == 2){
stop();
}
Loop movie twice then stopcreate a boolean variable in frame 1
var played_one_time:Boolean=false;
and in frame 2:
stop();
if( !played_one_time)
{
gotoAndPlay(1);
played_one_time=true;
}
else
{
your code here
}
Hello Ned. This worked beautifully. My client and I thank you so much! Now I can get on to enjoying my weekend.
You're welcome
No comments:
Post a Comment