Flex: “1000: Ambiguous reference to variableName.”

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 :-)

Flex Strangeness Part Two: getTime is not a recognized method of the dynamic class Date

13Oct2008

new Date().getTime() will produce the following warning:

“getTime is not a recognized method of the dynamic class Date”

Flex Strangeness - Part One: Setting openDuration to 0 on Menu will break Alert.show()

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:

Image

Check it out for yourself here (source view is enabled btw). Just click the menu button, and then select any menu item.

Welcome to my blog :-)

31Jan2008

Here I’ll talk about Adobe Flex, usability and juice. Perfect combo huh?

I recommend listening to my feed to get an update when I publish something, since it’s probably not going to be regulary ;-).

If you’re just starting out with Flex I recommen these resources:

Also, for inspiration check out the flickr page with screenshots of flex apps - and have a test-run with the Flex Style Explorer and the Flex Component Explorer.

 

 

 

 


Page 1 of 1 pages