Archive for the ‘Flex’ Category

Using Gumbo and itemRendererFunction to create multiple ItemRenderers

Wednesday, December 3rd, 2008

Gumbo has added an "itemRendererFunction" function that allows certain data containers to specify an itemRenderer based on the data item. In this example an FxDataContainer's dataProvider is set to an ArrayCollection that contains 2 different types of Value Objects. Depending on the type of Value Object the itemRendererFunction returns a ...

Gumbo and Catalyst Photo Viewer Application

Wednesday, December 3rd, 2008

I've posted an example of a Flex application created with the MAX preview versions of Flash Catalyst and Gumbo. This small demo application was created to test out some of the new features in both Catalyst and Gumbo. It is not a perfect project, but a starting point for further ...

Deconstruction and reconstruction of a ByteArray

Tuesday, December 2nd, 2008

Many times you may come up with tasks that seem pretty straight forward but involve a bit of researching. In a recent project, I needed to find a way pass a dynamically generated image from one flex application (swf) to another. My senior developer suggested that I pass the ByteArray ...

Awesome to the (Max 2008)

Wednesday, November 26th, 2008

In the last couple of days, I decided to go through my notes, collect all the presentation files (powerpoints, pdfs and zips) and find blogs that reference the keynotes. Essentially I wanted to reflect and review "the Happening" that was Adobe Max 2008, my first Max. For the most part I ...

Architecting Flex Applications Presentation

Saturday, October 11th, 2008

For those attending the user group meetings where I present on the topic of Architecting Flex Applications you may have interest in downloading the code for the sample application. The sample application is from Programming Flex 3, where you can find more detailed information and explanations about the application itself. ...

Example of Feature Rich ItemRenderers in Flex

Monday, September 15th, 2008

In response to some requests I got from friends wanting some more real world ItemRenderer examples, here is one that approaches the item renderer from a graphical approach and brings together some different techniques to create a nicely featured ItemRenderer. Here is what this example DataGrid/ItemRender demonstrates: MXML based ItemRenderer Override ItemRenderer ...

Using ServiceCapture and Fiddler with FireFox

Friday, September 5th, 2008

I've been using both ServiceCapture and Fiddler for a while now to debug HTTP traffic from web applications (I've dabbled with TamperData but never got hooked). Using such software with FireFox was a bit cumbersome due to the network settings you have to turn on and off. That is until ...

Dynamically Getting JavaScript Properties

Wednesday, July 23rd, 2008

Jumping off of Joey's post about anonymous functions from externalinterface, here's a quick and perhaps obvious method of dynamically getting JavaScript properties: package examples { import flash.external.ExternalInterface; public class JavaScript { ...

Flex Link Buttons: Adding line breaks/wordwrap functionality

Wednesday, July 23rd, 2008

In my endless pursuit to rely more on the flex framework instead of created components from the ground up (call it a outset of flash-itis), I still find cases where I need to refine flex components. For example, Link buttons. How do you add line breaks and word wrapping ...

LineLimitText Component: Text With maxLines Property

Tuesday, June 17th, 2008

A little while ago I worked on a project that required some Flex screens to have text fields display dynamic text using a specified maximum number of lines. A simple solution would be to merely define a height on a Text component. In this case there were other components that ...