Ask a Question related to Macromedia Flash Ad Development, Design and Development.
-
Torbot #1
loop 3 times, then Replay button
Just went through David Stiller's excellent tutorial on how to
[url]http://www.quip.net/blog/2006/flash/how-to-loop-three-times[/url], however the ad
spec I have requires it to loop 3 times, then display a "replay" button - can't
seemt to get the two to cooperate. using AS2, by the way.
Torbot Guest
-
Automatic replay
I have created some files using v8.0. I have 2 questions: 1) how can I set up a file to automatically loop to the beginning and play continuously?... -
FLV streaming replay
I am using the generic Macromedia FLV player. Has anyone found a work around to not being able to replay a video once it plays thru the end? The... -
replay
i want to know witch script make the button that i choose to replay my flash movie -
Loop Button in Slideshow
I have a slideshow in my project and I want to use a loop button, so when this button is active, a specific number of frames loops, and when the... -
windowtype cause flash replay
I use window("mywindow").windowtype=8, it cause the flash which in the window to replay. I don't know what cause this. but I am sure it do well... -
aniebel #2
Re: loop 3 times, then Replay button
You'll need to set the button up to clear the counter variable so that it
appears to the script that it's the first time the playhead has entered the
frame with David's useful little script.
my_btn.onRelease = function() {
loopCount:Number = 0;
this._parent.gotoAndPlay(1);
};
aniebel Guest
-
Torbot #3
Re: loop 3 times, then Replay button
thanks for the reply! I actually figured out a different (although probably
less efficient) way to do it. I put David's script just before the replay
button and set it up like this:
stop();
gotoAndPlay(1);
if (!loopCount) {
var loopCount:Number = 0;
}
loopCount++;
if (loopCount >= 3) {
this.gotoAndPlay(359);
}
this was placed at frame 358, with the button placed at 359, so after it
looped 3 times it continued on to 359, showed the button and stopped the movie
there. again, not the most elegant but it did the job :grin;
Torbot Guest



Reply With Quote

