asActionScript 2 用のデバッグツールとして有名だった XRay が ActionScript 3 に対応したようです。DisplayObject の階層を表示してくれたり、オブジェクトのプロパティを修正したり、ログ用のコンソールになったりと機能豊富です。しかも、Flash CS3 だけでなく、Flex や AIR でも使えるようです。ということで、早速、試してみました。ダウンロードしてソースコードに2行追加するだけXRay のソースコードを拾ってきます。Google Code にあるので、SVN で拾ってきましょう。http://osflash-xray.googlecode.com/svn/trunk/as3/trunk/では、自分の Flash に仕込んでみましょう。ActionScript のソースコードに import 文を追加します。 import com.bli
ActionScript Thread Library 1.0 (そうめん) とは はじめにこの処理をして、次にこの処理をして...、という処理の流れを「スレッド (Thread)」と呼びます。英単語の「Thread」には「糸」「縫い糸」「筋道」「脈絡」といった意味があります。 ActionScript 3.0 (FlashPlayer 9) は、処理の流れがひとつしかない「シングルスレッド」で、かつイベントを介して処理を進める「イベント駆動」を採用しているため、データのロード完了を待つ、ユーザーがマウスをクリックするのを待つ、といった非同期処理が入るととたんにコードが複雑になる傾向があります。 そこで登場するのが ActionScript Thread Library 1.0 (そうめん) です。 ActionScript Thread Library は、タスクシステムと Java の
22日に行われたYokohama.pm#2にて ActionScript3で実装中の、いたるところにPerlっぽさが 溢れるORマッパであるas3ormについて話をさせて頂きました。 デジハリ横浜校万歳 発表について 次のような構成でas3ormを紹介 ORMとは何か、Perl実装について かなり略して、参照先だけの紹介 FlashとAIRについて どんなシーンで利用されているか as3orm SYNOPSISを紹介 といった感じでまとめました。 実装中のコードはCodeReposに置いてあります。 http://coderepos.org/share/browser/lang/actionscript/as3orm 発表資料どこかに置こうと思ったんですけど、 クレジットカードの有効期限がいつの間にか切れてて レンタルサーバー失効してしまっていたので、 そのうち何とかします。 もしくは別エ
はてなグループの終了日を2020年1月31日(金)に決定しました 以下のエントリの通り、今年末を目処にはてなグループを終了予定である旨をお知らせしておりました。 2019年末を目処に、はてなグループの提供を終了する予定です - はてなグループ日記 このたび、正式に終了日を決定いたしましたので、以下の通りご確認ください。 終了日: 2020年1月31日(金) エクスポート希望申請期限:2020年1月31日(金) 終了日以降は、はてなグループの閲覧および投稿は行えません。日記のエクスポートが必要な方は以下の記事にしたがって手続きをしてください。 はてなグループに投稿された日記データのエクスポートについて - はてなグループ日記 ご利用のみなさまにはご迷惑をおかけいたしますが、どうぞよろしくお願いいたします。 2020-06-25 追記 はてなグループ日記のエクスポートデータは2020年2月28
こんちわ。さくーしゃです。 えーと、巷では Flash Player 10 beta で騒がしい感じになってきておりますが、そんな中、わたくしは ARToolKit を Flash (AS3) に移植してました。FLARToolKit と命名しておきましょう。まー、移植つっても本家からじゃなくって A虎@nyatla.jp 氏が Java に移植した NyARToolkit を AS3 で書き直したものなんだけど。言語仕様が近いだけあって C 版よりもはるかに移植しやすかったですな。 やっぱでもねー、速度的にはかなり厳しいもんがあるな。ラベリングの部分は Bitmap 師匠のコードをベースにほとんど書き直したんだけど、それでも複数マーカーの認識とかってのはかなり無理がありそう。 3D 表示部分も現状の Flash だとソフトウェアレンダリング(デモでは Papervision3D 使ってる
前に紹介した気もするけど、最近やっぱり便利と実感してる技。 ・まずStageでキーイベントのリスナ登録して取得する。 ・イベントハンドラ内にブレークポイントを作っておく。 こうすると、キーを押せば任意のタイミングでいつでもデバッガを開ける。 イベントハンドラ内にModel, View, Controllerの参照でも作っとけば、コンテンツのステートをいつでも見ることができていい感じ。 FireBug経由やらクリップボード経由やら色々試したけど、コレが一番作業効率いい気がする。
今日はAS3のSocketクラスを使うのが結構大変だ。というネタを。 めずらしく真面目に書いてみようと思います。 How toではなく、AS3のSocketってどうなの?的な話です。 おい!勘違いしてんじゃねぇボケ!などあれば ツッコミなどもらえると嬉しいです。 ■FlashでSocketがなぜ必要なのか 多くのFlashコンテンツにおいて、サーバ連携のためにSocketが必要になることはあまりないでしょう。 Loader系のクラスを使えば、HTTP経由でサーバ上のデータをひっぱってこれるからです。 HTTP以外のプロトコルを使う場合にSocketが必要ですが、現場レベルでは、あまり必要ないでしょう。 ただし、ビルトインのAS3クラスだけでは、HTTPのプロトコルを自在に扱うことが出来ないので、APIを利用したい場合など問題になることがあります。 例えばレスポンスヘッダが(一部しか)取れま
昨日のConverterにつづいて、Debuggerの方も公開します。お試し版のWebアプリも用意しましたので、ぜひ触ってみてください。 TECH-mobi2007まとめ 講演資料 デモ版Webアプリ 今のところ、このツールはまだ自分用で、自分の流儀以外で作られたFlashで本当に動くのかは完全に未知数だったりします。試して上手く動かないFlash Liteアプリがあれば教えていただければ幸いです。今後も、AS Debuggerの中身などのFlash関連の技術ネタをこのBlogや弊社技術者サイトで公開していくつもりなので、ご期待下さい。 ちなみに、12/25のエントリで言及していた、OpenID採用サイトがこのActionScript Debuggerデモサイトです。最初は認証レスの完全公開型にするつもりだったのですが、版権物のアップロードなどのいたずらに対するカジュアルな対策として採用し
という内容で、Coolin Moock さんを囲むの会で as3gettext の発表してきました。アウェイな発表が出来て良かったです(ぇー)。コリンさんは日本語もうまく(ギザとかテラとか使えるレベル)、ジョークを交えながらトークしてくれて面白かったです。まだ普段あまり会えなかった ASer の方々と懇談会などでお話しできて楽しかったです。ありがとうございました。 AS3 アプリケーションの国際化 と時間があったらその他… 自己紹介 舘野祐一 id:secondlife はてなエンジニア ActionScript3 JavaScript Ruby Shibuya.js 開いてます ActionScript と自分 AS 歴 AS3 から Flash に入って約一年 開発環境 Flex2/Flex3 SDK + rascut + vim ActionScript と仕事 JS/AS のブリッ
asjQuery では、$ を関数としてもハッシュとしても使っている。$("#foo") → エレメントを選択$.each() → ユーティリティ関数の呼び出しas3Query でも同じようにやりたかったんだけど、いい方法が思いつかずに苦しんでた。失敗例 1$ を public な function として定義する。Function は dynamic なクラスなので、$["each"] = function(){} とすれば関数を代入できる。$["each"] で呼び出せる。けども、$.each とすると、静的型付け言語の宿命でコンパイルエラーになってしまう。失敗例 2$ をクラスにしてみたら、$() がキャストと解釈されて、$("#foo") が実行時のキャストエラーになった…。失敗例 3Function を extends しようとしたら、final だって怒られた。失敗例 4Pro
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く