Prev | Current Page 944 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


A drag event is fired by calling the Window.drag function. This is normally be called direct from a Flash
movie, though under the right circumstances, it can also be called from the Neko layer. This event
persists until the pressed mouse button is released.
onClose Event
In all likelihood, when you create an SWHX application, the initialization and display of a window will
be the first thing you do. Likewise, when the window is closed, you will probably want your application
to end. The problem arises that you will not be able to plan for a window to be closed, so your
application could be in any state when such an event occurs. For example, it might be that at the time a
window closes, the Neko layer has an open connection to a database. Simply disposing of an application
without shutting down a database connection properly would be wasteful of machine resources, and
will be the cause of a memory leak. At worse, depending on how the particular database handles
impolite connection severances, you might just lose some important data.


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