以下のアクションスクリプトファイルには、mx.controls.Labelをインポートできないというエラーがあります。これは、Linuxのコマンドラインからコンパイルしており、flexがインストールされている環境変数パスが設定されています。これを解決する方法
package {
import mx.controls.Label;
public class Test
{
public function Test()
{
Alert.show("Test");
}
}
}
編集:
[root@localhost tmp]# mxmlc Test.as
Loading configuration file /opt/flex/frameworks/flex-config.xml
/tmp/Test.as: Warning: This compilation unit did not have a factoryClass specified in Frame metadata to load the configured runtime shared libraries. To compile without runtime shared libraries either set the -static-link-runtime-shared-libraries option to true or remove the -runtime-shared-libraries option.
/tmp/Test.swf (466 bytes)