Welcome, Guest. Please login or register.
Did you miss your activation email?
02/07/12, 08:44
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
|-+  General
| |-+  Flash and AS 3 (Moderators: papachan, kofi addaquay)
| | |-+  Mysql > PHP > Flash (How to show the data in Mysql to the dataGrid in flash)
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: Mysql > PHP > Flash (How to show the data in Mysql to the dataGrid in flash)  (Read 868 times)
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« on: 01/17/10, 23:56 »

Hey2 i want to know how to show some data in database in the data grid in flash, like as php

Code:
echo "
<table>
for (....) {
<tr><td></td></tr>
}
</table>
";

Nah how about in flash?.. Smiley

Thank you very much.. a little help thats really appreciate Cheesy
Logged

Huihihi~ Cheesy
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6161


View Profile WWW Email
« Reply #1 on: 01/18/10, 01:38 »

If you use amfphp, you just transfer the records to flash and assign the complete object to the grids dataProvider attribute.

If you use XML, you can do the same (its just a little more overhead in the data stream).

If you want to throw them by text stream (delimited by &), you have to walk through the variables, and use the addItem methode.
Logged

happy flashing
Cool
Ronald
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« Reply #2 on: 01/18/10, 03:16 »

Umm, i just know 1 way to send some text from php to flash,

i used event.target.data.variable that contains the echo in PHP..

but thats just send 1 data. thats wont work if i use for, the record is just the last data in the last of loop in my php.. Smiley

thank you.. Smiley
Logged

Huihihi~ Cheesy
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6161


View Profile WWW Email
« Reply #3 on: 01/18/10, 08:59 »

for more ways communicating, work with our loading and saving tutorials.
Ther you'll learn how to handle structural data with XML or AMFPHP
Logged

happy flashing
Cool
Ronald
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« Reply #4 on: 01/18/10, 10:58 »

Okay i will try that Smiley i will comfirm it sometimes to you master Smiley

I want to learn XML first Smiley

in my collage the XML subject is in the next semester T.T cant wait huhu..

btw thanks really lot lot lot Cheesy
Logged

Huihihi~ Cheesy
Ronald Wernecke
Administrator
Systems Administrator
*****
Posts: 6161


View Profile WWW Email
« Reply #5 on: 01/18/10, 15:43 »

just to give you a hint:

XML ist intended to be a transportation container for structural data.
It is useful for small amount of data and for rarelay changing data, like configuration data etc.
Logged

happy flashing
Cool
Ronald
hinomotoblade
Seasoned Programmer
***
Posts: 131


Flash Never Die :D


View Profile
« Reply #6 on: 01/18/10, 19:36 »

Smiley

Thanks a lot master..

Um i have the tutorial about how to show data from XML tag to flash..
but how about from database?..

Can i make the XML depend on the database?..

Can i connect from MYSQL>PHP>XML>FLASH?..
Or there are a different way to do that?.. :O

Thank youuu again.. Cheesy
Logged

Huihihi~ Cheesy
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!
anything