Prev | Current Page 967 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"

This particular example is based on a sample that comes
with SWHX:
import systools.win.Tray;
import systools.win.Menus;
import systools.win.Events;
class App
{
static var flash : swhx.Flash;
static var window: swhx.Window;
static var hook: swhx.MessageHook;
static var thook: swhx.MessageHook;
static var mhook: swhx.MessageHook;
static var tray: Tray;
static var m: Menus;
static var mm: Menus;
static var ms1: Menus;
static var ms11: Menus;
static var ms2: Menus;
Chapter 18: Desktop Flash with SWHX
527
static var ms3: Menus;
static function main()
{
swhx.Application.init();
window = new swhx.Window( ???SWHX Menus???, 400, 300 );
window.onRightClick = function() {
return false;
}
window.onClose = cleanUp;
var server = new neko.net.RemotingServer();
server.addObject(???App???,App);
flash = new swhx.Flash(window,server);
flash.setAttribute(???src???,???ui.swf???);
flash.onSourceLoaded = onSourceLoaded;
flash.start();
swhx.Application.loop();
swhx.Application.cleanup();
}
static function onSourceLoaded()
{
window.


Pages:
955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979