Help! cannot call swf from other domain in hotspot?

Q&A about the latest versions
Post Reply
vrdrive
Posts: 20
Joined: Sat Jun 14, 2008 5:31 pm

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? :(
User avatar
k.ary.n
Gnome
Posts: 615
Joined: Wed Aug 15, 2007 1:02 pm

Hi vrdrive,

A possibility is that this has to do with the Flash security settings. Try selecting, Allow network access, in the Flash parameters.
vrdrive
Posts: 20
Joined: Sat Jun 14, 2008 5:31 pm

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
Sebastian
Posts: 209
Joined: Sun Jul 13, 2008 9:08 am
Contact:

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
Post Reply