how to active the variablesLoad("test.php",0) when the flash start to play I mean auto load the variables
-- Sincerely your; pei_world ( .::IT::. ) "Michiel Van Heusden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > my experience is > that interaction between flash and php runs best through GET > so, you could try using GET instead of POST > > and in your actionscript > insert the ';' on the end of the lines for: > test = this["list_label"+i] > myItem.label = test > > grace > michiel > > > "Pei_world" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > I have the following PHP code to generate output to the flash > > //======================================================================= > > $query = "SELECT currencyCode,currencyName,country,buyPrice,sellPrice > > FROM $CURRENCIES_TABLE order by currencyCode;"; > > > > $db_linker = db_connection(); > > db_selection($db_linker); > > $result = mysql_query($query); > > $num=mysql_num_rows($result); > > echo "&array_num=".$num; > > for($i=0; $i<mysql_num_rows($result); $i++){ > > echo > > > "&list_label".$i."=".mysql_result($result,$i,"currencyCode").",".mysql_resul > > t($result,$i,"currencyName"); > > } > > > > > > db_close($db_linker); > > > > > > > //========================================================================== > > == > > > > > > also the following code in actionscript use to receive&send data. > > but when I run the *.swf it cann't get the output from PHP, > > so anyone can help???? > > > > //============================================================ > > loadVariables("link.php", this, "POST"); // get the data from php file > > /* > > //================================================== > > iList = new Array(); > > myItem = new Object(); > > iList[0] = myItem; > > > > for (i=0; i<array_num; i++) { > > myItem = new Object(); > > test = this["list_label"+i] > > myItem.label = test > > myItem.data = i; > > iList[i+1] = myItem; > > } > > > > list_currency.setDataProvider(iList); > > > > //======================================================================== > > > > > > > > > > thx. > > > > -- > > Sincerely your; > > > > pei_world ( .::IT::. ) > > > > > > > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php