home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Utils / Livebrush / Install-LivebrushLite.air / livebrush.swf / scripts / com / livebrush / events / UpdateEvent.as < prev   
Encoding:
Text File  |  2009-10-26  |  1.9 KB  |  64 lines

  1. package com.livebrush.events
  2. {
  3.    import flash.events.Event;
  4.    
  5.    public class UpdateEvent extends Event
  6.    {
  7.       public static const SELECTION:String = "selection";
  8.       
  9.       public static const GROUP:String = "groupUpdate";
  10.       
  11.       public static const BEGIN:String = "begin";
  12.       
  13.       public static const FINISH:String = "finish";
  14.       
  15.       public static const LINE:String = "lineUpdate";
  16.       
  17.       public static const LAYER:String = "layerUpdate";
  18.       
  19.       public static const CANVAS:String = "canvasUpdate";
  20.       
  21.       public static const TOOL:String = "toolUpdate";
  22.       
  23.       public static const UI:String = "uiUpdate";
  24.       
  25.       public static const WINDOW:String = "windowUpdate";
  26.       
  27.       public static const DATA:String = "dataUpdate";
  28.       
  29.       public static const TRANSFORM:String = "transformUpdate";
  30.       
  31.       public static const COLOR:String = "colorUpdate";
  32.       
  33.       public static const BRUSH_STYLE:String = "brushStyleUpdate";
  34.       
  35.       public static const PROJECT:String = "projectUpdate";
  36.       
  37.       public static const LOADING:String = "loadingUpdate";
  38.       
  39.       public static const DRAW_MODE:String = "drawModeUpdate";
  40.       
  41.       public var delay:Boolean = true;
  42.       
  43.       public var data:Object = null;
  44.       
  45.       public function UpdateEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, data:Object = null, delay:Boolean = true)
  46.       {
  47.          super(type,bubbles,cancelable);
  48.          this.data = data;
  49.          this.delay = delay;
  50.       }
  51.       
  52.       override public function toString() : String
  53.       {
  54.          return formatToString("UpdateEvent","type","bubbles","cancelable","eventPhase","data","delay");
  55.       }
  56.       
  57.       override public function clone() : Event
  58.       {
  59.          return new UpdateEvent(type,bubbles,cancelable,this.data,this.delay);
  60.       }
  61.    }
  62. }
  63.  
  64.