all groups > flash actionscript > january 2005 >
You're in the

flash actionscript

group:

a lot of data from PHP


a lot of data from PHP Barnabas Mudri
1/23/2005 11:39:57 PM
flash actionscript: Hello,

I'd like to pass a lot of data from PHP, that i get from mysql. (min. 50
records - 4 fields)
How can I do that?

One by one or by one string and split it after transmission - too
slow/complicate

XML?

thanks

Barna

Re: a lot of data from PHP David Powers
1/24/2005 2:32:49 PM
[quoted text, click to view]
:: I'd like to pass a lot of data from PHP, that i get from mysql.
:: (min. 50 records - 4 fields)
:: How can I do that?

Build a PHP loop to generate a string of name/value pairs like this:

firstVar0=something&secondVar0=something&thirdVar0=something

Use an ActionScript loop to build an array of results.

--
David Powers
*******************************************
Author, "Foundation PHP 5 for Flash" (friends of ED)
http://computerbookshelf.com/php5flash/

Re: a lot of data from PHP David Powers
1/24/2005 3:45:47 PM
[quoted text, click to view]
:: But that will be min. 200 pair, will be it ok?

The only way to find out is to check. One thing that will affect performance
is the amount of content in each field. One of the applications in my new
book loads about 100 name/value pairs, some of which consist of several
paragraphs of text. It loads very quickly.

Make sure your values are urlencoded before transferring them to Flash.

--
David Powers
*******************************************
Author, "Foundation PHP 5 for Flash" (friends of ED)
http://computerbookshelf.com/php5flash/

Re: a lot of data from PHP Barnabas Mudri
1/24/2005 4:36:39 PM
But that will be min. 200 pair, will be it ok?

"David Powers" <me@thisisntmyaddress.com> az alábbiakat írta a következõ
hírüzenetben: ct30uh$4e1$1@forums.macromedia.com...
[quoted text, click to view]

AddThis Social Bookmark Button