| パッケージ | net.user1.reactor.snapshot |
| クラス | public class AccountListSnapshot |
| 継承 | AccountListSnapshot Snapshot flash.events.EventDispatcher |
| バージョン : | Reactor 1.0.0 |
// スナップショットを作成します
var snapshot:AccountListSnapshot = new AccountListSnapshot();
// コールバック関数を登録します
snapshot.onLoad = function ():void {
trace("Here are the user accounts on the server: " + snapshot.getAccountList());
}
// あるいはリスナー関数を登録します
snapshot.addEventListener(SnapshotEvent.LOAD, loadListener);
function loadListener (e:SnapshotEvent):void {
trace("Here are the user accounts on the server: "
+ AccountListSnapshot(e.target).getAccountList());
}
// アカウントリストをロードするために、
// スナップショットオブジェクトをReactorのupdateSnapshot()メソッドに渡します:
reactor.updateSnapshot(snapshot);
関連項目
| メソッド | 定義元 | ||
|---|---|---|---|
コンストラクタ | AccountListSnapshot | ||
getAccountList():Array サーバー上のアカウントのユーザーIDのストリング型の配列を返します。 | AccountListSnapshot | ||
![]() | getStatus():String 最も最近のスナップショットのロード操作のステータスを返します。 | Snapshot | |
![]() | updateInProgress():Boolean スナップショットが現在データをロード中かどうかを示します。 | Snapshot | |
| AccountListSnapshot | () | コンストラクタ |
public function AccountListSnapshot()コンストラクタ
| getAccountList | () | メソッド |
public function getAccountList():Array| バージョン : | Reactor 1.0.0 |
サーバー上のアカウントのユーザーIDのストリング型の配列を返します。 リストを更新するには、AccountListSnapshotオブジェクトをReactorのupdateSnapshot()メソッドに渡してください。
戻り値Array |
関連項目