jQuery的触发与闪光 [英] Trigger jquery with flash

查看:120
本文介绍了jQuery的触发与闪光的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有可能引发一个jQuery函数来隐藏鼠标事件后闪光的东西。

I would like to know if it is possible to trigger a jquery function to hide something after a Mouse event in flash.

我想要的东西时,单击闪光灯它来运行:

I want this to run when something is clicked in flash:

  $("#googframe").click(function() {
    $("#googframe").hide();
  });

我知道如何监控AS3的点击,但我如何得到它来触发此。顺便说一句我是非常基本的这么一个很好的解释是多少AP preciated。

i know how to monitor a click in AS3 but how do i get it to trigger this. By the way i am very basic so a good explanation is much appreciated.

感谢。

推荐答案

从这个来源:的http://codingrecipes.com/calling-a-javascript-function-from-actionscript-3-flash

尝试ActionScript代码:

try in Actionscript:

import flash.external.ExternalInterface;

...

ExternalInterface.call("hideFrame");

和把你的隐藏功能的普通函数在JS:

and put your hide function in a regular function in JS:

function hideFrame() {
   $("#googframe").hide();
}

这篇关于jQuery的触发与闪光的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆