# Money poorly spent?

**URL:** <https://forum.kirupa.com/t/money-poorly-spent/245199>\
**Category:** flash\
**Created:** [November 27, 2007, 11:30am UTC](https://forum.kirupa.com/t/money-poorly-spent/245199 "2007-11-27T11:30:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ubermeowmix](https://avatars.discourse-cdn.com/v4/letter/u/7cd45c/32.png) [@Ubermeowmix](https://forum.kirupa.com/u/Ubermeowmix)\
**Post date:** [November 27, 2007, 11:30am UTC](https://forum.kirupa.com/t/money-poorly-spent/245199/1 "2007-11-27T11:30:32Z")

</div>

Just bought a new flash 8 action script 2.0 book and I’m going through the custom classes section.

This is Motion.as, say hello he’s only a few hours old!

class Motion extends MovieClip{  
function Motion(){  
trace(“Motion class instantiated”);  
}  
function updatePosition():Void{  
this.\_x++;  
this.\_y++;  
}  
function onEnterFrame():Void{  
this.updatePosition;  
}  
}

When I link him from the fla file and run it’s doing the trace comment once, but it’s not doing the movement. Am I missing something.

Identifier = MotionShape  
AS 2.0 class = Motion
