I have a little problem here with a GEtURL action.
I’m doing some contents inf Flash for a company, and they will be accesed through their intranet. In one of the SWF’s i’m using the GetURL action to open an external page (i.e. getURL(“http://www.kirupa.com”, “_blank”).
The problem that I have is that link doesn’t work on IE, but if I open the SWF on Firefox (or test it through the Flash Player) it works fine. I don’t understand why. What can I do on this case? (Please don’t tell me to install there Firefox, they only IE so that wouldn´t help me at alll…)
But wait … this doesn’t make any sense! What’s baffling and infuriating is how something that worked fine just a minute ago (clicking on html links in a text field) no longer works because of these mysterious security settings!?!
I read the security document, but it really doesn’t make any sense to me.
What’s the solution? Why would a regular link that opens a browser window suddenly break security settings?
What have you guys done to solve this?
You can always click the settings tab when the warning message pops up to add your local file to the global url thingy and allow your swf to connect from then on. I think I’ve got a couple dozen files on that list now.
OK, so I understand that local swfs can’t do various things, but that remote swfs should still be able to. So this question is no longer security related. But what I don’t understand is this:
I had html links in a text field and everything worked exactly as I wanted it–they opened in a new window, no fuss. Then I went to make an asfunction handler, so I replaced the html link with the asfunction call, and put a getURL call in the new handler:
function gotoURL(url){
getURL(url, "_blank");
a few other things
}
Now if I run this locally, I get both a security message and a popup blocker. When I run it remotely, the link just doesn’t do anything. If I remove the target window, it loads in the same window obviously. What gives? How are we supposed to get around this? Before I added the function call the links worked exactly how I wanted them, but now even if I change it back exactly the way it was they no longer work.
The question may simply be: how do you get links to open in new windows?