home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / zombietypocalypse.swf / scripts / fl / transitions / TweenEvent.as < prev   
Encoding:
Text File  |  2008-09-15  |  1.1 KB  |  40 lines

  1. package fl.transitions
  2. {
  3.    import flash.events.Event;
  4.    
  5.    public class TweenEvent extends Event
  6.    {
  7.       
  8.       public static const MOTION_START:String = "motionStart";
  9.       
  10.       public static const MOTION_STOP:String = "motionStop";
  11.       
  12.       public static const MOTION_LOOP:String = "motionLoop";
  13.       
  14.       public static const MOTION_CHANGE:String = "motionChange";
  15.       
  16.       public static const MOTION_FINISH:String = "motionFinish";
  17.       
  18.       public static const MOTION_RESUME:String = "motionResume";
  19.        
  20.       
  21.       public var time:Number = NaN;
  22.       
  23.       public var position:Number = NaN;
  24.       
  25.       public function TweenEvent(param1:String, param2:Number, param3:Number, param4:Boolean = false, param5:Boolean = false)
  26.       {
  27.          time = NaN;
  28.          position = NaN;
  29.          super(param1,param4,param5);
  30.          this.time = param2;
  31.          this.position = param3;
  32.       }
  33.       
  34.       override public function clone() : Event
  35.       {
  36.          return new TweenEvent(this.type,this.time,this.position,this.bubbles,this.cancelable);
  37.       }
  38.    }
  39. }
  40.