I’m not a fan of ExternalInterface, but it is good to have in your pocket.
I have another post for AS2 External Interface [ here ]…
<script language="JavaScript">
var jsReady = true;
function thisMovie(movieName) {
if (navigator.appName.indexOf("Microsoft") != -1) {
return window[movieName];
} else {
return document[movieName];
}
}
//-- is EXT INT ready?
function EXactive()
{
return jsReady;
}
//-- fetch id
function GetID()
{
return thisMovie("ExternalInterfaceExample");
}
</script>
I will clean this up and re-post
// check for value from JS
function GetID():String
{
var id:String;
if( ExternalInterface.call("EXactive") )
{
id = ExternalInterface.call("GetID");
} else {
id = "GetID not found";
}
id += String( " " + ExternalInterface.call("EXactive") );
return id;
}

[...] have another post for AS3 External Interface [ here ]… but AS2 is the hot shit right now so… I have a blank “tracking button” [...]