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

Avatar

Avatar
Level 1
Caele
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
Caele
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
Caele
Level 1

22-01-2009

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)

Replies

Avatar

Avatar
Level 1
ligouane
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
ligouane
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
ligouane
Level 1

11-06-2009

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...

Avatar

Avatar
Level 1
Benji2008
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
Benji2008
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
Benji2008
Level 1

12-06-2009

that's very strange indeed

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

Avatar

Avatar
Level 1
ligouane
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
ligouane
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
ligouane
Level 1

15-06-2009

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

Avatar

Avatar
Level 1
ligouane
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
ligouane
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
ligouane
Level 1

16-07-2009

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

Avatar

Avatar
Validate 25
Level 7
_Nith_
Level 7

Likes

121 likes

Total Posts

1,333 posts

Correct Reply

91 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile

Avatar
Validate 25
Level 7
_Nith_
Level 7

Likes

121 likes

Total Posts

1,333 posts

Correct Reply

91 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Boost 50
Boost 5
View profile
_Nith_
Level 7

02-08-2009

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