Sr. Web Developer
mediabistro.com
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume

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!!


[Page 1]  [Page 2]  


Comments:
Php Flex steps and examples.TonAnil01/03/09 08:27
What about writing data from Flex to PHPjprior12/14/08 02:27
RE: i like to know more about the php and flexCvit12/07/08 15:54
X2O - db driven Flex apps, no server codingKa Wai Cheung11/13/08 23:56
Great topicMike11/05/08 17:03
i like to know more about the php and flexsrivathsa06/05/08 03:57
Will PHP be key server side script for AdobeThái H&#432;ng10/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.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.