/ Published in: ActionScript 3
Expand |
Embed | Plain Text
// buttonState is String, pressed is Boolean // String is "on" if pressed is true, otherwise it's "off" var buttonState:String = (pressed) ? "on" : "off" // pressed is true if buttonState string matches "on" otherwise it's false var pressed:Boolean = (buttonState=="on") ? true : false
You need to login to post a comment.
