I’m having trouble a function getting called over and over again. Here is the code:
function shine() {
glare.play();
trace(“SHINE!”);
}
setInterval(shine, 15000);
This part is working perfectly. The problem is that the way this animation is working, the the timeline hits this frame with the code many times throughout the website and then repeats the shine many times every 15 seconds. I just need it to go ONCE on that time interval. I think I need to write an if statement and define a variable in the the shine function that only allows it to call the function once and not many times, but I’m not sure where to start.
Any suggestions/help??
Thanks!