On this web page you will to know how to determine for
a key is pressed or not when an event occurs. In the example below two flex
controls CheckBox and Button and two flex containers HBox and VBox
created. Also two MouseEvent class events click and mouse over are
used. Example below is coded to track the pressing of two keys shift and alt
with define events CLICK and MOUSE_OVER respectively.
Function addChild in the code is used to bring the flex controls to generate inside the flex containers.
Function addEventListener is used to add or invoke the respective mouse events on the containers.
Syntax for using above functions:
Liked it! Share this Tutorial