Question for someone.  Is there anyway to pass an array to flex from 
amfphp to a combobox.

I currenly do it by entering "AS label" and "AS data" in my mysql 
statement.  
example:
return mysql_query("SELECT ID AS data, CASE LastName WHEN ' ' THEN 
FirstName ELSE CONCAT(LastName,', ',FirstName) END AS label FROM 
clientdb ORDER BY LastName");

the problem I have is I want to do a stripslashes() on the first and 
last name and I can't figure out a way to pass the array back to flex 
with out looping through the array in flex and formating it for an 
combobox.

Is there a way to do an array passing in php passed back to flex like:
var promptStrings= array ({label:"Select Color", data:-1},
{label:"Warm Colors, data:-2},
{label:"Cool Colors", data:-3});

I know you can't do the {} in php though.

hope I'm making sense.

Reply via email to