Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

On WebServices, crossdomain.xml and debug-mode

Caele
Level 1
Level 1
I'm building a conncetion to a remote webservice, and they
don't have a crossdomain.xml file on their server (or it is placed
badly or something).



While developing my connection has worked fine, but when I go
outside of the debug mode (actually running the swf/html from any
other folder then the projects bin-debug) and the connection won't
work. It returns no error and just seems to keep going ignoring the
request. So I looked around for a bit and managed to turn on the
trace() log file which brought the problem to my attention:



Cannot load crossdomain.xml from server, halting request. (or
something similar)



This is fine now that I know of it, I can get the server
people to add crossdomain for me. The questions I'm asking though
is:

Why does it work in the bin-debug filder?

How can I capture the "Cannot load crossdomain..." trace? (my
guess is that its generated in the flash player, and not flex
library)
5 Replies
ligouane
Level 1
Level 1

Hey Caele, I've exactly the same problem. WebServices are working like charms in debug mode, but if I try to export a release version, it won't work anymore...

Benji2008
Level 1
Level 1

that's very strange indeed

do you have the same versions for Flash and the Flashdebugger ?

ligouane
Level 1
Level 1

Yes I do. I don't understand. I'm gonna try to negotiate with my JEE developper to work this out...

ligouane
Level 1
Level 1

Okay, the problem was between the chair and the keyboard... The crossdmain.xml file wasn't at the root of the server...

_Nith_
Level 10
Level 10

Understand the SandboxType of flash player before getinto this issue.

While inside the  bin-debug, your sandbox type is LocalTrusted. This will allow access to external system,

When go go for the deployment it wont works, cos you sandbox type will be different (say Network with Local)

http://livedocs.adobe.com/flex/3/html/help.html?content=05B_Security_04.html

The above URL will expain the security concept

Nith