1) As I just said in a previous post (three minutes ago), loadVaraibles take
for its second argument the name of a clip that gets notified when the data
is fully load. There is no way to get notified without a clip, but you can
use an empty clip (with no graphics). You have to put the clip on the scene
an it will be displayed as a tiny circle.

2) Things do have change a lot.

3) Don't forget the problem with GET. (Although it might have been corrected
since I submitted it to Macromedia support team. At that time, their answer
was that communication with servlets was not supported !!!)

Pierre-Yves

-----Message d'origine-----
De : A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]De la part de
Robert Koberg
Envoy� : jeudi 26 avril 2001 17:40
� : [EMAIL PROTECTED]
Objet : Re: Servlet communication with embedded applications (FLASH etc)


are you waiting until you have the data returned before advancing in the
movie? You need to loop on a frame until you get the return result before
moving to another frame.

(note: I haven't done anything with Flash since v.3... things might have
changed???)


----- Original Message -----
From: "Frauke Nonnenmacher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 26, 2001 8:15 AM
Subject: Re: Servlet communication with embedded applications (FLASH etc)


> > 2) You can use loadVariables in ActionScript to load data
> > from a URL in the
> > domain the movie came from. This URL might be a servlet. It
> > might send data
> > in url encoded form. This servlet (the one that sends the
> > data) must use
> > content type "application-x/www-urlformencoded".
>
> Thanks, that's just what I need. Just one more question: After setting the
> type to "application-x/www-urlformencoded", how do I write the data? I
tried
> to get the PrintWriter from the response and just println to that, which
> didn't work (Well, I didn't have high hopes that it would). Here's the
code
> snippet:
>
>     PrintWriter out = response.getWriter();
>     out.println("Surname=Smith");
>
> I'm just trying to send a variable called Surname with the value Smith
back
> to Flash, and I don't know if it's the method or the syntax that's
wrong...
> What I'm getting is a dialogue box asking me if I want to open the file
> 'LoginServlet' or save it to disk.
>
> I tried searching the archives of the list, but the search engine seem to
be
> down...
>
> Thanks for your help,
>
> Frauke
>
> Frauke Nonnenmacher
> Fat Cat Cartoons
> www.fatcatoons.com <http://www.fatcatoons.com>
> ___________________________________________________
> The statements and opinions expressed here are my own
> and do not necessarily represent those of the VEGA Group.
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to