News by Jason Holden

This feed does not validate. (details)

Boolean() vs "as Boolean"

19 Sep 08:49
I came across an interesting quirk in Flex today. I was trying to convert the string "false" to a boolean false. Initially I had this code: var str:String = "false"; var isDefault:Boolean = Boolean(str); isDefault always had a value of true. According to the Flex documenation any non empty string value is considered true.

Flex FocusManager

6 Sep 06:59
I'm still pretty new to Flex so it's no surprise that I find new stuff everyday. While researching form validation I came across this handy little bit of code: focusManager.setFocus({control}) I put this code in my creationComplete() event to send focus to the first form field.
Pages   ← previous   next
1 2