javascript代码如下: function callFromFlash() { var a=thisMovie("test").hello(); alert(a); } function thisMovie(movieName) { if (navigator.appName.indexOf("Microsoft") != -1) { return window[movieName] } else { return document[movieName] } } //注意,不能使用document.getElementById此类函数取得网页中的flash对象,只能使用thisMovie函数中的代码 国外看到的另一种方法: You can't call a function, but you can change/set a variable and use the watch() method to execute the code whenever the value is changed. ActionScript Code: function changeType(prop, oldval, newval) { //do your stuff return newval; } var strType = ""; this.watch("strType", changeType);