Solved

Combining Servlet with Flash

Posted on 2002-04-08
4
196 Views
Last Modified: 2010-04-01
    How can I use Servlet and Flash together? Servlet for database records, and the Flash for interface.
     My database saves the records on logoff, and send them to Flash for each login. Flash will get the variables and will show the needed screen output (layers or objects or ?) according to the variables. It will be possible to change the variables with buttons in Flash, but the records will be saved on logoff.
     I can explain more clearly with an example. I have an integer variable 'x' which is saved in my database. I want Flash to do these: 1- When I login, Flash will connect to the database and get the value of 'x'. If x=0, I want to see a square on my screen. 2- Flash will include a button on screen, when I click it, 'x' value will change to 1 in database. And when x=1, a triange shape will appear on screen instead of a square shape. 3- On logoff, 'x's last value will be saved to the database for getting back on next login.
     I repeat my question, simply: How can I use Servlet and Flash together? Thanks.
0
Comment
Question by:serdarulutas
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 19

Expert Comment

by:cheekycj
ID: 6927889
can't you use the servlet to query the DB and write out the HTML using the value it retrieved for flash to use?

CJ
0
 

Accepted Solution

by:
Nickovsky earned 300 total points
ID: 6981455
use the action loadVariables() in flash to read the value.

Ex.
In Flash :
loadVariables("myJsp.jsp");


In myJsp.jsp :
<%
out.print(x=1&y=2&z=3);
%>

when the action in Flash is done you will get
x=1, y=2 and z=3 in your movie clip.
0
 
LVL 19

Expert Comment

by:Kuldeepchaturvedi
ID: 9553198
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

"Accept Nickovsky's comment as answer."
 
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Kuldeepchaturvedi
EE Cleanup Volunteer
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Invest in your employees with these five simple steps to improve employee engagement and retention.
Unified and professional email signatures help maintain a consistent company brand image to the outside world. This article shows how to create an email signature in Exchange Server 2010 using a transport rule and how to overcome native limitations …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question