Thursday, July 23, 2009

Flex 4

I am starting to get excited about Flex 4. I wasn't excited a couple weeks ago when I saw a demo of some of the features of Flex 4. They had a bunch of code that was generated by Flash Builder. It looked way too easy and the code generated was a few lines of code. I was bummed since our application right now is bloated. I was like if we migrate to Flex 4 do we have to junk all the code we wrote? Well it turns out the migration won't be too bad. The Flex 3 code should work seamlessly with the Flex 4 sdk - this is from the Adobe guys - we'll see if that's true or not :-). I haven't read the following article yet but it helps explain the differences between flex 3 and 4 and how to go about transitioning to Flex 4.

http://www.adobe.com/devnet/flex/articles/flex3and4_differences.html

Display hand cursor for display object

Just saying useHandCursor=true doesn't do the trick. You have to say buttonMode = true and mouseChildren=false to make this work. I learnt this the hard way.