我无法使用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
在我的动作中我
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”之前,我很高兴 改变 <path-element>${flexlib}/libs/player/9/playerglobal.swc</path-element>
到
<path-element>${flexlib}/libs/player/10.0/playerglobal.swc</path-element>
为了编译它,因为我的flex版本没有适用于Flash 9的playerglobal.swc。8o
答案 0 :(得分:0)
除非这是一个自定义类,否则没有HttpStatusEvent,你需要导入flash.events.HTTPStatusEvent并将其引用。