<html>
<link rel="stylesheet" type="text/css" href="css/SampleStyles.css">
<script>
var soundChannel1; // Used to stop the MP3 sound.
var button1; // Used to reference the DOM button object with the ID "button1"
document.write(window.runtime)
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>
<body onload="init()">
<flash><>
</body>
</html>
这个是整个的html,就是打算用window.runtime.flash播放个文件,貌似window结构里没有runtime
【 在 dhcn 的大作中提到: 】
: 好像是runtime没有flash属性,你把runtime对象结构log出来看看。
--
FROM 220.231.27.*