A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Flash to servlets URL problem

  1. #1
    Junior Member
    Join Date
    Jul 2000
    Posts
    3
    Hi all

    I am trying to send a URL from a Flash game to a Java based backend, the idea being to use the score in the game for further functionality.

    Flash needs to incorporate some variable information into the URL, something like this:

    /servlet/ServletPassportUpdate?&mode=0&me1=serveletscore1&m e2=serveletscore2

    Where serveletscore is the variable within Flash. Anybody got any ideas on this? I have played around with various different methods, but I have not found one which will send it properly. At the moment my get URL command references a variable containing the majority of the servlet location, with the variables added on the end - but I can't seem to get it working!

    Help!

    Ade.

  2. #2
    Well, lose the first ampersand.

    /servlet/ServletPassportUpdate?mode=0&me1=serveletscore1&me 2=serveletscore2

    That should work.

    the variables should be accessable via

    request.getParameter("mode")
    request.getParameter("me1")
    etc..

    Neeld

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center