|
PHP and Adobe Flex
Let's modify our MXML script to populate the chart (see Example 3.3).
Example 3.3
import mx.collections.ArrayCollection;
[Bindable]
private var popChart:ArrayCollection = new ArrayCollection([]);
public function showResults(evt:ResultEvent) : void
{
var retResult:Object = evt.result;
var resData:String = '';
currentState='resultsPage';
for( var i:Number=0; i < retResult.RESULTS.STATE.length; i++ )
{
resData += retResult.RESULTS.STATE[i]+
' ('+retResult.RESULTS.STATE[i].ABV+') -'+ retResult.RESULTS.STATE[i].POP+'\n';
}
resText.text = resData;
for( i=0; i < retResult.RESULTS.STATE.length; i++ )
{
popChart.addItem({State: retResult.RESULTS.STATE[i].ABV,
Pop: retResult.RESULTS.STATE[i].POP});
}
}
Final Thoughts
This article addressed fundamental concepts to demonstrate how Adobe Flex relates to PHP. However, there should be further consideration regarding security, such as SQL injection code, but that is out of the scope of this article.
Because Adobe Flex is still relatively young, further advances from Zend and Adobe may enhance this relationship. For example, Mike Potter at Adobe is currently developing an Adobe PHP SDK. Look for great things to come!!
| Comments: | ||
| Php Flex steps and examples. | TonAnil | 01/03/09 08:27 |
| What about writing data from Flex to PHP | jprior | 12/14/08 02:27 |
| RE: i like to know more about the php and flex | Cvit | 12/07/08 15:54 |
| X2O - db driven Flex apps, no server coding | Ka Wai Cheung | 11/13/08 23:56 |
| Great topic | Mike | 11/05/08 17:03 |
| i like to know more about the php and flex | srivathsa | 06/05/08 03:57 |
| Will PHP be key server side script for Adobe | Thái Hưng | 10/27/07 08:38 |
|
If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly. | ||


