title : String Sets and returns the windows title.
plain : Bool Determines whether the window was created with the WF_PLAIN flag set.
minimized : Bool Determines whether the window is minimized.
maximized : Bool Determines whether the window is maximized.
Chapter 18: Desktop Flash with SWHX
515
Window Events
Much as you would expect when working with native operating system windows, much of what you
wish to achieve with regard to window interaction is accomplished through the use of events. The
Window class exposes several functions, which you can override in order to hook into these events, and
apply your own code in haXe for supplying any necessary functionality that should be run when such
events are fired.
Drag Event
One of the coolest events supported by SWHX is the drag event. The theory is that any Flash MovieClip
in your running movie can act as a handle for dragging the container window around the screen. This
becomes especially important when dealing with windows that have the WF_TRANSPARENT flag set at
creation time, as without any window decoration, you are left with no handles with which to move
your window.
Pages:
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955