05Nov2008
This code:
[Bindable]
private function get deWidth():Number
{
return this.dataProvider.width;
}
public function set deWidth( w:Number ):void
{
this.dataProvider.width = w;
}
.. seems fine, but when using the magic getter you’ll get (heh!) this compiler error “Ambiguous reference to deWidth”.
I’ve found found some blogposts referring to this as a bug. I don’t know if it’s a bug or not, but I know that the cause is that the getter is private and the setter is public - which doesn’t make sense.
So, to fix; either change your setter to private or your getter to public :-)
13Oct2008
new Date().getTime() will produce the following warning:
“getTime is not a recognized method of the dynamic class Date”
14Aug2008
After getting some complaints that the tween effect when displaying a menu in Flex looked ‘flex-default-n00bish’ I went on a quest to remove it.
I found out that I could set the duration of the tween to zero by doing a menu.setStyle("openDuration", 0) - thus removing the effect. That worked fine, but later I noticed that an Alert in my application didn’t show anymore. It turned out that it was the style change on the menu that caused this.
What happens is that the whole application is blurred - but no modal dialog is shown. So, the whole application is freezed. This is how it looks on my machine:
Check it out for yourself here (source view is enabled btw). Just click the menu button, and then select any menu item.