This domain may be for sale!
Array クラスはコアクラスとしては珍しく final 指定されていないため、Array のサブクラスを独自に定義できます。 このセクションでは、Array のサブクラスを作成する方法について例を示し、その際に発生すると考えられる問題について説明します。 前述したとおり ActionScript の配列には型がありませんが、Array のサブクラスを定義すれば、特定のデータ型の要素だけを格納する配列を作成できるようになります。 以下のセクションの例では、Array のサブクラスとして、第 1 パラメーターに指定されているデータ型の要素だけを格納する TypedArray というクラスを定義します。 TypedArray クラスは、Array クラスの拡張方法の例として示したにすぎず、いくつかの理由で運用目的には適さない場合があります。 第 1 に、コンパイル時ではなく、実行時に型チェック
MadComponents are my contribution to free UI components for Adobe AIR for Mobile. For iPhone, or Android, etc. With MadComponents, you express your user interface in XML. So if want two buttons vertically aligned, you might write:- <vertical> <button>label1</button> <button>label2</button> </vertical> The most powerful feature of MadComponents is that it renders the user interface, adapting to t
コンテンツへスキップ ナビゲーションに移動 Flash HOMEFlashFlashup 第7回 発表資料 「ライブラリを使ってみよう。BetweenAS3入門」
H.264を再生する場合、デコード処理にもGPUが使われる。つまり、StageVideoでH.264を再生する場合はデコードと合成の双方がGPUで処理され、CPUはほとんど使われないようになる。CPUとGPUの間でデータ転送をする必要もなく、もっとも効率のいいパターンといえる。使用するクラスとエンコード、そのときのCPU/GPUの関係は上記のとおりだ。 GPU H/Wアクセラレーションを活用することでCPU負荷の軽減を実現できるStageVideoだが、代わりにいくつかの制限もある。まず、GPUのH/W制限から同時に利用できるビデオの数が制限されている。通常、1つしか許可されない。また、色空間がH/Wに依存するほか、レンダリングは長方形のみ、回転も90度単位に制限される。フィルタ、マスク、ブレンド、アルファといった処理も適用できない。GPUに処理を委託する代わりに、従来はCPUは処理できて
fladdictのTakaさんが、「AVM2にAVM1のSWFを強引にロードするやり方」というのを紹介しているので、これが一体何をしているのか勝手に解説。 まず、 ・ByteArrayの[3]番目のインデックスを9に書き換える。 ByteArrayで3番目のインデックス、つまり4バイト目の値は、SWFファイルのバージョン番号が入っています。恐らく、Flash8で書き出したなら「8」が入っているはずです。AVM2対応なのはバージョン9のSWFからなので、このバージョン番号の部分を「9」に書き換えます。 次に、 ・ByteArrayのインデックス20~30あたりのどっかに、01, 00, 44, 11, 00 という順番にintが並んでいる場所があるので見つける。 ですが、最初の 01, 00 の部分(20~21バイト目固定)は、フレーム数です。メインタイムラインのフレーム数が1の
Twitterの検索APIで、主に使われるのはハッシュタグで検索したつぶやきを使うときだと思います。たとえば、「#CS5_jp」のハッシュタグを検索APIで取得したいとします。 ATOM形式:http://search.twitter.com/search.atom?q=%23CS5_jp JSON形式:http://search.twitter.com/search.json?q=%23CS5_jp まぁFlashなんで、わざわざjsonじゃなくてatomでいいやー!と思いきや、ATOM形式はXMLを扱うように、ActionScriptでパースすることができませんでした。 ATOM形式はRSSリーダーに登録できるように設計されているもので、XML文章フォーマットでありながら閉じタグが省略されているのが、ActionScriptでうまくパースできない原因でした。ここで使うのがAS3のNam
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く