Hi Kenlie.
 
You are almost there!
 
You have three choices:
    1) Add a crossdomain.xml file to the server.
    2) Request the HTML file from a web server on the same domain as your server (in this case, localhost).
    3) Create a proxy.
 
You can find documentation on this here:

http://labs.macromedia.com/wiki/index.php/Flex:Accessing_Data

I understand your question about things getting harder, but I'm afraid there's nothing we can do about it at this point.

The security rules are no different than in Flex 1.0 or Flex 1.5. The security rules need to be there to prevent malicious websites from creating Flex applications that do bad things, such as collecting private information.

The reason you never noticed the security rules in Flex 1.0/1.5 is that the server automatically creates proxies for you. The reason we can't do that in Flex Builder 2.0 is that proxies *must* run on the server, and Flex Builder 2.0 doesn't have a server component.

Later, when Flex Enterprise Services 2.0 is available, you will be able to do things the way that you were used to doing them in Flex 1.0/1.5.

-Sho



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of knly browne
Sent: Tuesday, October 25, 2005 11:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2.0 web-service driving me up the wall

Good day again..

So..i got a copy of the server from the server engineer and started it up on my machine.. Created a web-service object in my project and compiled my app as it loads up i give me a security violation telling my that i can't acces the URL...
now the port for the server is http://localhost:8099/soap thats the address to the server on my machine.. so i know that you have to alow the security to access the URL, so in my flex application i create a method and call it on the initialize method for the Application:
I tried Security.allowDomain('http://localhost:8099/soap') doesn't work
I tried Security.allowDomain('*'); still doesn't work..

So maybe am doing something wrong if that is the case could someone be kind enough to point me in the right direction

First of all my application isn't being delivered by a server such as jboss or Apache, i just have it on my desktop and i launch it by double clicking on the htm file.. cause as we all know its standalone swfs.

Even if i allowed the domains nothing changed.. i need some answers.. examples something cause I personally don't know why and when using web-services became so difficult..

Thanks in Advance

--
Kenlie Browne
Software Developer

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to