Moving stuff around, nothing to see here
git-svn-id: https://aklabs.dyndns.org/svn/aklabs/trunk/games/wilysays@50 eb184899-6090-47d4-a65b-558f62f6ea1c
This commit is contained in:
34
net/aklabs/demo/simonsays/LoadingObject.as
Executable file
34
net/aklabs/demo/simonsays/LoadingObject.as
Executable file
@@ -0,0 +1,34 @@
|
||||
package net.aklabs.demo.simonsays {
|
||||
|
||||
/*
|
||||
* Class LoadingObject
|
||||
*
|
||||
* This class is used to represent a content asset while it is going through the process of being loaded
|
||||
* by the Preloader class.
|
||||
*/
|
||||
public class LoadingObject {
|
||||
public static var STATE_READY:Number = 0; // Object has been loaded and is ready
|
||||
public static var STATE_LOADING:Number = 1; // Object is currently loading, not ready yet
|
||||
public static var STATE_NOTFOUND:Number = 2; // Object wasn't found in the cache
|
||||
public var handle:String; // Text handle for this object
|
||||
public var state:Number; // State value
|
||||
public var bytesRead:Number; // the amount of bytes currently read in to this object over the net
|
||||
public var bytesTotal:Number; // the total byte size of this object
|
||||
|
||||
/*
|
||||
* LoadingObject()
|
||||
*
|
||||
* Default constructor
|
||||
*
|
||||
* arguments : none
|
||||
*
|
||||
* Returns : LoadingObject
|
||||
*/
|
||||
public function LoadingObject() {
|
||||
this.handle = "";
|
||||
this.state = LoadingObject.STATE_NOTFOUND;
|
||||
this.bytesRead = 0;
|
||||
this.bytesTotal = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user