



Today (not for the first time – but it’s been a while) I needed to create a custom class that took a custom itemRenderer.
Having used itemRenderers for ages I thought it was going to be straight forward, but I’d forgotten a few little bits of info needed to implement them from scratch (i.e. not using say a menu or datagrids itemRenderers). It’s all very well to just give a flex component a class name in the MXML but how does the class that contains the itemrenderer implement it?
So I created a very small test app to make sure that I could create a custom itemRenderer for my custom class.
I’ve placed my small test app here purely so that you can look at the source code (right click app). The app does NOTHING and is not interactive, it’s just to show the source code and how to make sure you set things up correctly.
Once you’ve looked at the code this bit will make sense.
All you need to do now is create a itemRenderer slighty more complex than a red box, but as long as it’s a DisplayObject then its going to be the same.
That’s it, as ever feel free to comment (especially if you’ve found this helpful).






More Options ...
Categories
Tag Cloud
Blog RSS
Comments RSS

Void « Default
Life
Earth
Wind
Water
Fire
Light 