home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Templates / Flash / flashmo_101_3d_carousel / org / papervision3d / events / FileLoadEvent.as next >
Text File  |  2007-07-19  |  3KB  |  65 lines

  1. /*
  2.  *  PAPER    ON   ERVIS  NPAPER ISION  PE  IS ON  PERVI IO  APER  SI  PA
  3.  *  AP  VI  ONPA  RV  IO PA     SI  PA ER  SI NP PE     ON AP  VI ION AP
  4.  *  PERVI  ON  PE VISIO  APER   IONPA  RV  IO PA  RVIS  NP PE  IS ONPAPE
  5.  *  ER     NPAPER IS     PE     ON  PE  ISIO  AP     IO PA ER  SI NP PER
  6.  *  RV     PA  RV SI     ERVISI NP  ER   IO   PE VISIO  AP  VISI  PA  RV3D
  7.  *  ______________________________________________________________________
  8.  *  papervision3d.org + blog.papervision3d.org + osflash.org/papervision3d
  9.  */
  10.  
  11. /*
  12.  * Copyright 2006 (c) Carlos Ulloa Matesanz, noventaynueve.com.
  13.  *
  14.  * Permission is hereby granted, free of charge, to any person
  15.  * obtaining a copy of this software and associated documentation
  16.  * files (the "Software"), to deal in the Software without
  17.  * restriction, including without limitation the rights to use,
  18.  * copy, modify, merge, publish, distribute, sublicense, and/or sell
  19.  * copies of the Software, and to permit persons to whom the
  20.  * Software is furnished to do so, subject to the following
  21.  * conditions:
  22.  *
  23.  * The above copyright notice and this permission notice shall be
  24.  * included in all copies or substantial portions of the Software.
  25.  *
  26.  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  27.  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  28.  * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  29.  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  30.  * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  31.  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  32.  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  33.  * OTHER DEALINGS IN THE SOFTWARE.
  34.  */
  35.  
  36. package org.papervision3d.events
  37. {
  38.     import flash.events.Event;
  39.  
  40.     /**
  41.     * The FileLoadEvent class represents events that are dispatched when files are loaded.
  42.     */
  43.     public class FileLoadEvent extends Event
  44.     {
  45.         public static var LOAD_COMPLETE                 :String = "loadComplete";
  46.         public static var LOAD_ERROR                    :String = "loadError";
  47.         public static var SECURITY_LOAD_ERROR            :String = "securityLoadError";
  48.         public static var COLLADA_MATERIALS_DONE        :String = "colladaMaterialsDone";
  49.         public static var LOAD_PROGRESS                 :String = "loadProgress";
  50.         
  51.         public var file:String = "";
  52.         public var bytesLoaded:Number = -1;
  53.         public var bytesTotal:Number = -1;        
  54.         public var dataObj:Object = null;
  55.  
  56.         public function FileLoadEvent( type:String, file:String="", bytesLoaded:Number=-1, bytesTotal:Number=-1, dataObj:Object = null, bubbles:Boolean=false, cancelable:Boolean=false)
  57.         {
  58.             super( type, bubbles, cancelable );
  59.             this.file = file;
  60.             this.bytesLoaded = bytesLoaded;
  61.             this.bytesTotal = bytesTotal;
  62.             this.dataObj = dataObj;
  63.         }
  64.     }
  65. }