Solved

Combining Servlet with Flash

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now