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