Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Problem with passing url's for URLRequest() class in Flash

7:21 am on Aug 19, 2009 (gmt 0)

New User

5+ Year Member

joined:Aug 19, 2009
posts: 2
votes: 0

Hi all,

I am new to Flash. I am calling java servlets from flash using the following code[below is a sample Flash code for calling a java servlet in Flash which I am using]:

String url_String="http://localhost:8080/servlet/getViews";
var req:URLRequest = new URLRequest(url_String);

In this case, the servlet is called/working fine in my system where the flash application is deployed & not working when I execute the application in different system using the "IPAddress" of my system.

So, What changes I need to make in above Flash code in order to call the same servlet successfully from my system and as well as other systems?

Is there any need to pass the servlet-url's relative instead of absolute?
If so,
Can we pass relative-path of url's to URLRequest() as parameter? &&
Can anyone explain me with an example?

Please, can anyone help me by giving solution to my problem... [Or else to either of my queries or both]
Thanks in advance...
I am waiting for your replies...