Wednesday, April 19, 2006

Flash Minutia: getURL("javascript:function();") fails on Mac Opera 8.0

Using the getUrl command to call a javascript function from a swf fails on Opera 8.0 for the Mac. For example, the following code:

getURL("javascript:alert('Hello World');");

should cause a dialog box to appear. However, in Opera 8.0 for the Mac, it does not.

The fix, as described by Alex at Linecraft Blog is to ensure that the AllowScriptAccess parameter of your embed or object statement is set to "always", or to simply omit the AllowScriptAccess parameter altogether, which has the same effect.

Was this post helpful to you? If so, please consider making a small donation to keep this blog going.