« 備忘録:カレー鍋レシピ | メイン | MovableTypeをバージョンアップ »

2009年3月 8日

CentOSでFlashを作るための仕組み

やったこと:
・Java Runtime Environment (JRE) をインストールする
・Flex3 SDKをインストールする

JREのダウンロードとインストールはこちらを参照。
Flex3 SDKについてはこちらの記事を参考に、アドビのページからFlex3.3 SDKをダウンロードしてインストール。置いておくディレクトリは /usr/lib/flex3 としておいた。
なお、このとおりにやると /usr/lib/flex3 より下はパーミッションがrootのみになってしまうので、ディレクトリは755、バイナリも755、その他は644でchmodしておいた。この辺、すんごい大雑把。

で、環境が整ったところでこちらを参考にテスト用のファイルを作ってコンパイルさせてみる。
Java上で動作しているせいか、やっぱりコンパイルには少し時間がかかる。それでも、無事にコンパイルが完了したのでよかったよかった。
ちなみに、textField.textの値に日本語(UTF-8)を入れてみたら、ちゃんと表示された。どうやら言語パッケージのようなものは必要なくなったらしい。

さて、これで任意の文をFlashで表示させる手段ができた。
めざすは……縦書き表示

追記:
frameworks/flex-config.xml の<target-player>タグの要素がデフォルトだと9.0.124になっている。
これは要するに、コンパイルするときにターゲットとするflash playerをバージョン9に定めているということ。
このままだと、Flash player 10で新たに使えるようになったパッケージの存在を無視してコンパイルしてしまうので、例えば(縦書きで必要な)flash.text.engineのような新機能パッケージを使ったActionScriptをコンパイルすることができず、エラーになってしまう。

これを回避するには、の要素を10(現在のバージョンだと10.0.22)にすればよい。

<target-player>9.0.124</target-player>
↑これを、

<target-player>10.0.22≤/target-player>
↑と変更する。

いやぁ、これに気づくまで、かなりハマりましたわ……(汗)

投稿者 r-top : 2009年3月 8日 20:40

トラックバック

このエントリーのトラックバックURL:
http://polaire.org/r-top_mt/mt-tb_1.cgi/1079

コメント

Awesome post . Many thanks for, commenting within this blog mate. I shall email you soon! I didnt realise that.

投稿者 reportage streaming : 2011年10月29日 23:52

After I read this story one by one,I can’t calm down,as it brings me so much shock that I can’t believe there exsits such a moved and excellent post in the world!

投稿者 2011 new style ugg : 2011年12月10日 06:28

のめしこきの日々: CentOSでFlashを作るための仕組み I was recommended this website by my cousin. I am not sure whether this post is written by him as nobody else know such detailed about my difficulty. You're incredible! Thanks! your article about のめしこきの日々: CentOSでFlashを作るための仕組み Best Regards Rolf Shane

投稿者 liberty reserve : 2012年1月28日 03:54

Fantastic goods from you, man. のめしこきの日々: CentOSでFlashを作るための仕組み I have understand your stuff previous to and you are just too great. I really like what you have acquired here, really like what you are stating and the way in which you say it. You make it entertaining and you still care for to keep it wise. I can not wait to read far more from you. This is really a tremendous のめしこきの日々: CentOSでFlashを作るための仕組み informations.

投稿者 hyip investment : 2012年2月 3日 00:39

Fantastic goods from you, man. のめしこきの日々: CentOSでFlashを作るための仕組み I have understand your stuff previous to and you're just too wonderful. I really like what you have acquired here, certainly like what you're stating and the way in which you say it. You make it enjoyable and you still care for to keep it wise. I can not wait to read much more from you. This is really a tremendous のめしこきの日々: CentOSでFlashを作るための仕組み informations.

投稿者 jelly defense apk download : 2012年2月 3日 13:47

コメントする