Expand my Community achievements bar.

Basic: trouble with HTTPService

Avatar

Former Community Member
hello everybody my trouble is that i can read the xml file
from my local machine:



problem:

[RPC Fault faultString="Error #2148: El archivo SWF
file:///C:/Documents and Settings/Kyra/Mis
documentos/flexTrainig/Services/bin/theService.swf ....



i know that this the problem happend when the url is wrong,
but my url is fine, only can access to xml file form a external
direcction, for example: http:adobe/examples/main.xml [ is a
example ] and the curius is that i have been tested the same script
in other machine an work good.



so, what is the problem???, the installation is fine the code
is fine, so???



thank you for ypur help.
3 Replies

Avatar

Level 1
It probably has to do with your Compiler settings:

- In the Navigator panel control-click and select Properties

- Choose the Flex Compiler properties

- The additional compiler arguments reads: "-locale en_US"

- Change it to: "-locale en_US -use-network=false"



This worked for me.

Avatar

Level 3
You can't access the file system by default. Flash Player
forces SWFs to make a decision whether they're to access the file
system or the network, but not both. Further more, if you try to
access a location that is not part of the domain from which the SWF
was loaded, you need a crossdomain.xml policy file.



To make a SWF access the file system (and only the file
system), you need to specify the mxmlc switch -useNetwork=false

Avatar

Former Community Member
thank´s your, now can work good, and happy.

thanks