Flex 2,3,AS

FLEX, SWFLoader Flash(AS3.0) 통신하기 MovieClip

ddakker 2008. 8. 14. 10:43
// Flash 가 AS 3.0 기반으로 했을 경우 가능

public function initApp() : void {
	swfContent.addEventListener("init", swfLoaderInithandler);
	swfContent.load("/flashswf");
}

public function swfLoaderInithandler(event:Event) : void {
	var flashObj : Object = event.currentTarget.content;
        
        // Flash public 함수 호출
       flashObj .test();
}