PDA

View Full Version : Getting getURL to work cross-subdomains


blakekr
01-24-2009, 04:46 AM
I've had to move my flash movies to outside storage to reduce my monthly bandwidth use. I use a CNAME so I can refer to that external storage as a subdomain.

So, I have pages on www . mysite . com (not the real url)

They contain embeds to my swf files on subdomain . mysite. com

My swf files then contain a simple getURL button script that point back to www . mysite. com

I can no longer get the getURLs to work as a result of this config.

I have tried:

1) placing cross domain policy files on both servers ... no joy

2) adding allowScriptAccess='always' allowNetworking='all' to the object code, no joy

3) editing the actionscripted button with one additional allowDomain line so it says:

on (release) {
System.security.allowDomain("*");
getURL("http://www.mysite.com/shopping/prod/myprod.htm","_self");
}

... nothin'

I also tried putting the System.security.allowDomain statement in my main timeline, not on the onRelease command, but that didn't work either.

With #3 I am unsure whether I did it "right" or not, I haven't been able to find specific instructions for how to enter the allowDomain scripting for this case.

If anyone has some tips i can try here I would be most grateful.

RefreshGFX
01-24-2009, 06:38 PM
How long is your actual URL? There is a maximum character limit on the URL string.