Link to home
Start Free TrialLog in
Avatar of cfpdev
cfpdev

asked on

flash actionscript getURL not working when swf is not on the same domain

html page with embedded swf is on domain.com, 'test.html'

swf is on otherdomain.com, containing:

getURL('http://www.google.com');

the above action works in FF, but not any version of IE, when visiting domain.com/test.html

How to get it to work? Can this be done without recompiling the swf?
ASKER CERTIFIED SOLUTION
Avatar of chrismanncalgavin
chrismanncalgavin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cfpdev
cfpdev

ASKER

Hi,

I read the doc from adobe.

still not working in Ie..!

I'm using swfobject to embed the swf:

         var po = new SWFObject("http://www.otherdomain.com/swf/portal.swf", "portalswf", "100%", "60", "6", "#ffffff");
      po.addVariable('allowScriptAccess','always');
        po.write("portalPanel");


swfobject.js is also hosted on otherdomain.com
Avatar of cfpdev

ASKER

I've found the solution.

Don't use flash in the first place.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial