2010-08-20 6 views
1

Flex 응용 프로그램 (as3httpclient 포함)을 작동시키는 데 문제가 있습니다. 나는 그것을 컴파일 (compc의 -load-설정 =-swc.xml를 구축), 내 libs와 디렉토리에 as3httpclientlib-1_0_6.swc을 넣어 내 ActionScript에서as3httpclient에서 Flex 컴파일 문제가 발생했습니다.

mxmlc -compiler.include-libraries lib/as3crypto-1_3_patched.swc 
lib/as3httpclientlib-1_0_6.swc lib/corelib.swc -- App.mxml 

을 실행 I

import org.httpclient.HttpClient; 

하지만 여전히 나는 오류를

Error: Type was not found or was not a compile-time constant: HttpStatusEvent 
client.listener.onStatus = function(event:HttpStatusEvent):void { 

... 받을 수 있습니다. 어떤 아이디어? BTW

/컴파일하기 전에 "compc의 -load-설정 = 빌드 swc.xml"나는

<path-element>${flexlib}/libs/player/9/playerglobal.swc</path-element> 

<path-element>${flexlib}/libs/player/10.0/playerglobal.swc</path-element> 

에 내 플렉스 때문에 컴파일하기 위해서는 변화에 HADE 버전에는 Flash 9 용 playerglobal.swc가 없습니다. 8o

답변

0

사용자 정의 클래스가 아닌 한 HttpStatusEvent와 같은 것이 없으므로 flash.events.HTTPSt를 가져와야합니다. atusEvent를 참조하십시오.

관련 문제