Apache flex as3httpclient的Flex编译问题
我很难让Flex应用程序(使用as3httpclient)正常工作。 我编译了它(compc-load config=build swc.xml),将as3httpclientlib-1_0_6.swc放在我的libs目录中,然后运行Apache flex as3httpclient的Flex编译问题,apache-flex,actionscript-3,compiler-construction,Apache Flex,Actionscript 3,Compiler Construction,我很难让Flex应用程序(使用as3httpclient)正常工作。 我编译了它(compc-load config=build swc.xml),将as3httpclientlib-1_0_6.swc放在我的libs目录中,然后运行 mxmlc -compiler.include-libraries lib/as3crypto-1_3_patched.swc lib/as3httpclientlib-1_0_6.swc lib/corelib.swc -- App.mxml 在我的动作脚本
mxmlc -compiler.include-libraries lib/as3crypto-1_3_patched.swc
lib/as3httpclientlib-1_0_6.swc lib/corelib.swc -- App.mxml
在我的动作脚本中,我
import org.httpclient.HttpClient;
但我还是收到了错误
Error: Type was not found or was not a compile-time constant: HttpStatusEvent
client.listener.onStatus = function(event:HttpStatusEvent):void {
。。。
. 有什么想法吗
顺便说一句,在编译“compc-load config=build swc.xml”之前
改变
${flexlib}/libs/player/9/playerglobal.swc
到
${flexlib}/libs/player/10.0/playerglobal.swc
因为我的flex版本没有用于Flash 9的playerglobal.swc,所以无法对其进行编译。8o除非这是一个自定义的类,否则不存在HttpStatusEvent,您需要导入flash.events.HttpStatusEvent并引用它
<path-element>${flexlib}/libs/player/9/playerglobal.swc</path-element>
<path-element>${flexlib}/libs/player/10.0/playerglobal.swc</path-element>