Hi, I just need to know how to call functions in AS1.0, i need this translated to 1.0 please
var timeoutID:Number;
var intervalID:Number;
this.onMouseMove = function(){
clearInterval(intervalID);
clearTimeout(timeoutID);
speed = 10;
setTimeout(inactive, 2000);
}
//If the move doesn't move for 2secs, this function is called
function inactive():Void
{
clearInterval(intervalID);
intervalID = setInterval(decreaseVelocity, 100);
}
//Each 100ms the speed is decreased 0.5 until zero
function decreaseVelocity():Void
{
if(speed>0)
{
speed -= 0.5;
}else
{
clearInterval(intervalID);
speed = 0;
}
}
I only really need to know how to call the function in AS1.0, this part
function decreaseVelocity():Void
This script is fully working in AS2.0 but I absolutely have to have it in 1.0