Help, please? It appears that my callback function isn't being called...back. I'm using jQuery, and Flash 8. To access the Flash object, I'm using the jquery swfobject plugin, c.f. (http://jquery.thewikies.com/swfobject/examples). If you think that I'm not accessing the SWF properly in the first place, please recommend code as to how I would do that. Thanks!
JavaScript Code:
$("#songplayer").flash("callCueSong(" + songid + ")");
Flash Code:
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
}