Prev | Current Page 700 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


Chapter 13: Replacing the Need for an IDE
373
KeyEvent Fields Description
char : String Returns the character selected on the keyboard. Not all the keys can be
mapped to a character and they have a null value in that case.
ctrlKey : Bool States if the Control key button on the keyboard was pressed at the time that
the keyboard has been used.
shiftKey : Bool Same as before but for the Shift key.
Views, Controls, Containers, and Elements
A control is a visual object that provides interaction, like a button or an input box. A container usually
does not provide any interaction but permits to arrange the contained controls. Controls and containers
have some features in common and so they both extend the base abstract Element class. All the elements
are hierarchically organized inside a view context. The view is always bound to a target platform, in the
current implementation Flash 9 only, and extends the Container class to allow the disposition of its
child elements. In practice, the view is the only class connected to the underlying platform that the
developer will solely use.


Pages:
688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712