Prev | Current Page 938 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

In HTML, this same
data would look like this:
< embed src=???sample.swf??? / >
You will notice that, as it is a Netscape - compatible plug - in rather than an Internet Explorer ??“ compatible
plug - in, the values match those of the HTML embed tag used by Mozilla Firefox et al., rather than that of
the param tag.
Once the movie attributes are set, it is then time to start the Flash object, which loads and plays the
specified movie, shows the as yet hidden window, and sets SWHX into an event loop. From here on in,
any calls made to and from the Flash movie will need to occur within a callback, which will logically
have to be made by the Flash movie. Of course, if you wish, you can forgo any Neko communications
whatsoever, but you will be missing out on an incredible vista of possibilities if you do.
Chapter 18: Desktop Flash with SWHX
513
At any time, you can exit the SWHX loop from a Neko callback using:
swhx.Application.exitLoop();
When the application eventually ends, for whatever reason that might be, the SWHX loop will break,
and the swhx.


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