Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 01:03
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  MySQL, PostgreSQL, MS SQL, Access (Moderators: Flash-db, Musicman, Ronald Wernecke, Jorge Solis, Andries Seutens)
| | |-+  Access to a MySQL Database via Flash and Java
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Access to a MySQL Database via Flash and Java  (Read 2528 times)
Rom
Server what's that
*
Posts: 3



View Profile WWW Email
« on: 07/09/03, 04:53 »

Hi everybody.

First, sorry for my poor english (as I am not one !!) Embarrassed

My request is : I'm working on a project for my school in relation with Flash, Java and MySQL.

The thing is, as I am not very improved in those technologies, I'm looking for some help.

The project is : I've to access to MySQL through Java ( I don't how), to check a login and password.
The second point is, after being logged in, I need to update the database by sending some datas in XML and, in an other way, receive datas in the same format to continue.

The XML file will be stored in the local machine, and will have to be sent after when the user get connected.

Could somebody help me to do this, 'cause I'm working on it for two weeks and nothing has been made.

It would be really nice to help me.
ThX.
Logged
vesa kortelainen
Administrator
Systems Administrator
*****
Posts: 3450


View Profile
« Reply #1 on: 07/09/03, 05:09 »


Could somebody help me to do this, 'cause I'm working on it for two weeks and nothing has been made.



sounds buys  & hard project to do. How much u know about Java? How about MySql queries? How about sending data in and out from Flash movie, see here

Hrmmms  Undecided
Logged
Rom
Server what's that
*
Posts: 3



View Profile WWW Email
« Reply #2 on: 07/09/03, 07:06 »

Hi and thanks for answering so quickly.

Well, my knowing of Java is quite poor.

What I've made, is to install a java socket server waiting for a connection via socket.

Could I use this one to make my connection to MySQL ?

I know how to make a jdbc connection with java but the fact is, is it possible to insert this connection to the socket server to use its functionalities ?

If it could be possible and if you could help me to do that, it would be great !!

Thx.
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #3 on: 07/09/03, 10:49 »

Not sure about your goals. Putting a conection to a database into a socket? Why? You can just acces your database and use any of the asynchronous ways Flash offers to do it, like the loadVars() object. The way Flash manages sockets is trough the XML object. Are you doing some multiuser app? Or why you need Java sockets?

Jorge
Logged

Rom
Server what's that
*
Posts: 3



View Profile WWW Email
« Reply #4 on: 07/09/03, 15:10 »

Sorry, forget about he idea of using socket.
It was a mistake.

In fact, my application is for e-learning.
The swf is an animation that permits to anybody to test his knowing about subjects.

And I have to do is, for the first connection, to check the loggin and password in MySQL.
And then, once he's logged in, save his level in a XML file ( stored in the local machine), and send it to the database.

And all this stuff using Java (school imperatives !!)

So that's what I have to do and it"s really complciated and frustrating whrn you don't know how to do.

Thanks for all the answers that will permit me to go on.
Logged
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6175


View Profile WWW Email
« Reply #5 on: 07/09/03, 15:12 »

Hi Rom,
for to start, you need somthing on the server doing the database access, it can be a java program running on the server.

This program generates a XML data stream and sends it to output (towards a browser or flash).

So all basic datahandlig must be done by a serverside component or script.

Hpe this helps you a little
Logged

happy flashing
Cool
Ronald
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!