Is this the correct way to write the code? i still cant work it out …
on(press){
array=[1,2,3,4,5,6,7,8,9]
int i = 0;
function runMe() {
if (array* != undefined) {
//run code with:
trace(array* + "compare to " + array[i+1]);
if (array*< array[i+1])
{
trace("X");
}
else
{
trace("XX");
}
} else
clearInterval(intID);
i++;
}
intID = setInterval(_root, "runMe", 2000);
}