I had an example recently of two DataGrids with custom itemRenderers. In a particular scenario when an item was clicked in grid one I needed to clear all checked values in a particular rowIndex in grid two. There is more than one way to skin a cat I know but my particular situation required the clearing to be performed within the custom itemRenderer itself using a method I defined named clear(). If you were to try and access a custom itemRenderer your gonna have problems casting the renderer to your custom renderer probably with an error like:

Error #1034: Type Coercion failed: cannot convert mx.core::ContextualClassFactory to …your custom renderer

Read on →

You cannot use the setStyle() method on UITextField. To apply styles for example align text in a UITextField you use UITextFormat and setTextFormat.

1
2
3
4
5
6
7
var txt:UITextField = new UITextField();
txt.text = "My UITextField";
addChild( txt );

var tf:UITextFormat = new UITextFormat( this.systemManager );
tf.align = "center";
txt.setTextFormat( tf );

I recently downloaded and installed the new AIR TourDeFlex app and came across the latest example by Tink from his Efflex designer effects library. Tink has done an awesome job with his stuff on Efflex and the only downside was having the slight overhead of pulling in the necessary source code from Papervision3d’s SVN and from Tinks Google code library, being as its a bit of a time consuming slog gathering all the code and compiling a swc (oh and some of Tinks other classes needed pulling in).

Read on →

When I saw Mike Chambers tweet post I knew I had to have a play. I love Growl and I am game for a play around with what Mike has done. The first thing I wanted to do was integrate it into a PureMVC streaming video player and tinker from there. Read on →

I have had quite a few queries regarding how to handle nested view components in PureMVC and have decided to whip up a very simple and quick example of how to handle this dilemma.

In fact its actually not a biggie really, the only real thought has to go into when and where you register the mediators. In my example I highlight two methods of how to tackle this aspect: + A nested view is already added to the display list and its mediator is registered in the StartupCommand. + A view component is dynamically created and added to the display list by a Mediator, this mediator also registers the new nested view components mediator.

Read on →

I have recently adapted a new technique for my Modular application development in Flex using the MultiCore framework. This approach further segregates modules from the core, but I have noticed modules constructed with this much independence seems to present a couple of headaches. An odd issue I have stumbled across lately resulted in the following:

TypeError: Error #1034: Type Coercion failed: cannot convert Object@3c118101 to mx.messaging.messages.IMessage. The Flex project is a Shell application with a series of modules with ColdFusion remoting functionality, this error is thrown on a remoting call! The solution is as follows: Read on →

I have been digging more and more into ANT in Eclipse recently for my Flex projects (yeh yeh I know, its about time) and have stumbled upon an awesome portal of information. This is most definitely worth your time looking at if your getting into the world of ANT:

The Ant Best Practices Series

One thing that I did in the past and for some stupid reason completely forgot how to do recently was delete a workspace reference. By that I mean, when you switch a workspace in Flex Builder you have the option to create a new workspace. In future you will always have that work space displayed in the drop down box and for me that becomes an irritation! I am not sure if there is an easier way around this but I found (on Mac OS X) that I had to do 3 things: Read on →