2
我刚刚开始使用Linux上的Adobe Flex,并且无法让hello world示例正常工作。Hello World以“错误:无法解析<s:Application>到组件实现”失败为例
我application.mxml文件只是
<?xml version="1.0"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark">
<s:layout>
<s:VerticalLayout/>
</s:layout>
<s:Panel title="My Application">
<s:Label text="Hello World" fontWeight="bold" fontSize="24"/>
</s:Panel>
</s:Application>
我跟着this guide to install Flex on linux(11.2 openSUSE当中),解压到/ opt /柔性。
可是我编译时出现此错误:
/opt/flex> mxmlc -show-actionscript-warnings=true --strict=true /path/to/application.mxml
Loading configuration file /opt/flex/frameworks/flex-config.xml
/path/to/application.mxml(5): Error: Could not resolve <s:Application> to a component implementation.
xmlns:s="library://ns.adobe.com/flex/spark">
我已经通过了/opt/flex/frameworks/flex-config.xml并添加${flexlib}
所有路径引用的后建议。但仍然没有运气。
任何想法?谢谢。
Doh!你是对的。非常感谢! – drpepper 2010-03-22 15:11:43