使用 Adobe Dreamweaver 插入 Flash SWF 物件時,會自動加上 AC_RunActiveContent.js 這個檔案,並用 AC_FL_RunContent 方法載入 Flash 內容。
我們想在網頁上藉由 JavaScript 傳遞參數給 SWF,這會用到 Flash 物件的 id 值;在 IE 上都很正常,可以正確地抓到 Flash 物件,可在非 IE 瀏覽器(如 Chrome)卻只會吐 undefined。
找到了下面這篇:
http://stackoverflow.com/questions/2229358/why-cant-i-get-javascript-to-talk-to-actionscript