Welcome to WebmasterWorld Guest from 54.166.152.121

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)

5+ Year Member



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?
--------------------------------------------------------
(OR)

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

Srihari.Ch

 

Featured Threads

Hot Threads This Week

Hot Threads This Month