Api.init , passing the current object as its
parameter, and to substitute all calls to the Neko layer with a call to swhx.Api.call .
As far as changes go, this was the biggest change. While the haXe version of the SWHX libraries allow
the specified Neko class name and method to be specified within the actual dot notation, the
ActionScript 2 version requires that the object and method names be specified as a string and passed as
the first parameter to the call method.
You ??™ ll also notice that the call has done away with the passing of a single array containing the parameter
list, and instead relies upon a variable number of parameters passed in the standard way for functions.
Keep this in mind should you become too familiar with the haXe variety of synchronous communication,
lest you lose hair trying to work out where your code is going wrong.
(continued)
Chapter 18: Desktop Flash with SWHX
525
Using SysTools
While the SWHX library was being developed, its author, Edwin Van Rijkom, decided it best to segregate
a chunk of the functionality originally intended for SWHX into a separate library.
Pages:
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975