我想知道是否可以触发 jquery 函数来在 Flash 中的鼠标事件之后隐藏某些内容。
我希望在 Flash 中单击某些内容时运行它:
$("#googframe").click(function() {
$("#googframe").hide();
});
我知道如何监控 AS3 中的点击,但如何让它触发此操作。顺便说一句,我很基础,所以非常感谢一个好的解释。
谢谢。
最佳答案
来自此来源:http://codingrecipes.com/calling-a-javascript-function-from-actionscript-3-flash
尝试在 Actionscript 中:
import flash.external.ExternalInterface;
...
ExternalInterface.call("hideFrame");
并将隐藏函数放入 JS 中的常规函数中:
function hideFrame() {
$("#googframe").hide();
}
关于javascript - 使用flash触发jquery,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4125518/