Solved

Combining Servlet with Flash

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

The business world is becoming increasingly integrated with tech. It’s not just for a select few anymore — but what about if you have a small business? It may be easier than you think to integrate technology into your small business, and it’s likely…
The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

839 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