I was just watching Lee Brimelow’s fantastic video about Flash Catalyst and Flash Builder and noticed some Flex / ActionScript code (generated by Flash Catalyst) that caught my attention:
var state:String = currentState;
if ( state == ‘closed’ ) {
currentState=’open’;
}
if ( state == ‘open’ ) {
currentState=’closed’;
}
This code just toggles [...]

