Prev | Current Page 696 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

The function handler must accept one argument of
type EventType and must return nothing.
dispatchEvent
(e:EventType) :Bool
Invokes the execution of all the registered handlers. The execution
chain can be interrupted invoking the stop() method; in that case
the function returns false to point out that the execution has been
interrupted, otherwise true .
stop() :Void Interrupts the execution of the dispatchEvent() method.
The full source code is available at the following address: www.haxe.org/prohaxeandneko or
www.wrox.com
To use the source code, download it from one of the locations mentioned and uncompress it in a folder of
your choice. To use the included examples, you don ??™ t have to do anything in particular but if you want
to use the library in an external project, remember to set a reference to it using the - cp switch in the
compiler command or hxml file. The - cp must point a relative or absolute path.
Events
The very first problem to deal with is how the events are treated and implemented.


Pages:
684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708