Using Flash keywords as object properties

What if any are the ramifications of using Flash keywords as object params? For example,…

var myObject:Object = {label:"foobar", backgroundColor:0xFFFF00, x:0, y:0}

I’m doing this now but I get lots of heartburn when the Actions panel renders them blue. :slight_smile:

None. The syntax highlighter is just unintelligent.

If you try to use an actual language keyword like var, your program won’t compile, and you’ll have to use syntax like obj['var'] = 5.