Loading XML at run-time using the mx:HTTPService tag
In the previous post we looked at how to load an XML document in at compile-time and have it embedded in our Flex application. But that technique really only works if the XML data in question never...
View ArticleLoading name/value pairs using the mx:HTTPService tag
Semi-related to my previous post, I was playing around and figured out a way (probably not the best method) for loading a page of remote name/value pairs and putting them in a DataGrid using the...
View ArticleDynamically creating ActionScript cue points from FlashVars loaded using the...
In a previous post, “Dynamically creating ActionScript cue points from FlashVars received from the HTML container”, we looked at how to create ActionScript cue points based on variables passed in to...
View ArticleUsing HTTPService tag to send/receive variables to a server-side script
The following example demonstrates a very simple usage of sending parameters from Flex to a server-side script (written in ColdFusion) and then displaying the server response in our Flex application....
View ArticleParsing the Kuler RSS feed using Flex
Just a quick example I threw together last night which loads the Kuler RSS feed and displays some items in a DataGrid along with their rating and theme image (using the Flex Image control as a custom...
View ArticleConverting XML to objects using the Flex HTTPService MXML tag
The following example shows how you can convert an XML file loaded at run-time using the HTTPService tag, into an ActionScript Object by simply setting the resultFormat property to “object”. Full code...
View ArticleConverting XML to objects using the Flex SimpleXMLDecoder class
Similar to the previous post, “Converting XML to objects using the Flex HTTPService MXML tag“, the following example shows how you can use the decodeXML() method in the SimpleXMLDecoder class to...
View ArticleCreating multi-line list rows with variable row heights
The following example shows how you can create multi-line rows with wrapping text and variable row heights with the Flex List control. Full code after the jump. View MXML <?xml version="1.0"...
View ArticlePassing parameters to an HTTPService
The followig example shows how you can pass parameters to an HTTPService by passing an Object in the HTTPService’s send() method. The remote ColdFusion script is a simple “hello world” type script...
View ArticleDynamically loading XML files using the HTTPService tag
In previous examples, “Creating a simple image gallery with the Flex TileList control” and “Creating a simple image gallery with the Flex HorizontalList control”, we saw how you could create a simple...
View Article