The 2030 Self-Driving Car Bet
4 years ago
But this didn't:private var _boundProperty : String;
[Bindable( "namedBindable" )]
public function get boundProperty() : String
{
return _boundProperty;
}
public function set boundProperty( value : String ) : void
{
_boundProperty = value;
dispatchEvent( new Event( "namedBindable" ) );
}
It turns out that if you use PropertyChangeEvent Flex is a bit picky and doesn't use it for binding unless you populate the property property!private var _boundProperty : String;
[Bindable( "namedBindable" )]
public function get boundProperty() : String
{
return _boundProperty;
}
public function set boundProperty( value : String ) : void
{
_boundProperty = value;
dispatchEvent( new PropertyChangeEvent( "namedBindable" ) );
}
private var _boundProperty : String;
[Bindable( "namedBindable" )]
public function get boundProperty() : String
{
return _boundProperty;
}
public function set boundProperty( value : String ) : void
{
_boundProperty = value;
dispatchEvent(
new PropertyChangeEvent(
"namedBindable",
false, false,
PropertyChangeEventKind.UPDATE,
"boundProperty"
) );
}
I have a lot of DVDs, probably over 400 or so. Quite a few of these DVDs are box sets that Linzi and I are likely to watch fairly frequently. These DVDs are all ripped to our server so we can watch them without digging out the disc. It also means we can watch them in the bedroom on our small Media Centre that doesn't have a DVD drive.
I'm especially pleased with this component. So far it has been used by 2 of the clients that I have worked for over the past year or so. Initially it only took me 1 evening to write it. Since then I've had to make a few tweaks but the way it works is basically the same.
This component has a nice little transition as you open each item in a list.