- Timestamp:
- 08/19/11 09:20:17 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/fl5/src/com/longtailvideo/jwplayer/utils/Animations.as
r776 r1965 83 83 /** The ease enterframe function. **/ 84 84 private function easeHandler(evt:Event):void { 85 if (Math.abs(_tgt.x - _ tgt.xps) < 1 && Math.abs(_tgt.y - _tgt.yps) < 1) {85 if (Math.abs(_tgt.x - _xps) < 1 && Math.abs(_tgt.y - _yps) < 1) { 86 86 _tgt.removeEventListener(Event.ENTER_FRAME, easeHandler); 87 _tgt.x = _ tgt.xps;88 _tgt.y = _ tgt.yps;87 _tgt.x = _xps; 88 _tgt.y = _yps; 89 89 } else { 90 _tgt.x = _ tgt.xps - (_tgt.xps - _tgt.x) / _spd;91 _tgt.y = _ tgt.yps - (_tgt.yps - _tgt.y) / _spd;90 _tgt.x = _xps - (_xps - _tgt.x) / _spd; 91 _tgt.y = _yps - (_yps - _tgt.y) / _spd; 92 92 } 93 93 }
Note: See TracChangeset
for help on using the changeset viewer.
