Prev | Current Page 946 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


Part III: Extending the Possibilities
516
onRightClick Event
The onRightClick method is fired when the right mouse button is pressed over the windows client
area. This method is especially useful should you wish to display a context menu of some sort, or to
enable some form of alternative Flash - based interaction. Like onClose , onRightClick expects a
Boolean return value; returning false will stop the right - click event bubbling to the Flash player, thus
quashing the default Flash player context menu, while true allows the event bubbling.
onFilesDropped Event
The onFilesDropped method is called only if and when the dropTarget property of the window
instance is set to true . This particular event method is passed an Array value of type String , which
lists the paths and filenames of each file ??™ s icon to have been dropped onto the windows client area. This
proves useful when you want to create applications that respond to external files rather than, say, having
to specifically select a load option:
window.


Pages:
934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958