Flex - 本地化和资源模块 - 运行时错误

我创建了一个包含许多模块的应用程序,并使用Parsley框架。 Ant用于构建应用程序。 最近我想到使用Resource Bundles并通过在src下创建locale / en_US文件夹在系统中实现它。我添加了一个portal.properties文件,其中定义了所有字符串。 在我的模块中,我添加了元数据
<fx:Metadata>
    [ResourceBundle("portal")]
</fx:Metadata>
在ant build文件中,我在mxmlc中添加了以下行。
<locale>@{locale}</locale>
<source-path path-element="${myapp.flex.app.locale}/{locale}"/>
<include-resource-bundles>portal</include-resource-bundles>
构建工作正常,当我部署应用程序并在浏览器中打开它时,我受到了Flash播放器抛出的许多错误的欢迎。 但如果我解雇这些消息,它的工作正常。我的字符串被替换为属性文件中的值,但是如何停止抛出运行时错误? 我得到以下错误。
Error: Unable to load resource module from portal
at MethodInfo-637()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at ModuleInfoProxy/moduleEventHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at ModuleInfoProxy/moduleEventHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at ModuleInfo/errorHandler()
任何帮助将不胜感激。     
已邀请:
你是否在你的蚂蚁中加入了以下内容
<keep-as3-metadata>ResourceBundle</keep-as3-metadata>
?     

要回复问题请先登录注册