A have a flash widget (a music player) and there are about 10 instances of it on one page. I need to communicate between the flash and the javascript of the page it's embedded in. I haven't done much with actionscript for a long time, but some googling led me here, and to ExternalInterface. It seemed perfect, however there is one problem. I did something like this:
ExternalInterface.addCallback("stopTrack", this, stopTrack);
However, now stopTrack will be registered to 10 different things on the page. I want to be able to stop just one of the 10 tracks.