# Error 1120

**URL:** <https://forum.kirupa.com/t/error-1120/298532>\
**Category:** flash\
**Created:** [October 20, 2009, 4:50pm UTC](https://forum.kirupa.com/t/error-1120/298532 "2009-10-20T16:50:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![callsage](https://avatars.discourse-cdn.com/v4/letter/c/58956e/32.png) [@callsage](https://forum.kirupa.com/u/callsage)\
**Post date:** [October 20, 2009, 4:50pm UTC](https://forum.kirupa.com/t/error-1120/298532/1 "2009-10-20T16:50:07Z")

</div>

Hey, I’m pretty new to AS, so I have no idea how to fix these errors…

This is one of the errors… it says the input is an undefined property

var finalDestination:Number = input.x;  
var distanceMoved:Number = 0;  
var distanceToMove:Number = Math.abs(finalDestination-currentPosition);  
var finalSpeed:Number = .3;  
var currentSpeed:Number = 0;  
var dir:Number = 1;

this is the other error… same thing, but maskMovie is the undefined property…i dont get it

function onEF(e:Event):void {  
currentSpeed=Math.round(distanceToMove - distanceMoved + 1 \* finalSpeed);  
distanceMoved+= currentSpeed;  
contentHold.x+= dir \* currentSpeed;  
if (Math.abs(distanceMoved - distanceToMove) \<= 1) {  
contentHold.x=maskMovie.x - currentPosition + dir \* distanceToMove;  
currentPosition=input.x;  
startFlag=false;  
this.removeEventListener(Event.ENTER\_FRAME,onEF);  
}  
};  
}  
};
