Monthly Archives: April 2008

I just stumbled across a little type conversion quirk within Flex. I haven’t tested this in-depth, so I may yet be proven wrong.

However….check this out:

var someVal:string = “true”;
var bool:Boolean;
bool = someVal as Boolean; // bool == false;
bool = someVal; // bool == true;

If you try to explicitly cast a string to Boolean, the casting appears to fail silently, leaving the Boolean with its default value of false.

However, if you leave it to the runtime to convert, the conversion works fine.

Ya learn something new every day!

billboard_feed_128x128.pngI just got the email, that I’ve been aggregated on MXNA. HOORAH!

I gotta admit, that I thought this would never happen, after Ryan Stewart punked us all with his april fools post.

I personally am a huge fan of MXNA, and read it several times a day. The bloggers whose posts are a part of the MXNA herd are all outstanding, so I’m amongst some fine company!

Note to self : Must actually post blogs now…