lundi 1 novembre 2010

Flash and dataBase (and also connect to Second Life)

Flash can load and write data to a database using the URLRequest in combination with
URLVariables. (using a few php pages of course)
This all seems simple, but as usual there are a few deatails with the way FLASH wants to receive the data loaded from the database.
The data must be arranged in pairs.

I found these links which describe the matter clearly and give working examples:
http://www.flash-db.com/Tutorials/savingAS3/
http://www.flash-db.com/Tutorials/loadingAS3/

You need a database of course and a table.
You can get space on http://byethost.com/

The example of the loading has only two field, so if you want to load more records loaded you have to make for instance one big textfield and insert the records in this field.

To have more fun you can do the same in Second Life, that is writing and loading the dataBase:
http://wiki.secondlife.com/wiki/Http_request
Now you can manipulate objects in Second Life using Flash, or use the Arduino, connected to Flash using a socket to interfer with things in Second Life!

Aucun commentaire:

Enregistrer un commentaire