MacPortsを削除
Leopardにしてから、いろいろ面倒くさいことになっていたので、思い切って削除。
削除されて困るようなものはなさそうなので、一応インストールしていたportsだけ記録。
$ sudo port list installed | sort > ~/Desktop/installed.ports.txt
そしてばっさり削除。
sudo rm -rf /opt/local /Applications/MacPorts /Applications/DarwinPorts \ /Library/Tcl/darwinports1.0 /Library/LaunchDaemons/org.macports.* \ /Library/StartupItems/DarwinPortsStartup
SecurityError: Error #2060: セキュリティサンドボックス侵害
↓このエラーに小1時間ぐらいハマった…
SecurityError: Error #2060: セキュリティサンドボックス侵害 ExternalInterface 呼び出し元 file:///.../.../actionscript3/FoundationAS3Animation/ch02/EventDemo.swf は file:///.../.../actionscript3/FoundationAS3Animation/ch02/EventDemo.swf にアクセスできません。 at flash.external::ExternalInterface$/flash.external:ExternalInterface::_initJS() at flash.external::ExternalInterface$/call() at org.osflash.thunderbolt::Logger$/trace() at org.osflash.thunderbolt::Logger$/info() at EventDemo/::onMouseDown()
調べてみたところ、ここ(SecurityError: Error #2060)の情報により解決。どうやらfile://がいけなかったようで、localhost上のapacheにおいてhttp://localhost/EventDemo.swfで試したところうまく動いた。
Flash ThunderBolt
FireFoxのFireBugにデバッグ情報を出力してくれるデバッガーツール。
ダウンロードして展開する。
$ mkdir -p ~/actionscript3/classes $ cd ~/tmp $ wget http://flash-thunderbolt.googlecode.com/files/ThunderBoltAS3_v1.0.zip $ unzip http://flash-thunderbolt.googlecode.com/files/ThunderBoltAS3_v1.0.zip $ cp lib/ThunderBoltAS3_Flex.swc ~/actionscript3/classes
コンパイル時にロードするクラスファイルとして追加
$ vi ~/flex2sdk/frameworks/flex-config.xml ...libs locale/{locale} /.../.../actionscript3/classes/ThunderBoltAS3_Flex.swc ...
Hypertable
http://www.hypertable.org/index.html
とりあえずメモ。後で会社で使ってみることに。
TextMateでactionscript3環境
AS3環境をつくったを参考に。
$ mkdir -p ~/Library/Application\ Support/TextMate/Bundles $ cd ~/Library/Application\ Support/TextMate/Bundles $ export LC_CTYPE=en_US.UTF-8 $ svn co http://macromates.com/svn/Bundles/trunk/Review/Bundles/Flex.tmbundle $ svn co http://macromates.com/svn/Bundles/trunk/Review/Bundles/ActionScript\ 3.tmbundle $ osascript -e 'tell app "TextMate" to reload bundles'