A has a flash widget (a music player) and there are about 10 examples of one page in it. I need to communicate between Flash and the JavaScript on the page in which it is embedded inside. I have not done a lot with activities for a long time, but some of Gogling's other external interface seemed right, though there is a problem. I did something like this:
ExternalInterface.addClallback ("StopTrack", this, StopTrack);
However, now the stopTrack page will register for 10 different things. I just want to stop one of the 10 tracks.
I do not quite remember - but I think the callback window was not added to the object. , But the SDF object on the page - is anything like
document.getElementById ('musicFlashPlayer10'). StopTrack ();
Only the callback will set fire on that example.
This format can change between browsers - in any case, callbacks are added to each JavaScript instance that is loaded for the Flash file.
Comments
Post a Comment