Enterprise Strategy Group: Go-to-market Expertise to Help You Win
Enterprise Strategy Group: Go-to-market Expertise to Help You Win
知らないと損をするActionScript3.0の新文法をまとめて紹介します。 複数の変数の出力が楽に:trace 引数に変数を複数渡すと、自動的にスペースで区切って表示をしてくれます。 var a:int = 0; var b:String = 'hgoe'; trace(a, b); // Output: 0 hoge 要素の巡回が楽チン:for each 今まで、配列の要素を巡回するのは、次のようにするのがセオリーでした。 for (var i:Number = 0; i < list.length; ++I) { trace(list[i]); } しかし、もうこんな面倒な事は必要ありません。次のように書けば、list内の要素がひとつずつelementに代入されてループします。 for each (var element:Object in list) {
少し遅くなってしまいましたが、去る 11 月 27 日に開催された Tech-mobi2007 でお話させていただいた ActionScript Converter "3to2 (サントゥニー)" の講演資料とソースコードを公開させていただきます。 講 演資料: http://lab.klab.org/files/flash/asc_presentation/mobidec.xul ActionScript Converter紹介ページ: http://lab.klab.org/modules/mediawiki/index.php/3to2 ソースコー ド: http://lab.klab.org/files/flash/asc3to2.tar.gz ActionScript Converter "3to2" は、その名のとおり、 ActionScript プログラムの変換器を目指して開
Flash の trace 出力を表示するアプリケーション "Trace Rabbit" を作った。以前エントリした FrashTracer のスタンドアロン版となる。 Trace Rabbit 1.0.1 スクリーンショット ダウンロード (13 KB) 実行に必要なもの .NET Framework 2.0 Flash Debug Player 9 注意事項 Debug Player 9 (9.0.28.0?) から、ログファイルの出力先が以下の場所に変わっている。Trace Rabbit はデフォルトでこのファイルを参照する。 C:/Documents and Settings/user_name/Application Data/Macromedia/Flash Player/Logs/flashlog.txt Debug Player 8 で Trace Rabbit を使用する
三日前から Flex2 SDK で ActionScript3 を始めました secondlife です。こんにちわ。AS3 は言語仕様的には ECMAScript と Java をあわせた感じで普通な書き方で OOP できるのでうーん、と頭をひねることはあまりないのですが、他のところでいろいろはまりまくってます。 で、原始的な解決方法として trace() を使ったプリントデバッグを行っているのですが、スクリプト言語に慣れきった体ではコンパイル時間が遅くて死にそうです。たとえばこんな HelloWorld.as package { import flash.display.Sprite; public class HelloWorld extends Sprite { public function HelloWorld() { trace("Hello World!"); } } }を
Erin Catto氏の作った物理シミュレーションエンジンのライブラリである「Box2D」をFlashで利用できるようにしたものがこの「Box2DFlashAS3」、オープンソースで提供されています。 実際にどれだけ威力があるかというのはデモを見ればわかるほどの出来栄えで、ピタゴラスイッチ風なものとか、ドミノ倒しとか、いろいろなことができます。 デモのFlashとダウンロードは以下から。 デモは以下から。左右の矢印キーで次のデモに移動することができ、「R」キーを押すとリセットされます。 Flash Physics Engine Box2DFlashAS3 1.4.2 http://box2dflash.sourceforge.net/ 例えばコレは1つめのデモ。橋の上に物体が乗ってます。 マウスで橋をつかんでふりまわすと、上の物体は四方八方に飛び散ります 次はピタゴラスイッチ風 ドミノ倒し
最近、Flashにはまっている。元々素晴らしい技術であることは分かっていたが、デザイナー的な位置づけが大きいと二の足を踏んでいた。が、ActionScriptだけでも様々なアプリケーションが開発できそうだと分かり、面白さを感じている。 Flash自体の開発環境は無料でも構築できる。が、デバッグが非常に面倒くさい。全てtraceで出力するしかない。だが、これを使えばFirefox上でデバッグが可能だ。 今回紹介するオープンソース・ソフトウェアはThunderBolt、Firebugを使ったActionScriptデバッガだ。 ThunderBoltを使ってFlashを表示すると、FirebugからコマンドベースでFlashを操作できるようになる。表示の大きさや表示開始位置の取得も可能だ。 コンソールからFlashの内容を動的に書き換えることもできる。サンプルスクリプトではうまく動作するが任意
プログラムの最も早い習得方法は、他人のソースを見ながら勉強することだ。興味がもてる材料だけに、ただ本を眺めるよりも効率的に覚えることができる。 では興味の対象がソースを公開していなかったらどうしたら良いだろう。そのためにこれがある。 今回紹介するフリーウェアはFlare、Flashのデコンパイラーだ。 デコンパイラーは名称のまま、逆コンパイルをするためのソフトウェアだ。構成する素材全てが取れるわけではなく、flrという拡張子でActionScript部分が抽出される。逆に素材が欲しい場合は、HugFlashを使おう。 ソースを見てみる事で、実際に行われている処理やサポートされている関数を知ることができる。実は明文化されていない裏APIがあった、なんて事があるかも知れない。尚、動作はWindows、Mac OSX、DOS、Linux、Solarisとなっている(GUI版のMac OSXではう
2007年06月24日12:41 バネモデルによるグラフ描画をActionScriptで(Beta) カテゴリIT 全く同じようなものばっか作りやがって、というツッコミもあるかとは思いますが、今度はグラフ描画をActionScript(Flash)で書いてみました。Flashなので速いし見た目をいろいろ凝れるから使い勝手がよさそうですよね。 http://sawamuland.com/flash/graph.html ※ソースコードは↑の下の方にリンクはってあります ちなみに今回のロジックはこの論文を参考にしてみました。力の計算が単純な分、ちょっと速くなったかも。後でもうちょっと見た目のよいデモを書きます。 既知のバグ: ノードが多くなると角に集中してしまうことがある。壁の扱いをもうちょっと考えないといけないみたい。 「IT」カテゴリの最新記事
大変ご無沙汰していました。 個人的なご報告になりますが、先日、2年間在籍したbAを退職しまして、これからしばらくフリーランスとして活動していきます。関係者の皆様、今まで本当にお世話になりました。 出会えたすべての人に感謝しております。 どうも業界内で所謂Flasherと呼ばれる人種は基本的に変態気質というか、まるで社会と迎合しないような印象を持たれていたりしまして、やはり自分も例外なく変わり者扱いをされてやりきれない思いをしましたが、今となってはいい思い出です。 すでにやることが山積していますが、個人的にはこれからwebやUIデザインに関連したモノ作りをプラットフォームに拘らず幅広くやっていければと思っています。このブログもタイトル変えて再構築したいです。もっとカジュアルな方向で情報発信できれば。 今後の連絡先は以下になります。 koba{at}casualplay.net 何かありました
はてなグループの終了日を2020年1月31日(金)に決定しました 以下のエントリの通り、今年末を目処にはてなグループを終了予定である旨をお知らせしておりました。 2019年末を目処に、はてなグループの提供を終了する予定です - はてなグループ日記 このたび、正式に終了日を決定いたしましたので、以下の通りご確認ください。 終了日: 2020年1月31日(金) エクスポート希望申請期限:2020年1月31日(金) 終了日以降は、はてなグループの閲覧および投稿は行えません。日記のエクスポートが必要な方は以下の記事にしたがって手続きをしてください。 はてなグループに投稿された日記データのエクスポートについて - はてなグループ日記 ご利用のみなさまにはご迷惑をおかけいたしますが、どうぞよろしくお願いいたします。 2020-06-25 追記 はてなグループ日記のエクスポートデータは2020年2月28
KURAGEです。 3Dモデリングデータの表示を目標に制作した、Papervision3D(PV3D)によるリバーシ風サンプルをご紹介致します。 最適化は考えずに表示優先でコーディングしましたが、それなりの速度で動いており、AS3+PV3Dのポテンシャルの高さが伺えます。 説明 PV3Dでは「ASE形式」「COLLADA形式」の3Dモデリングデータを読み込む事が可能です。 (テクスチャ画像はJPG/GIF/PNG等のFlashが扱える形式に限定されます) 本サンプルではメタセコイアでモデリング&UVマッピングしたデータを、Autodesk 3ds Max+ColladaMaxを用いてCOLLADA形式に変換して読み込んでいます。 無償でモデリング環境を整えたい人にはBlenderがオススメです。 3Dならではの視点変更をお楽しみ下さい。 [view1]~[view4]・・・視点の変更 [H
Flash/Flex のアプリケーションを開発していると (たまには) メモリリークとか気になることもあるかと思います。今回は Flash Player 9 のガーベジコレクションについてです。詳細な実装レベルだと、Flash Player のアップデート時に、ガーベジコレクション周りでも多少の変更が行われたりしていますが、いまのところ基本的なモデルは変わっていません。今回はこの ”基本的なモデル” を紹介します。 Flash Player 8 以前は少し違ったモデルになっています。以下の記述内では Flash Player とあったら Flash Player 9 のことだと思ってください。 Flash Player のメモリ確保 Flash Player のメモリ確保時の動作は特にユニークなものではありません。が、話の基本になるのでとりあえず以下概要です。 メモリの確保は負荷の高い部
Bitwise operators are very fast in AS3, so here is a small collection of code snippets which can speed up certain computations. I won’t explain what bit operators are and how to use them, rather pointing to an excellent article hosted on gamedev.net: ‘Bitwise Operations in C’. If you know any good tricks that are not included here, feel free to leave a comment or send me an email. All benchmarks w
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く