Prev | Current Page 936 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

There are a number of extra properties and functions you can use to
further customize the capabilities of SWHX, some of which you ??™ ll look at now, some later. To get a real
feel for what ??™ s happening, however, you ??™ ll break this example down and see what ??™ s going on.
To begin, you made a call to the static function init of the class swhx.Application . This function can
accept two arguments, both optional:
swhx.Application.init( ?flashVersion : Int, ?pathToPlugin : String )
The first argument specifies the version of Flash player you want to use, while the second is the
preferred path to the Flash player. If either of the arguments is missing, SWHX will default to the latest
available Flash player, in a default location. If the player doesn ??™ t appear to exist in the default location,
SWHX will attempt to download the latest plug - in from the Adobe website. Failing this, a quick search is
then made to see if the plug - in is already available from an installed Mozilla - or Netscape - compatible
Internet browser.


Pages:
924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948