View Single Post
11-09-2008, 04:49 PM
#2
derek lapp is offline derek lapp
Status: design rockstar
Join date: Jan 2005
Location: guelph, ontario
Expertise:
Software:
 
Posts: 2,246
iTrader: 0 / 0%
 

derek lapp is on a distinguished road

  Old

it moves away from the mouse because you tell it to.

this._x += (goalx - this._x)/speed;

moves the object along the x axis. the only thing onEnterFrame does is take the limits you set above and apply them to the object. if you want to stop it from moving along the x axis, just comment out that line.