This repository has been archived on 2026-05-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
wilysays/net/aklabs/demo/simonsays/LoadingObject.as

34 lines
1.1 KiB
ActionScript
Raw Permalink Normal View History

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;
}
}
}