Solved

Combining Servlet with Flash

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How To Remove a Principal from HttpServletRequest 4 53
web service Rest Client creation 4 97
getting param value 7 59
Java Exception example issues 11 84
Facebook has became the #1 social media platform. People share many funny videos there, yet you don't know how to download them? Now you can download Videos from Facebook in just 3 simple steps.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

685 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