Hello,
I have a simple three-button slideshow using separate stop, play, and go-to-start buttons. There is an audio track that plays as the slides fade in over each other on separate layers. The AS3 code in Frame 1 is:
stop();
stopBtn.addEventListener(MouseEvent.CLICK, onStopClick,
false, 0, true);
function onStopClick(evt:MouseEvent):void {
stop();
}
playBtn.addEventListener(MouseEvent.CLICK, onPlayClick,
false, 0, true);
function onPlayClick(evt:MouseEvent):void {
play();
}
gotoStopBtn.addEventListener(MouseEvent.CLICK, onGotoStopClick,
false, 0, true);
function onGotoStopClick(evt:MouseEvent):void {
gotoAndStop(1);
}
When the SWF slideshow reaches the last frame it automatically goes back to the start. That is fine and is what I want for the current projects, but I want to understand why it does that. Is there a setting somewhere in the .FLA project where the behavior of the playhead at the last frame is set?
Thanks
Thanks Ned,
I understand what you are saying but I guess I didn't ask my question correctly. What I want to know is why the playhead automatically returns to the first frame once it reaches the last frame, even though I haven't told it to do that (that I know of). Is that a behavior that has a setting somewhere, or is it 'just something it does'?
North America
Europe, Middle East and Africa
Asia Pacific