As entitled in this post, suppose we have wrote in timeline
function myF1(){
var a=1; //setting initial variables
var b=1;
function myF2(){
…
//something involved with a and b variables
…
a*=-; //toggle
b++; // counter
}
}
setInterval(myF2,100); I tried it, but didn’t work
The problem emerges because I want to use local variables (i.e. a and b) to perform tasks of myF2 on several clips at the same time but started, say, a half of second one after the another. I don’t want to use timeline variables because all clips must start with the same initial variable values.
If it’s impossible to use setInterval like this, how is it possible to fix the problem I described here? :twoface:.
This code is for Flash Professional 8.0