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
}