1. 외부 XML 파일 읽기 [Bottom] [Top]
- Flex 소스 코드
[Bindable] private var webSvcUrl: String; //------------------------------------------------------------------------------ private function ReadWebSvcInfo(): void { var request: URLRequest = new URLRequest( "WebSvcInfo.xml" ); var loader: URLLoader = new URLLoader(); loader.addEventListener( Event.COMPLETE, ReadWebSvcInfo_CompleteHandler ); loader.addEventListener( IOErrorEvent.IO_ERROR, ReadWebSvcInfo_IoErrorHandler ); try { loader.load( request ); } catch( error:Error ) { Alert.show( "An Error has occurred.", "ERROR" ); } } //------------------------------------------------------------------------------ private function ReadWebSvcInfo_CompleteHandler( event: Event ): void { var dataXML: XML = XML( event.target.data ); webSvcUrl = dataXML.WebSvcURL; } private function ReadWebSvcInfo_IoErrorHandler( event: IOErrorEvent ): void { Alert.show( event.text, event.type ); } 예제 - WebSvcInfo.xml
<?xml version="1.0" encoding="UTF-8"?> <WebSvcInfo> <WebSvcURL>http://localhost/Test.asp</WebSvcURL> </WebSvcInfo>
2. WebService 처리 [Bottom] [Top]
코드 정리 중...
3. Popup 창 생성하기 [Bottom] [Top]
코드 정리 중...
4. Timer 처리 [Bottom] [Top]
코드 정리 중...
5. Chart 툴팁 처리 [Bottom] [Top]
코드 정리 중...
6. DataGrid [Bottom] [Top]
코드 정리 중...
7. Chart [Bottom] [Top]
코드 정리 중...
