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!



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.
What compiler error are you seeing? I would try to initialize it in the variable declaration expression
“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.
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”).
Okay, I found the bug DB via James Ward’s blog. I’ll leave you alone.