The next line of the example creates a new operating system window, with a given title, width, and
height:
swhx.Window( title : String, width : Int, height : Int, ?flags : Int ) : Window
On Windows and Mac OSX, the given window will derive from the native interface API, while on Linux,
the window will derive from the GTK library.
Next, an instance of the Neko remoting library is instantiated, along with an instance of a new SWHX
Flash object, which is passed both the window data and the remoting library instance. You now have all
the necessary objects to run the application; all that ??™ s needed is to finish setting the necessary parameters
for your movie and then set SWHX running.
As the Flash player plug - in used by SWHX is that of the Netscape browser family, it has been optimized
so that it can work well with string - based XML values. Thus, the attribute functionality for the plug - in is
oriented toward key/value pairs, passed as strings. Therefore, when specifying which SWF movie the
Flash player plug - in should load, it must be done using the setAttribute function of the plug - in, and
should pass both the attribute type, which is src , and the path to the SWF movie.
Pages:
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949