getURL and target “_self” not working?

If you’re a Flash or web developer, then you may come across a security-invoked problem whereby links inside your Flash movie don’t react, when you try and open a link within the current browser window. Crazy, I know, but bear with me. I have no idea why this should be so – I’m sure someone knows – but the solution is simple. (I found it after a few minutes searching online, at sitepoint.)

Set allowScriptAccess="always" in your call to the Flash file, either directly in the OBJECT or EMBED tag, or as part of the params associative array if you’re using SWFObject.

var params={};
params.allowScriptAccess="always";

One response to “getURL and target “_self” not working?”

  1. Felipe Leân avatar

    You rocks! Thanks!

Leave a Reply

Your email address will not be published. Required fields are marked *