Ok…this was boggling for a minute but thanks to my good buddies Google and the public Flex bug system I found the problem. It was a tough search so I figured I’d post here to help.
Monthly Archives: January 2009
AS3: Rounding to nearest N
This really would work in any language, heck even on paper, but the code will be AS3 so figured I’d label it an AS3 post. Short and sweet though…here is how you can round to the nearest number in ActionScript.
Flex 3: Setting List component itemRenderer
In MXML you can easily set the itemRenderer to the string of your class, including dot syntax classpath, but in ActionScript it is different.
_list = new List();
_list.itemRenderer = new ClassFactory(IndexRenderer);
addChild(_list);
As you see the ClassFactory class is used because itemRenderer expects an IFactory implementation.
Just a quick tip.
I’M BACK!
Where have I been? I’m glad you asked. For the past 6 months I’ve been SLAMMMMMED with work, server transitions, and with Movable Type issues.
I’ve been itching to blog but I didn’t want to blog on the old server (would need to transfer files, etc for my site again) then after getting the new server up I had MT issues that were nerve wrecking. Today I nixed the last MT issue, after having setup this WordPress blog weeks ago, and exported my old blog only to import here. I’m loving WP 2.7 and am ready to start blasting off blog posts again.
Anyways…look for me to start blogging again very shortly. I have a lot of lil’ code stuff to post.
HOLLA!