rascutでas3corelibを使ったas(mxml)ファイルをコンパイルする

Posted by kenchan 2009-03-29 21:57:00

ひさしぶりにActionScriptを使うことになったのですが、rascutでas3corelibを使ったコードのコンパイルが出来なかったので、ソリューションログを残しておきます。それぞれのバージョンは以下。
  • rascut 0.2.1
  • flex sdk 3.3.0
  • as3corelib .92.1
as3corelibの.92.1には、AIR用のユーティリティも含まれているため、普通にrascutでコンパイルしようとすると以下の用に落ちてしまいます。

rascut Example.as -c "--include-libraries=lib/as3corelib.swc" -s

...

Error: Type was not found or was not a compile-time constant: File.
これを解決するために、AIR用のconfig.xmlを読み込むようにrascutの起動オプションを追加します。

rascut Example.as -c "+configname=air --include-libraries=lib/as3corelib.swc" -s
--include-librariesのパスは、適宜環境に合わせてください。 mxmlcを呼び出している部分を、amxmlcがあればそちらを呼び出すようにするのが根本的な解決になるのではないかなと思います。
Trackbacks

Use the following link to trackback from your own site:
http://blog.shu-cream.net/trackbacks?article_id=85

  1. Free granny sex pictures. From Granny sex.
    Free granny sex pics old asian sex. Granny sex. Granny sex stories. Free granny sex movies.
  2. Viagra. From Buy viagra.
    Viagra. Viagra message board. Viagra for order lamisil viagra. Re viagra cello. Buy viagra uk.
  3. Amaryl. From Amaryl.
    Amaryl website. Amaryl side effects. Amaryl lowest dose. Amaryl glimepiride. Amaryl.
Comments

Leave a response

Comments