homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

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

5+ Year Member

Msg#: 3974813 posted 7:21 am on Aug 19, 2009 (gmt 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...



Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved