home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Utils / Livebrush / Install-LivebrushLite.air / livebrush.swf / scripts / fl / events / ScrollEvent.as < prev    next >
Encoding:
Text File  |  2009-10-26  |  1.1 KB  |  50 lines

  1. package fl.events
  2. {
  3.    import flash.events.Event;
  4.    
  5.    public class ScrollEvent extends Event
  6.    {
  7.       public static const SCROLL:String = "scroll";
  8.       
  9.       private var _direction:String;
  10.       
  11.       private var _position:Number;
  12.       
  13.       private var _delta:Number;
  14.       
  15.       public function ScrollEvent(param1:String, param2:Number, param3:Number)
  16.       {
  17.          super(ScrollEvent.SCROLL,false,false);
  18.          _direction = param1;
  19.          _delta = param2;
  20.          _position = param3;
  21.       }
  22.       
  23.       public function get position() : Number
  24.       {
  25.          return _position;
  26.       }
  27.       
  28.       public function get direction() : String
  29.       {
  30.          return _direction;
  31.       }
  32.       
  33.       public function get delta() : Number
  34.       {
  35.          return _delta;
  36.       }
  37.       
  38.       override public function toString() : String
  39.       {
  40.          return formatToString("ScrollEvent","type","bubbles","cancelable","direction","delta","position");
  41.       }
  42.       
  43.       override public function clone() : Event
  44.       {
  45.          return new ScrollEvent(_direction,_delta,_position);
  46.       }
  47.    }
  48. }
  49.  
  50.