0
나는이 iframe에 HTML이있는 iframe과 함께 flex 응용 프로그램을 가지고 있습니다. 어떻게 html의 js에서 flex 메서드를 호출 할 수 있습니까? 의 xmlns : mapFrame = "http://code.google.com/p/flex-iframe/"flexiframe의 html은 부모 flexApp 메서드를 호출합니다
public function test(str:String):void{
trace('params from js'+str);
}
<mapFrame:IFrame id="frm" source="mapHtml/overlay.html" height="90%" width="100%" />
점을 검토하시기 바랍니다 자바 스크립트 호출의 액션 스크립트 – Cara
인이 https://github.com/flex-users/flex-iframe/wiki/FAQ 플렉스와 자바 스크립트 간의 –
통신 즉, 페이지에서 Flex 앱을 다시 호출하고 Flex 앱에서 javascript를 호출합니다. 이것을 구현 한 방식은 FABridge를 사용하는 것이 었습니다. IFrameBridgeTest 데모를 참조하십시오. 그래서 가능하지만 단순하지 않습니다. –