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 / FileEvent.as < prev    next >
Encoding:
Text File  |  2009-10-26  |  2.5 KB  |  81 lines

  1. package com.livebrush.events
  2. {
  3.    import flash.events.Event;
  4.    
  5.    public class FileEvent extends Event
  6.    {
  7.       public static const BEGIN_LOAD:String = "beginLoad";
  8.       
  9.       public static const FILE_NOT_FOUND:String = "fileNotFound";
  10.       
  11.       public static const WRONG_FILE:String = "wrongFile";
  12.       
  13.       public static const IO_EVENT:String = "ioEvent";
  14.       
  15.       public static const IO_ERROR:String = "ioError";
  16.       
  17.       public static const OPEN:String = "openFile";
  18.       
  19.       public static const BATCH_OPEN:String = "batchOpenFile";
  20.       
  21.       public static const SAVE:String = "saveFile";
  22.       
  23.       public static const PROJECT_SAVED:String = "projectSaved";
  24.       
  25.       public static const CLOSE:String = "closeFile";
  26.       
  27.       public static const IMPORT:String = "import";
  28.       
  29.       public static const EXPORT:String = "export";
  30.       
  31.       public static const IMPORT_STYLE:String = "importStyle";
  32.       
  33.       public static const EXPORT_STYLE:String = "exportStyle";
  34.       
  35.       public static const IMPORT_DECOSET:String = "importDecoSet";
  36.       
  37.       public static const EXPORT_DECOSET:String = "exportDecoSet";
  38.       
  39.       public static const IMPORT_DECO:String = "importDeco";
  40.       
  41.       public static const EXPORT_DECO:String = "exportDeco";
  42.       
  43.       public static const SAVED_FLAT:String = "saveFlatImage";
  44.       
  45.       public static const IO_COMPLETE:String = "ioComplete";
  46.       
  47.       public static const VERSION_UPDATE:String = "versionUpdate";
  48.       
  49.       public static const NEW_VERSION:String = "newVersion";
  50.       
  51.       public static const UPDATE_VERSION:String = "updateVersion";
  52.       
  53.       public static const CURRENT_VERSION:String = "currentVersion";
  54.       
  55.       public var action:String = "";
  56.       
  57.       public var data:Object = "";
  58.       
  59.       public var fileType:String = "";
  60.       
  61.       public function FileEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, action:String = "", fileType:String = "", data:Object = "")
  62.       {
  63.          super(type,bubbles,cancelable);
  64.          this.action = action;
  65.          this.fileType = fileType;
  66.          this.data = data;
  67.       }
  68.       
  69.       override public function clone() : Event
  70.       {
  71.          return new FileEvent(type,bubbles,cancelable);
  72.       }
  73.       
  74.       override public function toString() : String
  75.       {
  76.          return formatToString("FileEvent","type","bubbles","cancelable","eventPhase");
  77.       }
  78.    }
  79. }
  80.  
  81.