通常EventDispatcherによって、イベントモデルをミックスインする場合、インスタンスの生成時にクラスのコンストラクタ内EventDispatcher.initialize(this)を呼び出します。 しかし、インスタンスが存在しない静的クラスの場合、EventDispatcherの初期化はどのタイミングで行えばよいのでしょうか。 これは、「イベント機能を使用する前に必ず、フレーム1でクラス.init()を呼び出し、そこで初期化する」。 といったルールを設けることで、解決することができます。 しかしこれはinitの呼び忘れた場合、バグの温床となりえます。 そこで一見アクロバティックに見えつつも、安全に初期化を自動的に行う方法とか考えてみました。 public static function init(){ EventDispatcher.initialize(クラス名); } pu
Flash Player’s EOL is coming at the end of 2020. See the roadmap for Flash Player and AIR’s EOL: Adobe Flash Player EOL General Information Page The Future of Adobe AIR You can access the archived documents relevant to Flash Runtime even after the Flash EOL date. We are providing access to the archived documents for all the user/developers community to download. These documents are now no longer u
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く