So, I installed the new Flashvar, which was a unique identifier for the player. Like this:
var flashvars = {};
flashvars.src = '<?= $this->get('link') ?>';
flashvars.playerID = '<?= "flash-".uniqid(); ?>';
var params = {};
params.allowscriptaccess = 'always';
var attributes = {};
attributes.id = '<?= $this->get('attributeId') ?>';
swfobject.embedSWF('<?= $this->get('pluginUrl') ?>/flash/wiredrivePlayer.swf', 'no-flash-content', '100%', '100%', '10.0.0', 'expressInstall.swf', flashvars, params,attributes);
Flashvar actionscript ( Model.as):
private var _playerID:String;
_playerID = flashvars.playerID;
public function get playerID():String {
return _playerID;
}
ExternalInterface.call("stoppedPlaying", _playerID);
Javascript , :
function stoppedPlaying(playerID)
{
var playerID = '#' + playerID
jQuery(playerID).css('background','red');
}
arg playerID (this) jQuery. !