Adobe Dreamweaver Forums



Last 10 THreads :         can you make a LineChart cumulative? (Last Post : Amy Blankenship - Replies : 1 - Views : 2 )           »          Really Awful Bug (Last Post : Walter Elias - Replies : 5 - Views : 6 )           »          need help with flash movie for the website (Last Post : romalsz - Replies : 0 - Views : 1 )           »          Drop-Down Boxes showing blank (Last Post : karimc - Replies : 2 - Views : 3 )           »          Color query, at specific point on screen (Last Post : atta707 - Replies : 4 - Views : 5 )           »          Get Locale country and language codes (Last Post : PaulH **AdobeCommunityExpert** - Replies : 21 - Views : 22 )           »          Odd.... (Last Post : steve grosz - Replies : 2 - Views : 3 )           »          Spry Tabbed Panels - Start with no default tab?? (Last Post : rhore - Replies : 0 - Views : 1 )           »          Flash Player 10 compatibility (Last Post : Captiv8r - Replies : 3 - Views : 25 )           »          Connecting to a Database (Last Post : sugar_d - Replies : 5 - Views : 6 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Other Macromedia/Adobe Products > Flash > Actionscript
 
Tags:



Reply
  #1 (permalink)  
Old 10-10-2008, 07:55 PM
ThePath
 
Posts: n/a
Diggs:
Default Help needed!! Slideshow problems.

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



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 10-13-2008, 01:24 PM
Devendran
 
Posts: n/a
Diggs:
Default Re: Help needed!! Slideshow problems.

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);


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 03:43 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk