Actionscript delay help needed

SpaceshipSpaceship
Watch

jon21021985

Established Member
Impact
1
Hi all, I have a thumbnail gallery viewer, instead of just stopping on each thumbnail I want the play head to got back to frame 1 after a delay so the movie starts over when an image is left on for certain lenghth of time.

I have this script which seems to work except when other thumbnails are clicked the delay seems to be shortened even though the delay time for each thumbnail is the same, I think it is because flash doesnt discard the countdown from the previouse clicked thumbs so the delay gets shorter after each click!!!! i think lol...im no expert.

stop();
var id = setInterval(go, 12000);
function go() {
clearInterval(id);
gotoAndStop(1);
}


can I alter the script to solve the proble?

thanks....jon
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
Unstoppable Domains — AI StorefrontUnstoppable Domains — AI Storefront
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomainEasy — Payment Flexibility
DomDB
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back