开发者

Any solid examples of jQuery-ActionScript communication?

开发者_StackOverflow社区

that involves event listeners.


This is a nice integration point:

jQuery SWFObject Plugin

Use the id you embed the swf with to get the object's reference in the dom (via jquery). Once you have the reference, you can call any method you have exposed to js on the object.

Expose methods to js in flash like so:

ExternalInterface.addCallback("methodName", method);

Calling js methods from flash is simpler:

ExternalInterface.call("jsMethodName") ;
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜