// you’re reading...

Flash Builder Development

Happy holidays!


curves

Originally uploaded by sfdavidz

It’s been quite a year, and everyone on the Flex team is taking a much needed vacation (myself included). I’m up in Tahoe snowboarding this week, then off to much sunnier locals for the first week of the new year. Then, it’s back to work…lots of Flex Builder 4 planning to keep my busy.

Anyway, enjoy the holidays and the new year!

Discussion

5 comments for “Happy holidays!”

  1. Hey, David, this is totally off topic, but do you know if it’s possible to initialize a const field in the constructor of an ActionScript object? (I’m coming from Java and I guess I’m expecting const to act like final, which may be a mistake. But I like immutable objects.) The Flex 2.01 spec says yes, but when I try it in FlexBuilder I get a compilation error.

    Posted by David Moles | January 24, 2008, 3:17 am
  2. What compiler error are you seeing? I would try to initialize it in the variable declaration expression

    Posted by david.z | January 24, 2008, 11:35 am
  3. “Illegal assignment.” The problem with initializing it in the variable declaration is that I’d like to use a constructor parameter for the value — it’s not a static class constant, it’s just an instance variable that should only be set once, at construction time.

    Posted by David Moles | January 25, 2008, 2:57 am
  4. More specifically (sorry, didn’t have FlexBuilder installed on this box): “1049: Illegal assignment to a variable specified as constant.”

    This happens even if I copy the code from the Flex 2.01 docs (see under “Constants”).

    Posted by David Moles | January 25, 2008, 3:38 am
  5. Okay, I found the bug DB via James Ward’s blog. I’ll leave you alone. :)

    Posted by David Moles | February 5, 2008, 1:32 am

Post a comment