<script>
var soundChannel1; // Used to stop the MP3 sound.
var button1; // Used to reference the DOM button object with the ID "button1"
function init(){
if(window.runtime){
console.err("runtime is ok")
}
var urlReq = new window.runtime.flash.net.URLRequest("test.mp3");
sampleMp3 = new window.runtime.flash.media.Sound();
sampleMp3.load(urlReq);
sampleMp3.addEventListener(air.Event.COMPLETE, loaded);
}
</script>
一段javascripy想使用AIR提供flash接口播放文件,但捕获到了
Uncaught TypeError: Cannot read property 'flash' of undefined
本人菜鸟新手。实在是费解,帮忙看看 是怎么回事
--
修改:larbin FROM 220.231.27.*
FROM 220.231.27.*