#freeze
-[[ActionScript3.0 導入:http://kozy.heteml.jp/pukiwiki/index.php?ActionScript3.0%20%C6%B3%C6%FE]]
--[[ActionScript3.0 サンプル フォトビュワー:http://kozy.heteml.jp/pukiwiki/index.php?ActionScript3.0%20%A5%B5%A5%F3%A5%D7%A5%EB%20%A5%D5%A5%A9%A5%C8%A5%D3%A5%E5%A5%EF%A1%BC]]
* 言語仕様 [#r7c11d5f]
-[[Adobe® Flex3 リファレンスガイド:http://livedocs.adobe.com/flex/3_jp/langref/index.html]]
-[[ActionScript3.0 言語仕様:http://kozy.heteml.jp/pukiwiki/index.php?ActionScript3.0%20%B8%C0%B8%EC%BB%C5%CD%CD]]
* バージョンの注意 [#v7aeb9bf]
-[[ActionScript 2.0 Migration:http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/index.html?migration.html&all-classes.html]]
* 開発環境 [#of0f965a]
-FlashDevelop
--[[フリーのFlash統合開発環境 FlashDevelop (+flex 3 SDK)を入れてみました:http://sothis.blog.so-net.ne.jp/2008-03-26]]
* ライブラリ [#t280c494]
-[[swfobject:http://code.google.com/p/swfobject/]] ... Googleが作っている、SWFをJavaScript使って出力するもの
--[[SWFObjectのドキュメントを日本語に翻訳してみたよ:http://www.trick7.com/blog/2006/06/15-135235.php]]
-[[Tweener (caurina.transitions.Tweener):http://code.google.com/p/tweener/]]
* HTMLにFlashコンテンツを埋め込む [#b0033a66]
-[[『swfObject』と『AC_RunActiveContent.js』の違い?@メモ:http://samplejuice.blog102.fc2.com/blog-entry-98.html]]
** AC_RunActiveContent.js [#rb881172]
-Internet Explorerのセキュリティの変更で、Flashコンテンツをクリックすることが必要になったことへの対策で使用するファイル。
-[[巨人MSを揺るがす特許侵害訴訟---全世界のネット利用者を巻き添えに:http://itpro.nikkeibp.co.jp/members/ITPro/USURA/20031023/1/?ST=vista]]
-[[ブラウザの更新に備えたアクティブコンテンツ使用Webサイトの準備:http://www.adobe.com/jp/devnet/activecontent/articles/devletter.html]]
-[[ActiveX コントロールのアクティブ化:http://msdn.microsoft.com/ja-jp/library/ms537508%28VS.85%29.aspx]]
-[[MTでの「AC_RunActiveContent.js」使い方貼り方:http://rts-banner.net/banner/2008/04/mtac_runactivecontentjs.html]]
** swfObject [#i9315a80]
* ActionScriptからJavaScriptを実行する [#u9e3f06c]
** navigateToURL [#eaafe3fe]
-使用上の注意
--[[IEのポップアップブロックのブロック:http://level0.kayac.com/2009/04/ie.php]]
** ExternalInterface.call() [#j0b9381c]
-ActionScript2でも使える
-getURL()で発生する問題が、ExternalInterface.call()を使えば起きなくなることが何度もあったので、こちらを推奨
-ExternalInterfaceのメソッド
|呼び出す側|呼び出される側|使用メソッド|h
|swf (actionscript)|js (javascript)|ExternalInterface.call()|
|js (javascript)|swf (actionscript)|ExternalInterface.addCallBack()|
-[[第35回 FlashムービーとJavaScriptを連携させてみよう:http://itpro.nikkeibp.co.jp/article/COLUMN/20070118/259015/]]
-[[外部APIを使用したFlashとJavaScriptの接続:http://www.adobe.com/jp/devnet/flash/articles/external_interface_05.html]]
-使用上の注意
--ExternalInterface.call()内の引数は、カンマ+半角スペースで区切る
ExternalInterface.call("testFunc", "hoge");
--[[ExternalInterfaceとかの落とし穴まとめ:http://0-9.sakura.ne.jp/blog/archives/2008/04/14224435.html]]
--[[ExternalInterface.call Internet explorerでnullが返ってくる件:http://quality.ekndesign.com/archives/2006/07/externalinterfa.html]]
---<object>タグに id="[externalを含む文字列(externalのみは不可)]" を付けないとダメらしい
---[[にゃあプロジェクト - ExternalInterfaceを使ってみる (2):http://www.project-nya.jp/modules/weblog/details.php?blog_id=644]] ... id="*external*" を付けないとどうなるかが見れる
--[[Adobe Flex 3.2 リファレンスガイド - ExternalInterface:http://livedocs.adobe.com/flex/3_jp/langref/flash/external/ExternalInterface.html]]
HTML ページに内に SWF ファイルを埋め込むときには、id 属性が設定されて
いることを確認し、id 属性および name 属性(object タグおよび embed タグ)
に次の文字が含まれないようにします。
. - + * / \
--[[【解決!】ExternalInterfaceにハマる:http://www.ironhearts.com/diary/archives/001474.html]]
-[[【WEB】js、flashではまったこと色々:http://www.strange-life.org/?p=280]]
--[[display:none状態ではExternalInterface不可:http://www.ironhearts.com/diary/archives/001477.html]]
--Flashからのexternalコールはローカル環境じゃ動かない
import flash.external.*;
// The name of a JavaScript function to call
var callJasFunction:String = "callJavascript";
//parameter
var msg:String = "Hello. ^^";
// The return value after calling JavaScript
var returnValue:String = ExternalInterface.call(callJasFunction, msg).toString();
return_txt.text = returnValue;
** getURL() [#g4c724a9]
JavaScriptの関数を呼び出すだけならば、これが一番簡単。
getURL("javascript:hoge('abcdefg')");
* ActionScriptからCookieを使う [#oa84a1d8]
-[[Actionscript Cookie Util:http://myflex.wordpress.com/2008/11/12/actionscript-cookie-util/]]
-[[The Source Code of ActionScript 3 Cookie class–Enables You to Read, Write, and Edit Shared Objects on the User’s Hard Disk:http://ntt.cc/2008/07/13/the-source-code-of-actionscript-3-cookie-class-enables-you-to-read-write-and-edit-shared-objects-on-the-user-hard-disk.html]]
* クロスドメイン設定 [#z74483a8]
-[[Flash Player 9および10におけるポリシーファイル関連の変更点:http://www.adobe.com/jp/devnet/flashplayer/articles/fplayer9_security.html]]
* 開発ツール [#h6295667]
** rascut [#t45fa7c3]
-[[紹介記事:http://www.moongift.jp/2007/09/actionscript%e9%96%8b%e7%99%ba%e8%80%85%e5%bf%85%e9%a0%88%e3%80%8crascut%e3%80%8d/]]
-[[ダウンロード:http://rubyforge.org/projects/hotchpotch/]]