![]() |
![]() |
||||||
|
|||||||
| Tags: |
![]() |
|
|||
|
OK I have mad a simple slide show in flash and the actionscipt is equally as
simple as I am a complete noob and dont know what Im doing. The problem is that my slide show plays once, then loops back to the beginning (all good so far) then it freezes at the end of slide2. Whats going on? Why does it work the first time and then stop on the second run? Can anyone help please? Here is the code I am using: To move to the next slide I have: stop(); function goNext(){ currentSlide.gotoNextSlide(); clearInterval(timer); } var timer = setInterval(goNext, 500); To move to the 1st lside I have: stop(); function goNext(){ _root.presentation.gotoSlide(_root.presentation.sl ide1); clearInterval(timer); } var timer = setInterval(goNext, 500); Thanks |
| Sponsored Links |
|
|||
|
Try this.
Put the clearinterval at the starting of the function. stop(); function goNext(){ clearInterval(timer); currentSlide.gotoNextSlide(); } var timer = setInterval(goNext, 500); //Second stop(); function goNext(){ clearInterval(timer); _root.presentation.gotoSlide(_root.presentation.sl ide1); } var timer = setInterval(goNext, 500); |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise