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 / graphics / GraphicUpdate.as < prev    next >
Encoding:
Text File  |  2009-10-26  |  1.1 KB  |  35 lines

  1. package com.livebrush.graphics
  2. {
  3.    import com.livebrush.events.UpdateEvent;
  4.    import com.livebrush.utils.Update;
  5.    
  6.    public class GraphicUpdate extends Update
  7.    {
  8.       public function GraphicUpdate(type:String, data:Object = null, delay:Boolean = true)
  9.       {
  10.          super(type,data,delay);
  11.       }
  12.       
  13.       public static function canvasUpdate(data:Object = null, delay:Boolean = true) : GraphicUpdate
  14.       {
  15.          return new GraphicUpdate(UpdateEvent.CANVAS,data,delay);
  16.       }
  17.       
  18.       public static function layerUpdate(data:Object = null, delay:Boolean = true) : GraphicUpdate
  19.       {
  20.          return new GraphicUpdate(UpdateEvent.LAYER,data,delay);
  21.       }
  22.       
  23.       public static function toolUpdate(data:Object = null, delay:Boolean = true) : GraphicUpdate
  24.       {
  25.          return new GraphicUpdate(UpdateEvent.TOOL,data,delay);
  26.       }
  27.       
  28.       public static function lineUpdate(data:Object = null, delay:Boolean = true) : GraphicUpdate
  29.       {
  30.          return new GraphicUpdate(UpdateEvent.LINE,data);
  31.       }
  32.    }
  33. }
  34.  
  35.