Page 1 of 1

Help! cannot call swf from other domain in hotspot?

Posted: Tue Sep 29, 2009 4:41 am
by vrdrive
hi All:
i have some problem calling a swf from another domain.

1. let say my domain is abc.com
2. i created a new flash output call flash1
3. i added 2 hotspots in flash1.

4. hotspot 1 was calling another swf file in my own domain (abc.com)
Image

5. hotspot 2 is calling another swf file in a foreign domain (cde.com)
Image

6. after the flash1 file was generated. i uploaded it to my web hosting server.

7. when i clicked the hotspot 1, it will bring me to another flash file
but when i clicked the htospot 2, nothing happened??

Anyone knows why? :(

Re: Help! cannot call swf from other domain in hotspot?

Posted: Tue Sep 29, 2009 12:04 pm
by k.ary.n
Hi vrdrive,

A possibility is that this has to do with the Flash security settings. Try selecting, Allow network access, in the Flash parameters.

Re: Help! cannot call swf from other domain in hotspot?

Posted: Tue Sep 29, 2009 12:34 pm
by vrdrive
hi:
the allow access has been enabled.

i never tot there was such control in the flash file ...

i uploaded the flash file to the hosting server for cde.com. the second hotspot which pointing to the flash file in cde.com worked strange away.

so in conclusion, a pano can only use the flash file in the same domain. not the foreign domain otherwise it won't work.
is there any workaround?

thanks
vrdrive

Re: Help! cannot call swf from other domain in hotspot?

Posted: Thu Oct 01, 2009 4:33 am
by Sebastian
Hi there

This is "Cross-domain policy", strictly Flash's security feature, to prevent people from trafficking data across domains. Whether it's a variables ( xml, txt etc...) or SWF files, some people would just find the path to your file on the server, and load it within their website, claiming it as their own. Hence the changes in Flash
player has been made few years ago.

There is way to work that out, by creating policy files and placing them across domains on root of the server, for flash player to verify it and allow the cross domain load. Check the extended technote on Adobe's website which explain all A-Z

http://kb2.adobe.com/cps/142/tn_14213.html

best regards
Sebastian