我有一个用html + javascript编写的简单项目,如何在flex4
打包它,我需要在javascript中调用flex File API
,但似乎不起作用,那么如何实现呢?
<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();