external interface
Who can em-bed now..who can it, who can it
Tuesday, June 9th, 2009 | Keith Morgan's Blog, teh internets | No Comments
Embedded players are in season again. Everyone wants to save their bandwidth and suck up yours. But who’s got your player? Well, I had this problem at GameVee and lemme be the first to formally tell you….the Flash runtime is stupid (on purpose though, its been crippled).
Anyway, how do you know what domain your player is being viewed at? Simple huh? just get the old Application.application.url, huh? Well…correct. This will show you where the swf lives, but not where it is….so, looks like you sux.
..so what the !@#$ is that supposed to mean?
when you call the play function in your player just add a line:
var testString:String = ExternalInterface.call(“function() { return document.location.href; }”);
then use a sendToURL() to post the data.
Honestly, I keep forgetting this stuff, so maybe you don’t sux that much.
Find
Currently
There are no events to show at this time.