# Simple Conversion of 2.0 to 1.0

**URL:** https://forum.kirupa.com/t/simple-conversion-of-2-0-to-1-0/313790
**Category:** flash
**Created:** [September 9, 2010, 4:47pm UTC](https://forum.kirupa.com/t/simple-conversion-of-2-0-to-1-0/313790 "2010-09-09T16:47:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Shinji246](https://avatars.discourse-cdn.com/v4/letter/s/dc4da7/32.png) [@Shinji246](https://forum.kirupa.com/u/Shinji246)
#### Post date: [September 9, 2010, 4:47pm UTC](https://forum.kirupa.com/t/simple-conversion-of-2-0-to-1-0/313790/1 "2010-09-09T16:47:10Z")

</div>

Hi, I just need to know how to call functions in AS1.0, i need this translated to 1.0 please

```auto

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

```auto

function decreaseVelocity():Void

```

This script is fully working in AS2.0 but I absolutely have to have it in 1.0
