« | メイン | sprite »

2006年07月30日

Action Script 3.0

フラッシュ8買ってadobe labsからflash9のα版落としました。
このために8を買ったようなもの、、、。
actionscript3.0はヤバいですなぁ。
actionscriptっていうかJAVA?って感じです。

早速。
Loaderクラス
説明に
「imageやswfを読むためのクラス。
テキストやバイナリファイルを読む場合はURLLoaderクラスを使います。

、、、ってあります。
バイナリファイル読めるのか!!と一人で驚きました。


このLoaderクラスはas2.0時代にあったMovieclipLoaderクラスとほぼ同じ感じのようです。
ただ、as3.0からイベント関連が作り直されているため要注意です。
今までのような
loader.LoadComplete =function()...
の用な感じではなく

loader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler);
という部分と
private function completeHandler(event:Event):void {
//処理
}
という感じになります。

、、、あ、あんまり変わってないかも。
内部的には大きく変わってますが、上っ面はほぼ同じ感じで書けますね。

投稿者 hiphi : 2006年07月30日 00:56

トラックバック

このエントリーのトラックバックURL:
http://hiphi.net/cgi/mt/mt-tb.cgi/54

コメント

My point of view may differ from the other’s, but anyway I have may things to say on this subject. First, everything here is true. Second, check the information first, then comment it

投稿者 jimmymaclet : 2008年04月07日 05:35

Your blog is very informative, I have learned so much from it. It is like daily newspaper :). Added to favs.

投稿者 nathan007 : 2008年04月09日 18:43

コメントしてください




保存しますか?