AS2でルートタイムラインに自作クラスを割り当てる方法
しばしば忘れてしまう&厳密に理解できないので、おまじないとしてメモ。
やり方1
第4回 大阪てら子 で学んだ10個の Flash 製作 Tips – てっく煮ブログ
//ルートのライムライン
App.main(_root);
//App.main() の実装
static public function main(target:MovieClip):Void {
target.__proto__ = App.prototype;
Function(App).apply(target, null);
}
やり方2
apeirophobia: MAX補足#4(資料およびソース)
の「Slide contents」の「FlashへのMVCの適応」のページ
this.__proto__ = com.max.Ctrl.prototype;
com.max.Ctrl["apply"](this);
About this entry
You’re currently reading
“AS2でルートタイムラインに自作クラスを割り当てる方法”
an entry on Attractors.jp – Blog
- Published:
- 01.30.08 / 5pm
- Category:
- Flash AS2









No comments
Jump to comment form | comments rss [?] | trackback uri [?]