getURL and target “_self” not working?
Geek stuff / Internet
Tuesday, 22nd July, 2008
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](http://www.sitepoint.com/forums/showthread.php?t=557504).)
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](http://code.google.com/p/swfobject/).
var params={};
params.allowScriptAccess="always";
One Response
Add a comment
I receive an email with your comment as soon as you've added it.
If you've not posted a comment before, I'll have to check it before it appears online. Bloody spammers are to blame, sorry!
May 28th, 2010 at 6:41 am
You rocks! Thanks!