| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
creative soloper
Join Date: Sep 2002
Posts: 43
|
Wondering what I need to do to be able to use the DataGlue API, or if it even works with amfphp.
I've been able to get data back from php/mySql and populate a combobox but... I would like to figure out how to bind the data using DataGlue. When I recieve the data back using amfphp is that considered a RecordSet or do I have to create a RecordSet in flash using new RecordSet (colunmNames) or something ![]() |
|
|
|
|
|
#2 |
|
Master of Nothing
Join Date: Dec 2002
Location: San Diego, CA
Posts: 2,468
|
Depends on how you are getting the data, if you simple return the result of a query from your class, it is a recordset in flash.
Consider this class I use to get data from a people database in MySQL. Both getPeople and getPersonById will return a recordset to flash. PHP Code:
ActionScript Code:
AS you can probably see its fairly simple to use. Or if you want to have labels and data in the listbox you can use the bindFormatFunction method like ActionScript Code:
|
|
|
|
|
|
|
|
|
#3 |
|
creative soloper
Join Date: Sep 2002
Posts: 43
|
Sweet, thanks so much for the example code, I've just started playing around with this stuff so the more code samples I can get my hands on the better.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|