asこんな記事を見つけたけどそんなことないよ。Flash上でキー操作をするにはFlashにフォーカスが当たっていなければならない。フォーカスが当たっていない時にJavaScriptからフォーカス出来るか実験してみた。http://codefairy.org/etc/focus-swf.html結果。Firefox 3: 一度手でフォーカスを当てる操作をした後だとフォーカス出来るSafari 4: 無理Chrome 2: 無理IE 8: 無理むり! less - JavaScriptからFlashにフォーカスを与えられるかこの記事ではフォーカスを得られるかどうかを MXML の Application.focusIn イベントで判別してるんだけど、ここに問題がある。簡単にまとめると、Flash を扱う場合にはフォーカスといってもブラウザが管理しているフォーカスFlash が管理しているフォー
まずは完成サンプルをご覧下さい。非常に印象の強い写真の出現方法です。 幅:550、高さ400の写真を用意します。実際のところ、どのサイズでも構いませんが説明の都合上、このサイズでいきます。写真が用意できない方は下記の写真をお使い下さい。学習用写真をダウンロード Flashを起動して[Flashドキュメント]をクリックして、新規ファイルを立ち上げます。 [プロパティインスペクタ]で背景色を「黒」に設定します。 「blur_mask.fla」として適当なところに保存します。以下、適度に上書き保存していってください。 [ファイル]メニューから[読み込み]→[ステージに読み込み]をクリックして、素材写真を参照します。 ステージに読み込まれた写真を選択して、[プロパティインスペクタ]で、[X:0 Y:0]をクリックします。ステージにぴったりあわせます。 写真を選択して、「F8」を押します。「シ
wonderflは、サイト上でFlashをつくることのできるサービス。 通常Flashをつくるためには、Flash IDEやFlex、FlashDevelop等といったツールを使って、コードを書き、コンパイルする必要がありますが、wonderflでは、サイトにあるフォームにActionscript3のコードを書けば、サーバサイドでコンパイルを行えます。 つまり、ブラウザさえあれば、Flashをつくれます。コンパイル結果はサイト上に表示され、作成されたFlash(swf)はページ上に自動的に表示されるので、完成したFlashをリアルタイムに見ながらコードを書くことができます。 ※APIとして、はてな OpenIDを使用してネットにさえつながれば、誰もがFlashクリエイターになれます。世界中のFlashクリエイターがユーザーになるwonderflは、 文字通り、世界のFlash図鑑となってい
Adobe Labs に Text Layout Framework ベータ版が公開されました。(Text Layout Framework@Labs) Flash Player 10 から新しいテキストエンジン (Flash Text Engine - FTE) とそれを扱うための flash.text.engine という新しいパッケージが追加されていますが、Text Layout Framework はその API 上に構築されたフレームワークです。高度なテキストのレイアウト機能や、テキストの選択、編集機能などが実装されています。また、マークアップ形式のデータを扱うことができます。 上のリンクのページに Flash コンテンツとして 8 つのデモが提供されていますので、まずはそちらをご覧ください。"start tour" をクリックすると最初のデモが表示されます。 Text Layo
AS3Wrapper AS3Wrapper imports Flash libraries into Javascript. JavaScriptからActionScript3を使うための「AS3Wrapper」 AS3Wrapperを使えば、JavaScriptの中でFlashオブジェクトを生成して、Flashをそのまま扱えるようです。 with(playerInstance) with(flash.display) with(flash.net){ var image = new Loader(); image.load(new URLRequest(url)); addChild(image); } AS3Wrapperを使ってできるサンプルリストは以下 Drawing a scene Loading an image A text-effect with scalable font
※ WordPressの表示は公式サイトデモより ブラウザのレンダリング結果の互換性を保つのは非常に骨の折れる作業だ。はじめこそ様々なブラウザでの表示を試すが、運用している中でその品質は維持できず、徐々に乱れていく。 そうした中、新しい手法が登場した。レンダリングにActionScriptを利用するのだ。Flashベースであれば、プラグインさえ入っていればレンダリング結果は問題なくなりそうだ。 今回紹介するオープンソース・ソフトウェアはWrapper、ActionScriptベースのHTML/CSSレンダリングソフトウェアだ。 Wrapperの面白い点は、今表示されているHTMLをラッピングして表示する点にあるだろう。つまり現状のシステムにそのまま利用できると言うこと、そしてFlashやJavaScriptに対応していないブラウザでも表示できるということだ。現時点で実用レベルかと言われると
Box2DFlashAS3 2.0.1 Drag objects with the mouse. 'Left'/'Right' arrows to go to previous/next example. 'R' to reset. Update: Version 2.0.1 released!. Box2DFlashAS3 is an open source port of Erin Catto's powerful c++ physics library Box2D. Cycle through the demos above to see some of the features. Full source code for the engine and examples can be downloaded from the project's sourceforge page fou
Memotuneの開発を通じてActionScriptやFlashに触れる機会が増えてきた。ブラウザ間の互換性、表現力、どれをとっても興味深い。だが、開発するのに躊躇している人が多いのも確かだ。 一つの要因は、デザイン部分が大きく関わっている事。そしてもう一つは環境構築が面倒だと思われている事だ。デザインについてはActionScriptのみであれば殆ど関係ない。そして環境はフリーでもできてしまうのだ。 今回紹介するフリーウェアはas2edit、ActionScript2開発用エディタだ。 as2editはWindowsベースのアプリケーションで、mtascと組み合わせる事でFlashファイルも生成できる。mtasc側の制限もあって、ActionScript2向けだが、インターネット上の情報は数多いので十分開発できる。 タブ型のインタフェース、クラスの構造解析とコード補完、ハイライト表示等
最近、Flashにはまっている。元々素晴らしい技術であることは分かっていたが、デザイナー的な位置づけが大きいと二の足を踏んでいた。が、ActionScriptだけでも様々なアプリケーションが開発できそうだと分かり、面白さを感じている。 Flash自体の開発環境は無料でも構築できる。が、デバッグが非常に面倒くさい。全てtraceで出力するしかない。だが、これを使えばFirefox上でデバッグが可能だ。 今回紹介するオープンソース・ソフトウェアはThunderBolt、Firebugを使ったActionScriptデバッガだ。 ThunderBoltを使ってFlashを表示すると、FirebugからコマンドベースでFlashを操作できるようになる。表示の大きさや表示開始位置の取得も可能だ。 コンソールからFlashの内容を動的に書き換えることもできる。サンプルスクリプトではうまく動作するが任意
表参道アカリウムができるまで 表参道アカリウムとは、表参道の並木道をライトアップするWebサイトと連動したキャンペーンイベントで、2006年に制作・実施された。2007年の広告賞(ADFEST(アジア太平洋広告祭)モバイルカテゴリGOLD、東京インタラクティブ・アド・アワード 金賞、銀賞、入賞など)で優秀な成績を収めることができた。本記事は、このWebサイトで開発したFlashのギミックを解説する。今回の記事でActionScriptのサンプルとコードを公開しているので、Flashコンテンツ作成の際にご自由に利用していただきたい。 イベントの具体的内容は、「akarium Callダイヤル」という固定の電話番号(普通のフリーダイアル)に電話してメッセージを伝えると、かけた人の声がリアルタイムにそのまま表参道を包む灯り(あかり)に変わってしまうというもの。電話に話しかけると、表参道のイルミネ
日頃より楽天のサービスをご利用いただきましてありがとうございます。 サービスをご利用いただいておりますところ大変申し訳ございませんが、現在、緊急メンテナンスを行わせていただいております。 お客様には、緊急のメンテナンスにより、ご迷惑をおかけしており、誠に申し訳ございません。 メンテナンスが終了次第、サービスを復旧いたしますので、 今しばらくお待ちいただけますよう、お願い申し上げます。
200行ぐらいある関数を、分かりやすく書きなおそう、というお話。お題はこんなJavaScript。あとで、軽く ActionScript 3.0 も出てくるよ。 function fly() { // 初期化処理 var init:Boolean = false; // 50行ぐらい初期化処理 // うまくいったら init が true になる // 実行 if(init) { var succeeded = false; // 100行ぐらい実行 } // 終了処理 // 30行ぐらい終了処理 } 構造化プログラミングについて知ってる人なら、きっとこうする。 function fly() { if(startFly()) { doFly(); } endFly(); } 構造がたいそうすっきりした。問題は、startFly()・doFly()・endFly() をどこに記述するか。fl
はてなグループの終了日を2020年1月31日(金)に決定しました 以下のエントリの通り、今年末を目処にはてなグループを終了予定である旨をお知らせしておりました。 2019年末を目処に、はてなグループの提供を終了する予定です - はてなグループ日記 このたび、正式に終了日を決定いたしましたので、以下の通りご確認ください。 終了日: 2020年1月31日(金) エクスポート希望申請期限:2020年1月31日(金) 終了日以降は、はてなグループの閲覧および投稿は行えません。日記のエクスポートが必要な方は以下の記事にしたがって手続きをしてください。 はてなグループに投稿された日記データのエクスポートについて - はてなグループ日記 ご利用のみなさまにはご迷惑をおかけいたしますが、どうぞよろしくお願いいたします。 2020-06-25 追記 はてなグループ日記のエクスポートデータは2020年2月28
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く