Hello there. I know the problem is already popular with tens of links on Google, but I tried almost every mentioned solution and nothing worked. I changed "Access playback security" to "Access network only". I insured the "allowScriptAccess" HTML value was either "always" or "sameDomain". I tried using javaScript functions instead. I insured the needed classes are imported. Nothing worked, at all. Running the file in Flash returned "null". In Chrome/Firefox, the above happened.
I decided to upload on NG instead of bothering with the HTML code, but the HTML page code I use locally is the default Adobe publisher. I edited the sameDomain value manually, though.
Here's the code of the MouseEvent function when you click the "box with the white background".
private function windowClicked(e:Event = null) {
var resultS:String = "Test";
if(ExternalInterface.available)
{
resultS = ExternalInterface.call("window.location.href.toString");
}
else
{
resultS = "External Interface unavailable";
}
if(resultS==null || resultS == "") resultS = "Nothing..";
resultS = "Nothing";
myText.htmlText = '<font color="#000000">' + "Clicked : " + N + ". Result: " + resultS + '</font>';
N++;
trace(resultS);
}
And here's the SWF. http://www.newgrounds.com/dump/item/09ec1dccb9bbb9d600a749ca 4b3ad0e6
The reason I know it's "stuck" is because this line,
myText.htmlText = '<font color="#000000">' + "Clicked : " + N + ". Result: " + resultS + '</font>';
never appears. And as I mentioned, it does in Flash, but on Chrome nor Firefox.
As always, any help is appreciated. Thanks.