0
请帮忙吗?看起来我的回调函数没有被调用...回来。我使用的是jQuery和Flash 8.为了访问Flash对象,我使用了jquery swfobject插件c.f. (http://jquery.thewikies.com/swfobject/examples)。如果您认为我没有正确访问SWF,请推荐我如何做到这一点的代码。谢谢!我的ActionScript的ExternalInterface回调函数没有经过。我该如何调试它?
JavaScript代码:
$("#songplayer").flash("callCueSong(" + songid + ")");
闪存代码:
import flash.external.*;
ExternalInterface.addCallback('callCueSong', null, cueSong);
stop();
pause = false;
pp_btn.hitArea = pause_hit_area;
love_btn.hitArea = love_hit_area;
_root.display_txt.backgroundColor = 0xffffff;
function cueSong(songid) {
trace('Cueing track ' + songid);
_root.sid = songid;
_root.sound_mc.songStarter('sent', false);
}
MovieClip.prototype.songStarter = function(next_direction, feedback) {
// code goes here
}