Package | net.user1.reactor.snapshot |
Class | public class AccountListSnapshot |
Inheritance | AccountListSnapshot ![]() ![]() |
Since : | Reactor 1.0.0 |
// Create the snapshot var snapshot:AccountListSnapshot = new AccountListSnapshot(); // Register a callback function snapshot.onLoad = function ():void { trace("Here are the user accounts on the server: " + snapshot.getAccountList()); } // Or register a listener function snapshot.addEventListener(SnapshotEvent.LOAD, loadListener); function loadListener (e:SnapshotEvent):void { trace("Here are the user accounts on the server: " + AccountListSnapshot(e.target).getAccountList()); } // Load the account list by passing the snapshot object to // Reactor's updateSnapshot() method: reactor.updateSnapshot(snapshot);
See also
Method | Defined By | ||
---|---|---|---|
Constructor
| AccountListSnapshot | ||
getAccountList():Array
Returns an array of the string userIDs of the accounts on the server. | AccountListSnapshot | ||
![]() | getStatus():String
Returns the status of the most recent snapshot load-operation. | Snapshot | |
![]() | updateInProgress():Boolean
Indicates whether the snapshot is currently loading data. | Snapshot |
AccountListSnapshot | () | Constructor |
public function AccountListSnapshot()
Constructor
getAccountList | () | method |
public function getAccountList():Array
Since : | Reactor 1.0.0 |
Returns an array of the string userIDs of the accounts on the server. To refresh the list, pass this AccountListSnapshot object to Reactor's updateSnapshot() method.
ReturnsArray |
See also