Ignore:
Timestamp:
08/19/11 09:20:17 (21 months ago)
Author:
jeroen
Message:

small bug that prevented the ease animation from working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fl5/src/com/longtailvideo/jwplayer/utils/Animations.as

    r776 r1965  
    8383                /** The ease enterframe function. **/ 
    8484                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) { 
    8686                                _tgt.removeEventListener(Event.ENTER_FRAME, easeHandler); 
    87                                 _tgt.x = _tgt.xps; 
    88                                 _tgt.y = _tgt.yps; 
     87                                _tgt.x = _xps; 
     88                                _tgt.y = _yps; 
    8989                        } 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; 
    9292                        } 
    9393                } 
Note: See TracChangeset for help on using the changeset viewer.