Solved

Combining Servlet with Flash

Posted on 2002-04-08
4
197 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

691 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