Flex4桌面应用程序,用html5编写,如何在javascript中调用fx-script

时间:2015-03-06 08:50:48

标签: javascript actionscript-3 flex flex4

我有一个用html + javascript编写的简单项目,如何在flex4打包它,我需要在javascript中调用flex File API,但似乎不起作用,那么如何实现呢?
enter image description here enter image description here
<script type="text/javascript"> function getSWFObject(movieName) { if(document[movieName]) { return document[movieName]; }else if(window[movieName]){ return window[movieName]; }else if(document.embeds && document.embeds[movieName]){ return document.embeds[movieName]; }else{ return document.getElementById(movieName); } } getSWFObject("test40").callback1();

0 个答案:

没有答案