「ActionScript 3」とは、「Flash Player 9」以降で実行できるオブジェクト指向のスクリプト言語。言語仕様やパッケージ設計はJava言語により近くなり、洗練されたオブジェクト指向言語となった。JITコンパイラ搭載により、処理速度も大幅に向上している。 開発ツールはコマンドラインベースの「Flex 2 SDK」(無償)と、Eclipseベースの「Flex Builder 2」(有償)がある。
AS3でNumber型の変数にヌルポが渡ると0になる件について。 var ar:Array = [null, null, null] var b:Number = ar[0] trace(b) ------------------------- returns 0 これは激しく予想外。 ループ管理の変数とかにヌルポが渡ると、isNaNで検出できない上に、カウンタが0に戻って無限ループ。 EOFっぽくnullを使うのは激しくデンジャラスです。 あまりに地雷だったので、未来の自分の為にメモ。
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く