Avatar of fugu
fugu

asked on 

setInterval - change INTERVAL dynamically with external file?

Hello, I'm using this code to change the speed of a single MC, where "slideshow" is the instance name of my MC.

I want to change the Interval dynamically with an external text file. Actually, the client wants to be able to alter the speed of the slideshow, but not the entire flash file.

playID = setInterval(playMovie, 100);
So I want to be able to plug in "100", "50" etc. in my text file.

Also, is there a way to stop the setInterval dynamically as well? They want to be able to stop, so there is NO interval at all (completely stopped)?

--------------------------------------------
function playMovie() {
      slideshow.gotoAndPlay(slideshow._currentframe+1);
}
playID = setInterval(playMovie, 100);


help is appreciated!!
Thanks!!!


Web DevelopmentAdobe Flash

Avatar of undefined
Last Comment
Rob
ASKER CERTIFIED SOLUTION
Avatar of Rob
Rob
Flag of Australia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Web Development
Web Development

Web development includes all aspects of presenting content on intranets and the Internet, including delivery development, protocols, languages and standards, server software, browser clients, databases and multimedia generation.

78K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo