我一直在用Adobe CS4开发一个swf。
我的问题如下:
<a href="#" onclick="jsonp_func();return false" >click</a>
var jsonp_func = function(){
var script = document.createElement('script');
script.type = "text/javascript";
script.src = "http://example.com/api?callback=jsonp_callback";
document.body.appendChild(script);
};
function jsonp_callback(data){
//I wanna take the data to swf
}如何将数据发送到swf?
发布于 2010-11-09 14:04:17
您可以使用SetVariable或ExternalInterface
演示:http://oddhammer.com/tutorials/firefox_setvariable/
https://stackoverflow.com/questions/4130882
复制相似问题