Hallo, Beste Zusammenarbeit!

Ich denke, dass api.swf von alter Version des Flash Player 6,

Ich versuche Screenweaver zum Ausführen, Trotzdem wird SW immer bugt / abstürzen..

Ich habe beste SWF-Decomplicer gefunden und kontrolliere mit alte dekomplizierte api.swf und ich zeige Ihnen, das klingt es nicht auf Flash Player 8 erkannt worden.

Ich zeige: Sombol: 1. Actionscript lautet:
Code:
// Action script...

// [Initial MovieClip Action of sprite 1]
#initclip 1
_global.ScreenweaverEvents = function ()
{
    AsBroadcaster.initialize(this);
};
ScreenweaverEvents.prototype.init = function ()
{
    if (this.__initialized != undefined)
    {
        return (undefined);
    } // end if
    swInterface.setEventListener("WindowGeneric", this.onWindowGeneric);
    swInterface.setEventListener("SystemGeneric", this.onSystemGeneric);
    this.__initialized = true;
};
ScreenweaverEvents.prototype.onWindowGeneric = function ()
{
    var _l3 = true;
    if (swEvents[args[0]] != undefined)
    {
        _l3 = swEvents[args[0]].apply(this, args) != undefined;
    } // end if
    if (_l3)
    {
        swEvents.broadcastMessage.apply(swEvents, args);
    } // end if
};
ScreenweaverEvents.prototype.onSystemGeneric = function ()
{
    var _l3 = true;
    if (swEvents[args[0]] != undefined)
    {
        _l3 = swEvents[args[0]].apply(this, args) != undefined;
    } // end if
    if (_l3)
    {
        swEvents.broadcastMessage.apply(swEvents, args);
    } // end if
};
ScreenweaverEvents.prototype.onWindowActivate = function (inactiveHandle, inactiveId)
{
    swWindow.data.active = true;
    swApplication.data.activeWindowId = swWindow.getWindowId();
    swApplication.data.activeWindowHandle = swWindow.getWindowHandle();
    return (args);
};
ScreenweaverEvents.prototype.onWindowDeactivate = function (activeHandle, activeId)
{
    swWindow.data.active = false;
    swApplication.data.activeWindowId = activeId;
    swApplication.data.activeWindowHandle = activeWindowHandle;
    return (args);
};
ScreenweaverEvents.prototype.onWindowShow = function ()
{
    swWindow.data.visible = true;
    return (args);
};
ScreenweaverEvents.prototype.onWindowHide = function ()
{
    swWindow.data.visible = false;
    return (args);
};
ScreenweaverEvents.prototype.onWindowData = function ()
{
    if (args[1].__sw_rmc == 1)
    {
        var _l7 = args[1];
        var _l5 = _root;
        var _l4 = 0;
        var _l6 = _l7.method.indexOf(".");
        var _l8 = true;
        while (_l6 != -1 && _l5 != undefined)
        {
            _l5 = _l5[_l7.method.substr(_l4, _l6 - _l4)];
            if (_l5 == undefined && _l8)
            {
                _l5 = _global[_l7.method.substr(_l4, _l6 - _l4)];
            } // end if
            _l8 = false;
            _l4 = _l6 + 1;
            _l6 = _l7.method.indexOf(".", _l4);
        } // end while
        if (_l5 != undefined)
        {
            _l5 = _l5[_l7.method.substr(_l4, _l7.method.length - _l4)];
            if (_l5 != undefined)
            {
                _l5.apply(_root, _l7.args);
            } // end if
        }
        else
        {
            return (undefined);
        } // end if
    }
    else
    {
        return (args);
    } // end if
};
ScreenweaverEvents.prototype.onWindowExitMove = function (name, x, y)
{
    swWindow.data.x = x;
    swWindow.data.y = y;
    return (args);
};
ScreenweaverEvents.prototype.onWindowExitSize = function (name, cx, cy)
{
    swWindow.data.cx = cx;
    swWindow.data.cy = cy;
    return (args);
};
ScreenweaverEvents.prototype.onSysColorChange = function (name, newColors)
{
    swSystem.data.Colors = newColors;
    args.pop();
    return (args);
};
ScreenweaverEvents.prototype.onCtrlV = function (name, data)
{
    if (swWindow.CtrlV)
    {
        field = Selection.getFocus();
        if (field instanceof TextField)
        {
            field.replaceSel(data);
            field.broadcastMessage("onChanged", field);
        } // end if
    } // end if
    return (arguments);
};
ScreenweaverEvents.prototype.onCtrlC = function ()
{
    if (swWindow.CtrlC)
    {
        field = Selection.getFocus();
        if (field instanceof TextField)
        {
            var iBeginIndex = Selection.getBeginIndex();
            var iLength = field.text.length;
            getURL("FSCommand:sw_setClipboardText", field.text.substr(iBeginIndex, iLength - (iLength - Selection.getEndIndex()) - iBeginIndex));
        } // end if
    } // end if
    return (arguments);
};
ScreenweaverEvents.prototype.onCtrlA = function ()
{
    if (swWindow.CtrlA)
    {
        field = Selection.getFocus();
        if (field instanceof TextField)
        {
            Selection.setSelection(0, field.text.length);
        } // end if
    } // end if
    return (arguments);
};
ScreenweaverEvents.prototype.onCtrlX = function ()
{
    if (swWindow.CtrlX)
    {
        field = Selection.getFocus();
        if (field instanceof TextField)
        {
            var iBeginIndex = Selection.getBeginIndex();
            var iLength = field.text.length;
            var iCaret = Selection.getCaretIndex();
            getURL("FSCommand:sw_setClipboardText", field.text.substr(iBeginIndex, iLength - (iLength - Selection.getEndIndex()) - iBeginIndex));
            field.text = field.text.substr(0, iBeginIndex) + field.text.slice(Selection.getEndIndex(), length);
            Selection.setSelection(iCaret, iCaret);
            field.broadcastMessage("onChanged", field);
        } // end if
    } // end if
    return (arguments);
};
ScreenweaverEvents.prototype.onGlobalMouseMove = function ()
{
    args.unshift("onGlobalMouseMove");
    swEvents.broadcastMessage.apply(swEvents, args);
};
ScreenweaverEvents.prototype.onWindowMove = function (name, x, y, clientx, clienty)
{
    swWindow.data.x = x;
    swWindow.data.y = y;
    swWindow.data.clientx = clientx;
    swWindow.data.clienty = clienty;
    swEvents.broadcastMessage.apply(swEvents, args);
};
ScreenweaverEvents.prototype.onWindowSize = function (name, cx, cy, clientcx, clientcy)
{
    swWindow.data.cx = cx;
    swWindow.data.cy = cy;
    swEvents.broadcastMessage.apply(swEvents, args);
};
ScreenweaverEvents.prototype.trackWindowSize = function (bValue)
{
    if (bValue)
    {
        swInterface.setEventListener("WindowSize", swEvents.onWindowSize);
    }
    else
    {
        swInterface.clearEventListener("WindowSize");
    } // end if
};
ScreenweaverEvents.prototype.trackWindowMove = function (bValue)
{
    if (bValue)
    {
        swInterface.setEventListener("WindowMove", swEvents.onWindowMove);
    }
    else
    {
        swInterface.clearEventListener("WindowMove");
    } // end if
};
ScreenweaverEvents.prototype.trackGlobalMouse = function (bValue)
{
    if (bValue)
    {
        swInterface.setEventListener("MouseMove", swEvents.onGlobalMouseMove);
    }
    else
    {
        swInterface.clearEventListener("MouseMove");
    } // end if
};
_global.ScreenweaverDebug = function ()
{
    this.init();
};
ScreenweaverDebug.prototype.init = function ()
{
    this.sync = false;
};
ScreenweaverDebug.prototype.getSync = function ()
{
    return (this.sync);
};
ScreenweaverDebug.prototype.setSync = function (sync)
{
    this.sync = sync;
};
ScreenweaverDebug.prototype.syncTrace = function (section, arg, callback, scope)
{
    if (flash.external.ExternalInterface != undefined)
    {
        swInterface.fscommand("sw_utrace", arg);
    }
    else
    {
        args = {section: section, message: arg};
        swInterface.callMethod("syncTrace", args, callback, false, scope);
    } // end if
};
ScreenweaverDebug.prototype.trace = function (arg)
{
    if (!this.sync)
    {
        swInterface.fscommand("sw_utrace", arg);
    }
    else
    {
        this.syncTrace("user", arg);
    } // end if
};
ScreenweaverDebug.prototype.apiTrace = function (arg)
{
    if (!this.sync)
    {
        swInterface.fscommand("sw_atrace", arg);
    }
    else
    {
        this.syncTrace("api", arg);
    } // end if
};
ScreenweaverDebug.prototype.apiError = function (arg)
{
    if (!this.sync)
    {
        swInterface.fscommand("sw_etrace", arg);
    }
    else
    {
        this.syncTrace("error", arg);
    } // end if
};
ScreenweaverDebug.prototype.showWindow = function ()
{
    swInterface.fscommand("sw_showDebugWindow");
};
ScreenweaverDebug.prototype.hideWindow = function ()
{
    swInterface.fscommand("sw_hideDebugWindow");
};
ScreenweaverDebug.prototype.toggleVisibility = function ()
{
    swInterface.fscommand("sw_toggleVisibilityDebugWindow");
};
ScreenweaverDebug.prototype.traceObject = function (obj)
{
    var _l1 = new ScreenweaverTraceObject(obj);
    false;
};
_global.ScreenweaverTraceObject = function ()
{
    this.init.apply(this, args);
};
ScreenweaverTraceObject.prototype.init = function (obj)
{
    this.parse.us = this;
    var _l2 = this.parse(obj);
    swDebug.trace(_l2);
};
ScreenweaverTraceObject.prototype.indent = function (i)
{
    var _l2 = "";
    var _l1 = 0;
    while (_l1 < i)
    {
        _l2 = _l2 + "\t";
        ++_l1;
    } // end while
    return (_l2);
};
ScreenweaverTraceObject.prototype.parse = function (obj, i, name)
{
    var _l4 = "";
    var _l6 = args.callee.us;
    if (i == undefined)
    {
        i == 0;
    } // end if
    _l4 = _l4 + _l6.indent(i);
    if (obj instanceof Array)
    {
        _l4 = _l4 + "[\n";
        var _l2 = 0;
        while (_l2 < obj.length)
        {
            _l4 = _l4 + args.callee(obj[_l2], i + 1, _l2);
            ++_l2;
        } // end while
        _l4 = _l4 + _l6.indent(i);
        _l4 = _l4 + "]\n";
    }
    else if (obj instanceof Object)
    {
        _l4 = _l4 + "{\n";
        for (member in obj)
        {
            _l4 = _l4 + args.callee(obj[member], i + 1, member);
        } // end of for...in
        _l4 = _l4 + _l6.indent(i);
        _l4 = _l4 + "}\n";
    }
    else
    {
        _l4 = _l4 + (name + ": ");
        if (type eq "string")
        {
            _l4 = _l4 + "\"";
        } // end if
        _l4 = _l4 + obj;
        if (type eq "string")
        {
            _l4 = _l4 + "\"";
        } // end if
        _l4 = _l4 + "\n";
    } // end if
    return (_l4);
};
_global.ScreenweaverScreen = function ()
{
};
ScreenweaverScreen.prototype.getMonitor = function (monitor)
{
    if (monitor == undefined)
    {
        return (0);
    }
    else
    {
        return (monitor);
    } // end if
};
ScreenweaverScreen.prototype.__resolve = function (method)
{
    swSystem.Screen.__returnResolve.__method = method;
    return (this.__returnResolve);
};
ScreenweaverScreen.prototype.__returnResolve = function (monitor)
{
    var _l3 = swSystem.data.monitors[this.getMonitor(monitor)].info;
    var _l4 = args.callee.__method.toLowerCase();
    this.retVal = undefined;
    if (_l4 eq "getleft")
    {
        this.retVal = _l3.x;
    }
    else if (_l4 eq "gettop")
    {
        this.retVal = _l3.y;
    }
    else if (_l4 eq "getright")
    {
        this.retVal = _l3.cx;
    }
    else if (_l4 eq "getbottom")
    {
        this.retVal = _l3.cy;
    }
    else if (_l4 eq "getarea")
    {
        this.retVal = {x: _l3.x, y: _l3.y, cx: _l3.cx, cy: _l3.cy};
    }
    else if (_l4 eq "getwidth")
    {
        this.retVal = _l3.cx - _l3.x;
    }
    else if (_l4 eq "getheight")
    {
        this.retVal = _l3.cy - _l3.y;
    }
    else if (_l4 eq "getworkspaceleft")
    {
        this.retVal = _l3.wx;
    }
    else if (_l4 eq "getworkspacetop")
    {
        this.retVal = _l3.wy;
    }
    else if (_l4 eq "getworkspaceright")
    {
        this.retVal = _l3.wcx;
    }
    else if (_l4 eq "getworkspacebottom")
    {
        this.retVal = _l3.wcy;
    }
    else if (_l4 eq "getworkspacearea")
    {
        this.retVal = {x: _l3.wx, y: _l3.wy, cx: _l3.wcx, cy: _l3.wcy};
    }
    else if (_l4 eq "getworkspacewidth")
    {
        this.retVal = _l3.wcx - _l3.wx;
    }
    else if (_l4 eq "getworkspaceheight")
    {
        this.retVal = _l3.wcy - _l3.wy;
    }
    else if (_l4 eq "getname")
    {
        this.retVal = _l3.name;
    } // end if
    if (this.retVal != undefined)
    {
        return (this.retVal);
    }
    else
    {
        return (undefined);
    } // end if
};
ScreenweaverScreen.prototype.getModes = function (monitor)
{
    return (swSystem.data.monitors[this.getMonitor(monitor)].modes);
};
ScreenweaverScreen.prototype.getMonitorCount = function ()
{
    return (swSystem.data.monitors.length);
};
ScreenweaverScreen.prototype.setMode = function ()
{
    var _l2 = {};
    if (args[0].x == undefined)
    {
        _l2.x = args[0];
        _l2.y = args[1];
        _l2.d = args[2];
        _l2.f = args[3];
        _l2.m = args[4];
        var _l3 = args[5];
        var _l4 = args[6];
        _l2.t = args[7];
        _l2.r = args[8];
    }
    else
    {
        _l2.x = args[0].x;
        _l2.y = args[0].y;
        _l2.d = args[0].depth;
        _l2.f = args[0].frequency;
        _l2.m = args[1];
        _l3 = args[2];
        _l4 = args[3];
        _l2.t = args[4];
        _l2.r = args[5];
    } // end if
    if (m == undefined)
    {
        m = 0;
    } // end if
    swInterface.callMethod("setScreenMode", _l2, _l3, false, _l4);
};
ScreenweaverScreen.prototype.tryMode = function ()
{
    var _l2 = {};
    if (args[0].x == undefined)
    {
        _l2.x = args[0];
        _l2.y = args[1];
        _l2.d = args[2];
        _l2.f = args[3];
        _l2.m = args[4];
        var _l3 = args[5];
        var _l4 = args[6];
        _l2.t = true;
        _l2.r = false;
    }
    else
    {
        _l2.x = args[0].x;
        _l2.y = args[0].y;
        _l2.d = args[0].depth;
        _l2.f = args[0].frequency;
        _l2.m = args[1];
        _l3 = args[2];
        _l4 = args[3];
        _l2.t = true;
        _l2.r = false;
    } // end if
    if (m == undefined)
    {
        m = 0;
    } // end if
    swInterface.callMethod("setScreenMode", _l2, _l3, false, _l4);
};
ScreenweaverScreen.prototype.getMode = function (monitor, callback, scope)
{
    if (monitor == undefined)
    {
        var _l2 = 0;
    } // end if
    var _l1 = {m: _l2};
    swInterface.callMethod("getScreenMode", _l1, callback, false, scope);
};
ScreenweaverScreen.prototype.restoreMode = function (monitor, callback, scope)
{
    if (monitor == undefined)
    {
        var _l2 = 0;
    } // end if
    var _l1 = {m: _l2};
    swInterface.callMethod("restoreScreenMode", _l1, callback, false, scope);
};
_global.ScreenweaverDialogs = function ()
{
};
ScreenweaverDialogs.prototype.BrowseForFile = function (args, callback, scope)
{
    swInterface.callMethod("BrowseForFile", args, callback, false, scope);
};
ScreenweaverDialogs.prototype.BrowseForFile_Open = function (name, filter, dir, title, callback, scope)
{
    args = {filepath: path, filename: name, filefilter: filter, initdir: dir, title: title, multiplefiles: false, defaultext: "", save: false};
    this.BrowseForFile(args, callback, scope);
};
ScreenweaverDialogs.prototype.BrowseForFiles_Open = function (name, filter, dir, title, callback, scope)
{
    args = {filename: name, filefilter: filter, initdir: dir, title: title, multiplefiles: true, defaultext: "", save: false};
    this.BrowseForFile(args, callback, scope);
};
ScreenweaverDialogs.prototype.BrowseForFile_Save = function (name, filter, dir, title, defex, callback, scope)
{
    args = {filename: name, filefilter: filter, initdir: dir, title: title, defaultext: defex, multiplefiles: false, save: true};
    this.BrowseForFile(args, callback, scope);
};
ScreenweaverDialogs.prototype.BrowseForFolder = function (title, callback, scope)
{
    args = {title: title};
    swInterface.callMethod("BrowseForFolder", args, callback, false, scope);
};
ScreenweaverDialogs.prototype.ChooseColor = function (initcolor, callback, scope)
{
    args = {initcolor: initcolor};
    swInterface.callMethod("ChooseColor", args, callback, false, scope);
};
ScreenweaverDialogs.prototype.ChooseFont = function (title, size, color, bold, italic, callback, scope)
{
    args = {title: title, size: size, color: color, bold: bold, italic: italic};
    swInterface.callMethod("ChooseFont", args, callback, false, scope);
};
_global.ScreenweaverColors = function ()
{
    this.COLOR_ACTIVEBORDER = 10;
    this.COLOR_ACTIVECAPTION = 2;
    this.COLOR_APPWORKSPACE = 12;
    this.COLOR_BACKGROUND = 1;
    this.COLOR_BTNFACE = 15;
    this.COLOR_BTNHIGHLIGHT = 20;
    this.COLOR_BTNHILIGHT = this.COLOR_BTNHIGHLIGHT;
    this.COLOR_BTNSHADOW = 16;
    this.COLOR_BTNTEXT = 18;
    this.COLOR_CAPTIONTEXT = 9;
    this.COLOR_DESKTOP = this.COLOR_BACKGROUND;
    this.COLOR_GRADIENTACTIVECAPTION = 27;
    this.COLOR_GRADIENTINACTIVECAPTION = 28;
    this.COLOR_GRAYTEXT = 17;
    this.COLOR_HIGHLIGHT = 13;
    this.COLOR_HIGHLIGHTTEXT = 14;
    this.COLOR_HOTLIGHT = 26;
    this.COLOR_INACTIVEBORDER = 11;
    this.COLOR_INACTIVECAPTION = 3;
    this.COLOR_INACTIVECAPTIONTEXT = 19;
    this.COLOR_INFOBK = 24;
    this.COLOR_INFOTEXT = 23;
    this.COLOR_MENU = 4;
    this.COLOR_MENUTEXT = 7;
    this.COLOR_SCROLLBAR = 0;
    this.COLOR_WINDOW = 5;
    this.COLOR_WINDOWFRAME = 6;
    this.COLOR_WINDOWTEXT = 8;
    this.COLOR_3DDKSHADOW = 21;
    this.COLOR_3DFACE = this.COLOR_BTNFACE;
    this.COLOR_3DHIGHLIGHT = this.COLOR_BTNHIGHLIGHT;
    this.COLOR_3DHILIGHT = this.COLOR_BTNHIGHLIGHT;
    this.COLOR_3DLIGHT = 22;
    this.COLOR_3DSHADOW = this.COLOR_BTNSHADOW;
};
ScreenweaverColors.prototype.__resolve = function (method)
{
    var _l2 = method.toUpperCase();
    this.retVal = undefined;
    swC = swSystem.Colors;
    swDebug.trace("SWColor: Resolve: " + method);
    if (_l2 eq "GETACTIVEBORDER")
    {
        this.retVal = swC.getSysColor(swC.COLOR_ACTIVEBORDER);
    }
    else if (_l2 eq "GETACTIVECAPTION")
    {
        this.retVal = swC.getSysColor(swC.COLOR_ACTIVECAPTION);
    }
    else if (_l2 eq "GETAPPWORKSPACE")
    {
        this.retVal = swC.getSysColor(swC.COLOR_APPWORKSPACE);
    }
    else if (_l2 eq "GETBACKGROUND")
    {
        this.retVal = swC.getSysColor(swC.COLOR_BACKGROUND);
    }
    else if (_l2 eq "GETBTNFACE")
    {
        this.retVal = swC.getSysColor(swC.COLOR_BTNFACE);
    }
    else if (_l2 eq "GETBTNHIGHLIGHT")
    {
        this.retVal = swC.getSysColor(swC.COLOR_BTNHIGHLIGHT);
    }
    else if (_l2 eq "GETBTNSHADOW")
    {
        this.retVal = swC.getSysColor(swC.COLOR_BTNSHADOW);
    }
    else if (_l2 eq "GETBTNTEXT")
    {
        this.retVal = swC.getSysColor(swC.COLOR_BTNTEXT);
    }
    else if (_l2 eq "GETCAPTIONTEXT")
    {
        this.retVal = swC.getSysColor(swC.COLOR_CAPTIONTEXT);
    }
    else if (_l2 eq "GETDESKTOP")
    {
        this.retVal = swC.getSysColor(swC.COLOR_DESKTOP);
    }
    else if (_l2 eq "GETGRADIENTACTIVECAPTION")
    {
        this.retVal = swC.getSysColor(swC.COLOR_GRADIENTACTIVECAPTION);
    }
    else if (_l2 eq "GETGRADIENTINACTIVECAPTION")
    {
        this.retVal = swC.getSysColor(swC.COLOR_GRADIENTINACTIVECAPTION);
    }
    else if (_l2 eq "GETGRAYTEXT")
    {
        this.retVal = swC.getSysColor(swC.COLOR_GRAYTEXT);
    }
    else if (_l2 eq "GETHIGHLIGHT")
    {
        this.retVal = swC.getSysColor(swC.COLOR_HIGHLIGHT);
    }
    else if (_l2 eq "GETHIGHLIGHTTEXT")
    {
        this.retVal = swC.getSysColor(swC.COLOR_HIGHLIGHTTEXT);
    }
    else if (_l2 eq "GETHOTLIGHT")
    {
        this.retVal = swC.getSysColor(swC.COLOR_HOTLIGHT);
    }
    else if (_l2 eq "GETINACTIVEBORDER")
    {
        this.retVal = swC.getSysColor(swC.COLOR_INACTIVEBORDER);
    }
    else if (_l2 eq "GETINACTIVECAPTION")
    {
        this.retVal = swC.getSysColor(swC.COLOR_INACTIVECAPTION);
    }
    else if (_l2 eq "GETINACTIVECAPTIONTEXT")
    {
        this.retVal = swC.getSysColor(swC.COLOR_INACTIVECAPTIONTEXT);
    }
    else if (_l2 eq "GETINFOBK")
    {
        this.retVal = swC.getSysColor(swC.COLOR_INFOBK);
    }
    else if (_l2 eq "GETINFOTEXT")
    {
        this.retVal = swC.getSysColor(swC.COLOR_INFOTEXT);
    }
    else if (_l2 eq "GETMENU")
    {
        this.retVal = swC.getSysColor(swC.COLOR_MENU);
    }
    else if (_l2 eq "GETMENUTEXT")
    {
        this.retVal = swC.getSysColor(swC.COLOR_MENUTEXT);
    }
    else if (_l2 eq "GETSCROLLBAR")
    {
        this.retVal = swC.getSysColor(swC.COLOR_SCROLLBAR);
    }
    else if (_l2 eq "GETWINDOW")
    {
        this.retVal = swC.getSysColor(swC.COLOR_WINDOW);
    }
    else if (_l2 eq "GETWINDOWFRAME")
    {
        this.retVal = swC.getSysColor(swC.COLOR_WINDOWFRAME);
    }
    else if (_l2 eq "GETWINDOWTEXT")
    {
        this.retVal = swC.getSysColor(swC.COLOR_WINDOWTEXT);
    }
    else if (_l2 eq "GET3DDKSHADOW")
    {
        this.retVal = swC.getSysColor(swC.COLOR_3DDKSHADOW);
    }
    else if (_l2 eq "GET3DFACE")
    {
        this.retVal = swC.getSysColor(swC.COLOR_3DFACE);
    }
    else if (_l2 eq "GET3DHIGHLIGHT")
    {
        this.retVal = swC.getSysColor(swC.COLOR_3DHIGHLIGHT);
    }
    else if (_l2 eq "GET3DHILIGHT")
    {
        this.retVal = swC.getSysColor(swC.COLOR_3DHILIGHT);
    }
    else if (_l2 eq "GET3DLIGHT")
    {
        this.retVal = swC.getSysColor(swC.COLOR_3DLIGHT);
    }
    else if (_l2 eq "GET3DSHADOW")
    {
        this.retVal = swC.getSysColor(swC.COLOR_3DSHADOW);
    } // end if
    if (this.retVal != undefined)
    {
        return (function ()
        {
            return (this.retVal);
        });
    }
    else
    {
        return (undefined);
    } // end if
};
ScreenweaverColors.prototype.getSysColor = function (index)
{
    return (swSystem.data.Colors[index]);
};
_global.ScreenweaverVersion = function ()
{
    this.init();
};
ScreenweaverVersion.prototype.init = function ()
{
    _global.OS_UNKNOWN = 0;
    _global.OS_95 = 1;
    _global.OS_95OSR2 = 2;
    _global.OS_95OSR25 = 3;
    _global.OS_98 = 4;
    _global.OS_98SE = 5;
    _global.OS_ME = 6;
    _global.OS_NT351 = 7;
    _global.OS_NT4 = 8;
    _global.OS_2000 = 9;
    _global.OS_XP = 10;
    _global.OS_STRINGS = ["unknown", "95", "95 OSR2", "95 OSR2.5", "98", "98 SE", "ME", "NT 3.51", "NT 4", "2000", "XP"];
};
ScreenweaverVersion.prototype.getPlatformID = function ()
{
    return (swSystem.data.OSVPlatformID);
};
ScreenweaverVersion.prototype.getMajorVersion = function ()
{
    return (swSystem.data.OSVMajor);
};
ScreenweaverVersion.prototype.getMinorVersion = function ()
{
    return (swSystem.data.OSVMinor);
};
ScreenweaverVersion.prototype.getBuildNumber = function ()
{
    return (swSystem.data.OSVBuild);
};
ScreenweaverVersion.prototype.getCsdVersion = function ()
{
    return (swSystem.data.OSVCSD);
};
ScreenweaverVersion.prototype.getPlatform = function ()
{
    return (swSystem.data.OSVID);
};
_global.ScreenweaverMessages = function ()
{
    this.init();
};
ScreenweaverMessages.prototype.init = function ()
{
    _global.MB_ABORTRETRYIGNORE = 2;
    _global.MB_YESNO = 4;
    _global.MB_YESNOCANCEL = 3;
    _global.MB_RETRYCANCEL = 5;
    _global.MB_OKCANCEL = 1;
    _global.MB_OK = 0;
    _global.MB_ICONSTOP = 16;
    _global.MB_ICONQUESTION = 32;
    _global.MB_ICONINFORMATION = 64;
    _global.MB_ICONEXCLAMATION = 48;
    _global.MB_DEFBUTTON1 = 0;
    _global.MB_DEFBUTTON2 = 256;
    _global.MB_DEFBUTTON3 = 512;
    _global.MB_DEFBUTTON4 = 768;
    _global.MB_APPLMODAL = 0;
    _global.MB_SYSTEMMODAL = 4096;
    _global.MB_TASKMODAL = 8192;
    _global.MB_HELP = 16384;
    _global.MB_NOFOCUS = 32768;
    _global.MB_SETFOREGROUND = 65536;
    _global.MB_DEFAULT_DESKTOP_ONLY = 131072;
    _global.MB_TOPMOST = 262144;
    _global.MB_RIGHT = 524288;
    _global.MB_RTLREADING = 1048576;
    _global.MB_IDYES = 6;
    _global.MB_IDNO = 7;
    _global.MB_IDABORT = 3;
    _global.MB_IDCANCEL = 2;
    _global.MB_IDIGNORE = 5;
    _global.MB_IDRETRY = 4;
    _global.MB_IDOK = 1;
};
ScreenweaverMessages.prototype.messageBox = function (text, caption, type, callback, scope)
{
    args = {uType: int(type), lpCaption: caption, lpText: text, hWnd: swWindow.data.HostHandle};
    swInterface.callDLLMethod("user32.dll", "MessageBoxA", args, callback, scope);
};
_global.ScreenweaverPlugins = function ()
{
};
ScreenweaverPlugins.prototype.register = function (filepath)
{
    getURL("FSCommand:sw_registerPlugin", filepath);
};
ScreenweaverPlugins.prototype.unregister = function (filepath)
{
    getURL("FSCommand:sw_unregisterPlugin", filepath);
};
ScreenweaverPlugins.prototype.load = function (interfaceId)
{
    getURL("FSCommand:sw_loadPlugin", interfaceId);
};
ScreenweaverPlugins.prototype.loadByFile = function (filepath)
{
    getURL("FSCommand:sw_loadPluginByFile", filepath);
};
_global.HKEY_CLASSES_ROOT = 2147483648.000000;
_global.HKEY_CURRENT_CONFIG = 2147483653.000000;
_global.HKEY_CURRENT_USER = 2147483649.000000;
_global.HKEY_LOCAL_MACHINE = 2147483650.000000;
_global.HKEY_USERS = 2147483651.000000;
_global.HKEY_PERFORMANCE_DATA = 2147483652.000000;
_global.HKEY_DYN_DATA = 2147483654.000000;
_global.KEY_QUERY_VALUE = 1;
_global.KEY_SET_VALUE = 2;
_global.KEY_CREATE_SUB_KEY = 4;
_global.KEY_ENUMERATE_SUB_KEYS = 8;
_global.KEY_NOTIFY = 16;
_global.KEY_CREATE_LINK = 32;
_global.KEY_READ = 131097;
_global.KEY_WRITE = 131078;
_global.KEY_ALL_ACCESS = 983103;
_global.ScreenweaverRegistry = function ()
{
};
ScreenweaverRegistry.prototype.read = function (node, subkey, value, callback, scope)
{
    args = {node: node, subkey: subkey, subkeyvalue: value};
    swInterface.callMethod("readRegistry", args, callback, false, scope);
};
ScreenweaverRegistry.prototype.write = function (node, subkey, value, data, callback, scope)
{
    args = {node: node, subkey: subkey, subkeyvalue: value, SubkeyvalueData: data, create: true};
    swInterface.callMethod("writeRegistry", args, callback, false, scope);
};
ScreenweaverRegistry.prototype.removeKey = function (node, subkey, callback, scope)
{
    args = {node: node, subkey: subkey};
    swInterface.callMethod("removeRegistryKey", args, callback, false, scope);
};
ScreenweaverRegistry.prototype.removeValue = function (node, subkey, value, callback, scope)
{
    args = {node: node, subkey: subkey, subkeyvalue: value};
    swInterface.callMethod("removeRegistryKeyValue", args, callback, false, scope);
};
_global.ScreenweaverRegEx = function ()
{
};
ScreenweaverRegEx.prototype.create = function ()
{
    var _l1 = flash.external.ExternalInterface.call("regEx_create");
    return (new ScreenweaverRegExParser(_l1));
};
ScreenweaverRegEx.prototype.destroy = function (parser)
{
    return (flash.external.ExternalInterface.call("regEx_destroy", parser.id));
};
ScreenweaverRegEx.prototype.parse = function (parserId, grammar)
{
    return (flash.external.ExternalInterface.call("regEx_parse", parserId, grammar));
};
ScreenweaverRegEx.prototype.match = function (parserId, input)
{
    return (flash.external.ExternalInterface.call("regEx_match", parserId, input));
};
_global.ScreenweaverRegExParser = function (id)
{
    this.id = id;
    this.canMatch = false;
};
ScreenweaverRegExParser.prototype.parse = function (grammar)
{
    var _l2 = swSystem.RegEx.parse(this.id, grammar);
    this.canMatch = _l2 == 0;
    return (_l2);
};
ScreenweaverRegExParser.prototype.match = function (input)
{
    if (this.canMatch)
    {
        return (swSystem.RegEx.match(this.id, input));
    }
    else
    {
        return ({success: 0, groups: [], remainder: input});
    } // end if
};
_global.ScreenweaverSystem = function ()
{
    this.init();
};
ScreenweaverSystem.prototype.init = function ()
{
    this.Screen = new ScreenweaverScreen();
    this.Dialogs = new ScreenweaverDialogs();
    this.Colors = new ScreenweaverColors();
    this.Version = new ScreenweaverVersion();
    this.Messages = new ScreenweaverMessages();
    this.Plugins = new ScreenweaverPlugins();
    this.Registry = new ScreenweaverRegistry();
    this.RegEx = new ScreenweaverRegEx();
    _global.SW_HIDE = 0;
    _global.SW_SHOWNORMAL = 1;
    _global.SW_NORMAL = 1;
    _global.SW_SHOWMINIMIZED = 2;
    _global.SW_SHOWMAXIMIZED = 3;
    _global.SW_MAXIMIZE = 3;
    _global.SW_SHOWNOACTIVATE = 4;
    _global.SW_SHOW = 5;
    _global.SW_MINIMIZE = 6;
    _global.SW_SHOWMINNOACTIVE = 7;
    _global.SW_SHOWNA = 8;
    _global.SW_RESTORE = 9;
    _global.SW_SHOWDEFAULT = 10;
    _global.SW_FORCEMINIMIZE = 11;
    _global.SW_MAX = 11;
    _global.SPI_GETBEEP = 1;
    _global.SPI_SETBEEP = 2;
    _global.SPI_GETMOUSE = 3;
    _global.SPI_SETMOUSE = 4;
    _global.SPI_GETBORDER = 5;
    _global.SPI_SETBORDER = 6;
    _global.SPI_GETKEYBOARDSPEED = 10;
    _global.SPI_SETKEYBOARDSPEED = 11;
    _global.SPI_LANGDRIVER = 12;
    _global.SPI_ICONHORIZONTALSPACING = 13;
    _global.SPI_GETSCREENSAVETIMEOUT = 14;
    _global.SPI_SETSCREENSAVETIMEOUT = 15;
    _global.SPI_GETSCREENSAVEACTIVE = 16;
    _global.SPI_SETSCREENSAVEACTIVE = 17;
    _global.SPI_GETGRIDGRANULARITY = 18;
    _global.SPI_SETGRIDGRANULARITY = 19;
    _global.SPI_SETDESKWALLPAPER = 20;
    _global.SPI_SETDESKPATTERN = 21;
    _global.SPI_GETKEYBOARDDELAY = 22;
    _global.SPI_SETKEYBOARDDELAY = 23;
    _global.SPI_ICONVERTICALSPACING = 24;
    _global.SPI_GETICONTITLEWRAP = 25;
    _global.SPI_SETICONTITLEWRAP = 26;
    _global.SPI_GETMENUDROPALIGNMENT = 27;
    _global.SPI_SETMENUDROPALIGNMENT = 28;
    _global.SPI_SETDOUBLECLKWIDTH = 29;
    _global.SPI_SETDOUBLECLKHEIGHT = 30;
    _global.SPI_GETICONTITLELOGFONT = 31;
    _global.SPI_SETDOUBLECLICKTIME = 32;
    _global.SPI_SETMOUSEBUTTONSWAP = 33;
    _global.SPI_SETICONTITLELOGFONT = 34;
    _global.SPI_GETFASTTASKSWITCH = 35;
    _global.SPI_SETFASTTASKSWITCH = 36;
    _global.SPI_SETDRAGFULLWINDOWS = 37;
    _global.SPI_GETDRAGFULLWINDOWS = 38;
    _global.SPI_GETNONCLIENTMETRICS = 41;
    _global.SPI_SETNONCLIENTMETRICS = 42;
    _global.SPI_GETMINIMIZEDMETRICS = 43;
    _global.SPI_SETMINIMIZEDMETRICS = 44;
    _global.SPI_GETICONMETRICS = 45;
    _global.SPI_SETICONMETRICS = 46;
    _global.SPI_SETWORKAREA = 47;
    _global.SPI_GETWORKAREA = 48;
    _global.SPI_SETPENWINDOWS = 49;
    _global.SPI_GETHIGHCONTRAST = 66;
    _global.SPI_SETHIGHCONTRAST = 67;
    _global.SPI_GETKEYBOARDPREF = 68;
    _global.SPI_SETKEYBOARDPREF = 69;
    _global.SPI_GETSCREENREADER = 70;
    _global.SPI_SETSCREENREADER = 71;
    _global.SPI_GETANIMATION = 72;
    _global.SPI_SETANIMATION = 73;
    _global.SPI_GETFONTSMOOTHING = 74;
    _global.SPI_SETFONTSMOOTHING = 75;
    _global.SPI_SETDRAGWIDTH = 76;
    _global.SPI_SETDRAGHEIGHT = 77;
    _global.SPI_SETHANDHELD = 78;
    _global.SPI_GETLOWPOWERTIMEOUT = 79;
    _global.SPI_GETPOWEROFFTIMEOUT = 80;
    _global.SPI_SETLOWPOWERTIMEOUT = 81;
    _global.SPI_SETPOWEROFFTIMEOUT = 82;
    _global.SPI_GETLOWPOWERACTIVE = 83;
    _global.SPI_GETPOWEROFFACTIVE = 84;
    _global.SPI_SETLOWPOWERACTIVE = 85;
    _global.SPI_SETPOWEROFFACTIVE = 86;
    _global.SPI_SETCURSORS = 87;
    _global.SPI_SETICONS = 88;
    _global.SPI_GETDEFAULTINPUTLANG = 89;
    _global.SPI_SETDEFAULTINPUTLANG = 90;
    _global.SPI_SETLANGTOGGLE = 91;
    _global.SPI_GETWINDOWSEXTENSION = 92;
    _global.SPI_SETMOUSETRAILS = 93;
    _global.SPI_GETMOUSETRAILS = 94;
    _global.SPI_SETSCREENSAVERRUNNING = 97;
    _global.SPI_GETFILTERKEYS = 50;
    _global.SPI_SETFILTERKEYS = 51;
    _global.SPI_GETTOGGLEKEYS = 52;
    _global.SPI_SETTOGGLEKEYS = 53;
    _global.SPI_GETMOUSEKEYS = 54;
    _global.SPI_SETMOUSEKEYS = 55;
    _global.SPI_GETSHOWSOUNDS = 56;
    _global.SPI_SETSHOWSOUNDS = 57;
    _global.SPI_GETSTICKYKEYS = 58;
    _global.SPI_SETSTICKYKEYS = 59;
    _global.SPI_GETACCESSTIMEOUT = 60;
    _global.SPI_SETACCESSTIMEOUT = 61;
    _global.SPI_GETSERIALKEYS = 62;
    _global.SPI_SETSERIALKEYS = 63;
    _global.SPI_GETSOUNDSENTRY = 64;
    _global.SPI_SETSOUNDSENTRY = 65;
    _global.SPI_GETMOUSEHOVERWIDTH = 98;
    _global.SPI_SETMOUSEHOVERWIDTH = 99;
    _global.SPI_GETMOUSEHOVERHEIGHT = 100;
    _global.SPI_SETMOUSEHOVERHEIGHT = 101;
    _global.SPI_GETMOUSEHOVERTIME = 102;
    _global.SPI_SETMOUSEHOVERTIME = 103;
    _global.SPI_GETWHEELSCROLLLINES = 104;
    _global.SPI_SETWHEELSCROLLLINES = 105;
    _global.SPI_GETSHOWIMEUI = 110;
    _global.SPI_SETSHOWIMEUI = 111;
    _global.SPI_GETMOUSESPEED = 112;
    _global.SPI_SETMOUSESPEED = 113;
    _global.SPI_GETSCREENSAVERRUNNING = 114;
    _global.SPI_GETACTIVEWINDOWTRACKING = 4096;
    _global.SPI_SETACTIVEWINDOWTRACKING = 4097;
    _global.SPI_GETMENUANIMATION = 4098;
    _global.SPI_SETMENUANIMATION = 4099;
    _global.SPI_GETCOMBOBOXANIMATION = 4100;
    _global.SPI_SETCOMBOBOXANIMATION = 4101;
    _global.SPI_GETLISTBOXSMOOTHSCROLLING = 4102;
    _global.SPI_SETLISTBOXSMOOTHSCROLLING = 4103;
    _global.SPI_GETGRADIENTCAPTIONS = 4104;
    _global.SPI_SETGRADIENTCAPTIONS = 4105;
    _global.SPI_GETMENUUNDERLINES = 4106;
    _global.SPI_SETMENUUNDERLINES = 4107;
    _global.SPI_GETACTIVEWNDTRKZORDER = 4108;
    _global.SPI_SETACTIVEWNDTRKZORDER = 4109;
    _global.SPI_GETHOTTRACKING = 4110;
    _global.SPI_SETHOTTRACKING = 4111;
    _global.SPI_GETFOREGROUNDLOCKTIMEOUT = 8192;
    _global.SPI_SETFOREGROUNDLOCKTIMEOUT = 8193;
    _global.SPI_GETACTIVEWNDTRKTIMEOUT = 8194;
    _global.SPI_SETACTIVEWNDTRKTIMEOUT = 8195;
    _global.SPI_GETFOREGROUNDFLASHCOUNT = 8196;
    _global.SPI_SETFOREGROUNDFLASHCOUNT = 8197;
};
ScreenweaverSystem.prototype.shellMailTo = function (address, subject, body)
{
    var _l1 = "mailto:";
    if (address != undefined)
    {
        _l1 = _l1 + address;
        if (subject != undefined)
        {
            _l1 = _l1 + ("?subject=" + escape(subject));
            if (body != undefined)
            {
                _l1 = _l1 + ("&body=" + escape(body));
            } // end if
        } // end if
    } // end if
    swSystem.shellOpenDocument(_l1);
};
ScreenweaverSystem.prototype.getMonitorModes = function ()
{
    var _l1 = 0;
    while (_l1 < swSystem.data.monitorCount)
    {
        swInterface.callMethod("requestScreenData", _l1, swSystem.onMonitorModes);
        ++_l1;
    } // end while
};
ScreenweaverSystem.prototype.onMonitorModes = function (success, m)
{
    swSystem.data.monitors[m.info.number] = m;
    if (m.info.number == swSystem.data.monitorCount - 1)
    {
        swEvents.broadcastMessage("onMonitorModes");
    } // end if
};
ScreenweaverSystem.prototype.shellExecute = function (operation, filename, parameters, directory, showCmd, callback, scope)
{
    var _l1 = {nShowCmd: int(showCmd), lpDirectory: directory, lpParameters: parameters.toString(), lpFile: filename, lpVerb: operation, hHandle: swWindow.data.HostHandle};
    swInterface.callDLLMethod("shell32.dll", "ShellExecuteA", _l1, callback, scope);
};
ScreenweaverSystem.prototype.shellOpenApplication = function (filename, parameters, showCmd, callback, scope)
{
    swSystem.shellExecute("open", filename, parameters, "", showCmd, callback, scope);
};
ScreenweaverSystem.prototype.shellOpenDocument = function (filename, callback, scope)
{
    swSystem.shellExecute("open", filename, "", "", 1, callback, scope);
};
ScreenweaverSystem.prototype.shellPrint = function (filename, callback, scope)
{
    swSystem.shellExecute("print", filename, "", "", 1, callback, scope);
};
ScreenweaverSystem.prototype.shellExplore = function (folder, callback, scope)
{
    swSystem.shellExecute("explore", folder, "", "", 1, callback, scope);
};
ScreenweaverSystem.prototype.shellFind = function (folder, callback, scope)
{
    swSystem.shellExecute("find", folder, "", "", 1, callback, scope);
};
ScreenweaverSystem.prototype.shellEdit = function (filename, callback, scope)
{
    swSystem.shellExecute("edit", filename, "", "", 1, callback, scope);
};
ScreenweaverSystem.prototype.getPlayerPath = function (addPath)
{
    if (swApplication.data.EngineLoaded)
    {
        var _l2 = swApplication.data.EnginePath.lastIndexOf("\\");
        if (_l2 != -1)
        {
            var _l3 = addPath != undefined ? (addPath) : ("");
            return (swApplication.data.EnginePath.substr(0, _l2 + 1) + _l3);
        }
        else
        {
            this.apiError("Path is invalid: " + swApplication.data.EnginePath);
        } // end if
    }
    else
    {
        return ("[ The swInterface engine didn\'t properly load. ]");
    } // end if
};
ScreenweaverSystem.prototype.getWindowsDirectory = function ()
{
    return (swSystem.data.DirWindows);
};
ScreenweaverSystem.prototype.getSystemDirectory = function ()
{
    return (swSystem.data.DirSystem);
};
ScreenweaverSystem.prototype.getFlashPluginPath = function ()
{
    if (swSystem.data.pathFlashPlugin == undefined)
    {
        return ("[OCX Path is unknown]");
    }
    else
    {
        return (swSystem.data.pathFlashPlugin);
    } // end if
};
ScreenweaverSystem.prototype.getUserName = function ()
{
    return (swSystem.data.UserName);
};
ScreenweaverSystem.prototype.getComputerName = function ()
{
    return (swSystem.data.ComputerName);
};
ScreenweaverSystem.prototype.setClipboardText = function (text)
{
    getURL("FSCommand:sw_setClipboardText", text);
};
ScreenweaverSystem.prototype.getClipboardText = function (callback, scope)
{
    args = {};
    swInterface.callMethod("getClipboardText", args, callback, false, scope);
};
ScreenweaverSystem.prototype.registerWindowMessage = function (message, handler, handlerScope, callback, scope)
{
    args = {message: message, callbackID: swInterface.addCallback(handler, true, handlerScope)};
    swInterface.callMethod("registerWindowMessage", args, callback, false, scope);
};
ScreenweaverSystem.prototype.getMouse = function (callback, scope)
{
    args = {};
    swInterface.callMethod("GetMouseXY", args, callback, false, scope);
};
if (flash.external.ExternalInterface != undefined)
{
    ScreenweaverSystem.prototype.getEnvironmentVar = function (variable)
    {
        args = {variable: variable.toString()};
        return (flash.external.ExternalInterface.call("GetEnvironmentVar", args, -1)[0]);
    };
}
else
{
    ScreenweaverSystem.prototype.getEnvironmentVar = function (variable, callback, scope)
    {
        args = {variable: variable.toString()};
        swInterface.callMethod("GetEnvironmentVar", args, callback, false, scope);
    };
} // end if
_global.ScreenweaverApplication = function ()
{
    this.init();
};
ScreenweaverApplication.prototype.init = function ()
{
};
ScreenweaverApplication.prototype.quit = function ()
{
    fscommand("sw_quit");
};
ScreenweaverApplication.prototype.__createWindow = function (args, callback, scope)
{
    if (args.settings[0].flash.MainMovieID != undefined)
    {
        if (this.getFilePath(args.settings[0].flash.MainMovieID) == undefined)
        {
            args.settings[0].flash.MainMovieID = "___SW_PATH___" + args.settings[0].flash.MainMovieID;
        } // end if
    } // end if
    this.createWindow_callback.callback = callback;
    swInterface.callMethod("createWindow", args, this.createWindow_callback, false, scope);
};
ScreenweaverApplication.prototype.createWindow = function (settings, callback, scope)
{
    args = {settings: [{window: {DesktopBackground: settings.transparent == true, Windowless: settings.transparent == true, ForceRegions: settings.forceRegions == true, NotInTaskBar: settings.noTaskButton == true, Border: int(settings.borderMode), Resize: int(settings.resizeMode), ZOrder: int(settings.zOrderMode), ScriptMode: int(settings.ScriptMode), Caption: settings.caption.visible == true, CaptionText: settings.caption.text != undefined ? (settings.caption.text) : (""), CaptionType: settings.caption.thin ? (settings.caption.thin) : (0), CaptionClose: settings.caption.buttons.close == true, CaptionMinimize: settings.caption.buttons.minimize == true, CaptionMaximize: settings.caption.buttons.maximize == true, Size: int(settings.size.mode), SizeX: int(settings.size.x), SizeY: int(settings.size.y), Pos: int(settings.position.mode), PosX: int(settings.position.x), PosY: int(settings.position.y), minWidth: int(settings.constraints.minWidth), minHeight: int(settings.constraints.minHeight), maxWidth: int(settings.constraints.maxWidth), maxHeight: int(settings.constraints.maxHeight), Snap: settings.snapping.enabled == true, SnapRange: int(settings.snapping.range), SupressCAD: settings.kiosk.CtrlAltDel == true, SupressAT: settings.kiosk.AltTab == true, SupressWK: settings.kiosk.WindowKey == true, SupressQuit: settings.kiosk.AltF4 = true}, flash: {MainMovieID: settings.movie, ScaleWindowToMovie: int(settings.Size.mode) == 4, ContentScaleMode: int(settings.FlashScaleMode), ContextNoMenu: settings.FlashMenu.Enabled != true, ContextZoom: settings.FlashMenu.Zoom == true, ContextPlay: settings.FlashMenu.Play == true, ContextQuality: settings.FlashMenu.Quality == true, ContextSettings: settings.FlashMenu.Settings == true, ContextPrint: settings.FlashMenu.Print == true, ContextAbout: settings.FlashMenu.About == true}}]};
    this.__createWindow(args, callback, scope);
};
ScreenweaverApplication.prototype.createWindow_callback = function ()
{
    args.callee.callback.apply(this, args);
};
ScreenweaverApplication.prototype.loadMovie = function (window, url, level, callback, scope)
{
    args = {window: swApplication.checkWindowId(window), movie: url, layer: int(level)};
    this.loadMovie_callback.callback = callback;
    swInterface.callMethod("loadMovie", args, this.loadMovie_callback, false, scope);
};
ScreenweaverApplication.prototype.loadMovie_callback = function (success)
{
    args.callee.callback.apply(this, args);
};
ScreenweaverApplication.prototype.showWindow = function (windowId)
{
    getURL("FSCommand:sw_showWindow", swApplication.checkWindowId(windowId));
};
ScreenweaverApplication.prototype.hideWindow = function (windowId)
{
    getURL("FSCommand:sw_hideWindow", swApplication.checkWindowId(windowId));
};
ScreenweaverApplication.prototype.toggleWindowVisibility = function (windowId)
{
    getURL("FSCommand:sw_toggleWindowVisibility", swApplication.checkWindowId(windowId));
};
ScreenweaverApplication.prototype.setForegroundWindow = function (windowId)
{
    getURL("FSCommand:sw_setForegroundWindow", swApplication.checkWindowId(windowId));
};
ScreenweaverApplication.prototype.closeWindow = function (windowId)
{
    if (windowId != undefined)
    {
        getURL("FSCommand:sw_close", swApplication.checkWindowId(windowId));
    } // end if
};
ScreenweaverApplication.prototype.send = function (window, data, callback, scope)
{
    args = {window: swApplication.checkWindowId(window), data: data};
    this.sendToPeer_callback.callback = callback;
    swInterface.callMethod("sendToPeer", args, callback, false, scope);
};
ScreenweaverApplication.prototype.call = function (window, method, args, callback, scope)
{
    rmc_args = {__sw_rmc: 1, method: method, args: args};
    swApplication.send(swApplication.checkWindowId(window), rmc_args, callback, scope);
};
ScreenweaverApplication.prototype.getFilePath = function (id)
{
    var _l2 = this.Files[id];
    if (_l2 != undefined)
    {
        if (_l2.charAt(_l2.length - 1) == "0")
        {
            getURL("FSCommand:sw_extractResourceFile", id);
        } // end if
        _l2 = _l2.substr(0, _l2.length - 1);
        return (_l2);
    }
    else
    {
        return (undefined);
    } // end if
};
ScreenweaverApplication.prototype.getWindowId = function (windowName)
{
    return (this.Windows[windowName]);
};
ScreenweaverApplication.prototype.getCmdLineArg = function (index)
{
    if (index == undefined)
    {
        return (this.data.CmdLineArgs.toString());
    }
    else
    {
        return (this.data.CmdLineArgs[index]);
    } // end if
};
ScreenweaverApplication.prototype.getCmdLineArgCount = function ()
{
    return (this.data.CmdLineArgs.length);
};
ScreenweaverApplication.prototype.getPlayerPath = function (addPath)
{
    return (swSystem.getPlayerPath(addPath));
};
ScreenweaverApplication.prototype.getActiveWindowId = function ()
{
    return (swApplication.data.activeWindowId);
};
ScreenweaverApplication.prototype.getActiveWindowHandle = function ()
{
    return (swApplication.data.activeWindowHandle);
};
ScreenweaverApplication.prototype.parseCommandLine = function ()
{
    this.data.CmdLineArgs = this.data.CmdLine.split("|¬|");
};
ScreenweaverApplication.prototype.checkWindowId = function (id)
{
    if (id == undefined)
    {
        return (undefined);
    } // end if
    if (typeof(id) == "string")
    {
        return (swApplication.getWindowId(id));
    }
    else
    {
        return (id);
    } // end if
};
_global.ScreenweaverDragDrop = function ()
{
    this.init();
};
ScreenweaverDragDrop.prototype.init = function ()
{
};
ScreenweaverDragDrop.prototype.enable = function ()
{
    swInterface.setEventListener("DragDrop", this.onDragDrop);
    fscommand("sw_enableDragDrop");
};
ScreenweaverDragDrop.prototype.disable = function ()
{
    fscommand("sw_disableDragDrop");
    swInterface.clearEventListener("DragDrop");
};
ScreenweaverDragDrop.prototype.onDragDrop = function (name, data)
{
    swEvents.broadcastMessage.apply(swEvents, args);
};
_global.ScreenweaverTray = function ()
{
    this.init();
};
ScreenweaverTray.prototype.init = function ()
{
};
ScreenweaverTray.prototype.enable = function ()
{
    swInterface.setEventListener("TrayEvents", this.onTrayEvent);
};
ScreenweaverTray.prototype.disable = function ()
{
    swInterface.clearEventListener("TrayEvents");
};
ScreenweaverTray.prototype.setIcon = function (path, hint)
{
    swInterface.pushArg(typeof(path) eq "string" ? (path) : (""));
    swInterface.pushArg(typeof(hint) eq "string" ? (hint) : (""));
    fscommand("sw_setTrayIcon");
};
ScreenweaverTray.prototype.removeIcon = function ()
{
    fscommand("sw_removeTrayIcon");
};
ScreenweaverTray.prototype.onTrayEvent = function ()
{
    swEvents.broadcastMessage.apply(swEvents, args);
};
_global.ScreenweaverMenu = function ()
{
    this.init();
};
ScreenweaverMenu.prototype.init = function ()
{
    AsBroadcaster.initialize(this);
};
ScreenweaverMenu.prototype.registerMenu = function (menuData, userCallback, scope)
{
    this.__parseMenuData.callback = callback;
    delete this.__parseMenuData.result;
    callback = function (s, i)
    {
        if (!s)
        {
            return (undefined);
        } // end if
        us = args.callee;
        if (us.menus[us.counter].parent)
        {
            us.menus[us.counter].parent.submenu = i;
        } // end if
        ++us.counter;
        if (us.counter < us.menus.length)
        {
            swInterface.callMethod("createCustomPopup", us.menus[us.counter], us);
        }
        else
        {
            us.userCallback.apply(us.userScope, [s, i]);
        } // end if
    };
    callback.menus = args.__parseMenuData(i);
    callback.counter = 0;
    callback.userCallback = userCallback;
    callback.userScope = scope;
    swInterface.callMethod("createCustomPopup", callback.menus[0], callback);
};
ScreenweaverMenu.prototype.__parseMenuData = function (menuData, parent)
{
    if (!args.callee.result)
    {
        args.callee.result = [];
    } // end if
    var _l10 = [];
    _l10.parent = parent;
    var _l3 = 0;
    while (_l3 < menuData.length)
    {
        var _l5 = {caption: menuData[_l3].caption, callbackID: typeof(menuData[_l3].callback) eq "function" ? (swInterface.addCallback(menuData[_l3].callback, true, menuData[_l3].scope)) : (menuData[_l3].callback), scope: menuData[_l3].scope, submenu: 0};
        if (menuData[_l3].submenu)
        {
            args.callee.apply(this, [menuData[_l3].submenu, _l5]);
        } // end if
        _l10.push(_l5);
        ++_l3;
    } // end while
    args.callee.result.push(_l10);
    return (args.callee.result);
};
ScreenweaverMenu.prototype.setWindowMenu = function (menuId)
{
    getURL("FSCommand:sw_selectWindowMenu", menuId);
};
ScreenweaverMenu.prototype.setPopupMenu = function (menuId)
{
    getURL("FSCommand:sw_selectCustomPopup", menuId);
};
ScreenweaverMenu.prototype.showPopupMenu = function (menuId)
{
    getURL("FSCommand:sw_showCustomPopup", menuId);
};
_global.ScreenweaverWindow = function ()
{
    this.init();
};
ScreenweaverWindow.prototype.init = function ()
{
    this.CtrlV = true;
    this.CtrlC = true;
    this.CtrlA = true;
    this.CtrlX = true;
    this.DragDrop = new ScreenweaverDragDrop();
    this.Tray = new ScreenweaverTray();
    this.Menu = new ScreenweaverMenu();
    this.Switches = {allowClose: 0};
    _global.SW_TOPMOST = 1;
    _global.SW_NORMAL = 0;
    _global.SW_BOTTOMMOST = 2;
    _global.IDC_ARROW = 32512;
    _global.IDC_IBEAM = 32513;
    _global.IDC_WAIT = 32514;
    _global.IDC_CROSS = 32515;
    _global.IDC_UPARROW = 32516;
    _global.IDC_SIZENWSE = 32642;
    _global.IDC_SIZENESW = 32643;
    _global.IDC_SIZEWE = 32644;
    _global.IDC_SIZENS = 32645;
    _global.IDC_SIZEALL = 32646;
    _global.IDC_NO = 32648;
    _global.IDC_HAND = 32649;
    _global.IDC_APPSTARTING = 32650;
    _global.IDC_HELP = 32651;
};
ScreenweaverWindow.prototype.__resolve = function (method)
{
    var _l2 = method.toLowerCase();
    this.retVal = undefined;
    if (_l2 eq "getleft")
    {
        this.retVal = swWindow.data.x;
    }
    else if (_l2 eq "gettop")
    {
        this.retVal = swWindow.data.y;
    }
    else if (_l2 eq "getright")
    {
        this.retVal = swWindow.data.cx + swWindow.data.x;
    }
    else if (_l2 eq "getbottom")
    {
        this.retVal = swWindow.data.cy + swWindow.data.y;
    }
    else if (_l2 eq "getwidth")
    {
        this.retVal = swWindow.data.cx;
    }
    else if (_l2 eq "getheight")
    {
        this.retVal = swWindow.data.cy;
    }
    else if (_l2 eq "getclientx")
    {
        this.retVal = swWindow.data.ClientOffsetX;
    }
    else if (_l2 eq "getclienty")
    {
        this.retVal = swWindow.data.ClientOffsetY;
    }
    else if (_l2 eq "getwindowid")
    {
        this.retVal = swWindow.data.WindowId;
    }
    else if (_l2 eq "getmoviepath")
    {
        this.retVal = swWindow.data.MoviePath;
    }
    else if (_l2 eq "getwindowhandle")
    {
        this.retVal = swWindow.data.HostHandle;
    }
    else if (_l2 eq "getscriptmode")
    {
        this.retVal = swWindow.data.ScriptMode;
    }
    else if (_l2 eq "getvisible")
    {
        this.retVal = swWindow.data.visible;
    }
    else if (_l2 eq "getallowclose")
    {
        this.retVal = swWindow.Switches.allowClose;
    } // end if
    if (this.retVal != undefined)
    {
        return (function ()
        {
            return (this.retVal);
        });
    }
    else
    {
        return (undefined);
    } // end if
};
ScreenweaverWindow.prototype.close = function ()
{
    fscommand("sw_close");
};
ScreenweaverWindow.prototype.show = function ()
{
    getURL("FSCommand:sw_showWindow", swApplication.data.Number);
    this.data.visible = true;
};
ScreenweaverWindow.prototype.hide = function ()
{
    getURL("FSCommand:sw_hideWindow", swApplication.data.Number);
    this.data.visible = false;
};
ScreenweaverWindow.prototype.toggleVisibility = function ()
{
    getURL("FSCommand:sw_toggleWindowVisibility", swApplication.data.Number);
};
ScreenweaverWindow.prototype.setForeground = function ()
{
    getURL("FSCommand:sw_setForegroundWindow", swApplication.data.Number);
};
ScreenweaverWindow.prototype.maximize = function ()
{
    getURL("FSCommand:sw_maximizeWindow", swApplication.data.Number);
};
ScreenweaverWindow.prototype.minimize = function ()
{
    getURL("FSCommand:sw_minimizeWindow", swApplication.data.Number);
};
ScreenweaverWindow.prototype.restore = function ()
{
    getURL("FSCommand:sw_restoreWindow", swApplication.data.Number);
};
ScreenweaverWindow.prototype.startDrag = function ()
{
    fscommand("sw_startWindowDrag");
};
ScreenweaverWindow.prototype.startResize = function (direction)
{
    getURL("FSCommand:sw_startResize", direction);
};
ScreenweaverWindow.prototype.setPosition = function (x, y)
{
    swInterface.pushArg(x);
    swInterface.pushArg(y);
    swWindow.data.x = x;
    swWindow.data.y = y;
    fscommand("sw_setWindowPosition");
};
ScreenweaverWindow.prototype.setSize = function (w, h)
{
    swInterface.pushArg(w);
    swInterface.pushArg(h);
    swWindow.data.cx = w;
    swWindow.data.cy = h;
    fscommand("sw_setWindowSize");
};
ScreenweaverWindow.prototype.setParent = function (parent)
{
    if (typeof(parent) eq "string")
    {
        var _l1 = swApplication.getWindowId(parent);
    } // end if
    if (_l1 == undefined)
    {
        _l1 = 0;
    } // end if
    getURL("FSCommand:sw_setParent", _l1);
};
ScreenweaverWindow.prototype.setAllowClose = function (value)
{
    this.Switches.allowClose = value;
    getURL("FSCommand:sw_canClose", int(value == true));
};
ScreenweaverWindow.prototype.freezeAlpha = function ()
{
    fscommand("sw_freezeAlpha");
};
ScreenweaverWindow.prototype.unFreezeAlpha = function ()
{
    fscommand("sw_unfreezeAlpha");
};
ScreenweaverWindow.prototype.setZOrder = function (order)
{
    getURL("FSCommand:sw_setWindowZOrder", order);
};
ScreenweaverWindow.prototype.getFocusedTextField = function ()
{
    return (Selection.getFocus());
};
ScreenweaverWindow.prototype.allowCtrlV = function (value)
{
    swWindow.CtrlV = value;
};
ScreenweaverWindow.prototype.allowCtrlA = function (value)
{
    swWindow.CtrlA = value;
};
ScreenweaverWindow.prototype.allowCtrlX = function (value)
{
    swWindow.CtrlX = value;
};
ScreenweaverWindow.prototype.allowCtrlC = function (value)
{
    swWindow.CtrlC = value;
};
ScreenweaverWindow.prototype.getMovieFolder = function (addPath)
{
    if (swApplication.data.EngineLoaded)
    {
        var _l2 = swWindow.data.MoviePath.lastIndexOf("\\");
        if (_l2 != -1)
        {
            var _l3 = addPath != undefined ? (addPath) : ("");
            return (swWindow.data.MoviePath.substr(0, _l2 + 1) + _l3);
        }
        else
        {
            this.apiError("Path is invalid: " + swWindow.MoviePath);
        } // end if
        return ("");
    }
    else
    {
        return (undefined);
    } // end if
};
ScreenweaverWindow.prototype.getWindowText = function ()
{
    return (swWindow.data.WindowText);
};
ScreenweaverWindow.prototype.setWindowText = function (text)
{
    var _l1 = {lpString: text, hWnd: swWindow.getWindowHandle()};
    swInterface.callDLLMethod("user32.dll", "SetWindowTextA", _l1, 0);
    swWindow.data.windowText = text;
};
ScreenweaverWindow.prototype.setCursor = function (cursor)
{
    getURL("FSCommand:sw_setCursor", cursor);
};
_global.ScreenweaverGlobalMouse = function ()
{
    this.init();
};
ScreenweaverGlobalMouse.prototype.init = function ()
{
};
ScreenweaverGlobalMouse.prototype.startTracking = function ()
{
    swInterface.setEventListener("MouseMove", swEvents.onGlobalMouseMove);
};
ScreenweaverGlobalMouse.prototype.stopTracking = function ()
{
    swInterface.clearEventListener("MouseMove");
};
_global.ScreenweaverFile = function ()
{
    _global.FILE_NOTIFY_CHANGE_ATTRIBUTES = 4;
    _global.FILE_NOTIFY_CHANGE_DIR_NAME = 2;
    _global.FILE_NOTIFY_CHANGE_FILE_NAME = 1;
    _global.FILE_NOTIFY_CHANGE_SIZE = 8;
    _global.FILE_NOTIFY_CHANGE_LAST_WRITE = 16;
    _global.FILE_NOTIFY_CHANGE_SECURITY = 256;
    _global.FILE_NOTIFY_CHANGE_ALL = 287;
};
ScreenweaverFile.prototype.saveObject = function (path, data, callback, scope)
{
    if (typeof(data) != "object")
    {
        callback.apply(scope, [false, null]);
        return (undefined);
    } // end if
    var _l1 = {filepath: path, ObjectToSave: data};
    swInterface.callMethod("saveObject", _l1, callback, false, scope);
};
ScreenweaverFile.prototype.loadObject = function (path, callback, scope)
{
    var _l1 = {filepath: path};
    swInterface.callMethod("loadObject", _l1, callback, false, scope);
};
ScreenweaverFile.prototype.startMonitorFolder = function (folder, onChange, onChangeScope, subdirs, flags, callback, scope)
{
    var _l2 = {folder: folder, subdirs: subdirs != undefined ? (subdirs) : (false), callback: swInterface.addCallback(onChange, true, onChangeScope), flags: flags != undefined ? (flags) : (FILE_NOTIFY_CHANGE_LAST_WRITE)};
    swInterface.callMethod("startMonitorFolder", _l2, callback, false, scope);
};
ScreenweaverFile.prototype.stopMonitorFolder = function (monitorId)
{
    getURL("FSCommand:sw_stopMonitorFolder", int(monitorId));
};
ScreenweaverFile.prototype.startMonitorFile = function (file, onChange, onChangeScope, flags, callback, scope)
{
    var _l2 = {file: file, flags: flags != undefined ? (flags) : (FILE_NOTIFY_CHANGE_LAST_WRITE), subdirs: false, callback: swInterface.addCallback(onChange, true, onChangeScope), flash: false};
    swInterface.callMethod("startMonitorFile", _l2, callback, false, scope);
};
ScreenweaverFile.prototype.startMonitorSwf = function (file, onChange, onChangeScope, callback, scope, subdirs, flags)
{
    var _l2 = {file: file, subdirs: subdirs != undefined ? (subdirs) : (false), callback: swInterface.addCallback(onChange, true, onChangeScope), flags: flags != undefined ? (flags) : (FILE_NOTIFY_CHANGE_LAST_WRITE), flash: true};
    swInterface.callMethod("startMonitorFile", _l2, callback, false, scope);
};
ScreenweaverFile.prototype.stopMonitor = function (monitorId)
{
    getURL("FSCommand:sw_stopMonitor", int(monitorId));
};
ScreenweaverFile.prototype.pauseMonitor = function (monitorId)
{
    getURL("FSCommand:sw_pauseMonitor", int(monitorId));
};
ScreenweaverFile.prototype.resumeMonitor = function (monitorId)
{
    getURL("FSCommand:sw_resumeMonitor", int(monitorId));
};
ScreenweaverFile.prototype.getFileAttributes = function (filepath, callback, scope)
{
    var _l1 = {filepath: filepath};
    swInterface.callMethod("getFileAttributes", _l1, callback, false, scope);
};
ScreenweaverFile.prototype.fileExists = function (filepath, callback, scope)
{
    var _l1 = {filepath: filepath};
    swInterface.callMethod("fileExists", _l1, callback, false, scope);
};
ScreenweaverFile.prototype.fileExistsExcl = function (filepath, callback, scope)
{
    var _l1 = {filepath: filepath, exclusive: true};
    swInterface.callMethod("fileExists", _l1, callback, false, scope);
};
ScreenweaverFile.prototype.folderExists = function (folderpath, callback, scope)
{
    var _l1 = {folderpath: folderpath};
    swInterface.callMethod("folderExists", _l1, callback, scope);
};
ScreenweaverFile.prototype.getSwfHeader = function (filepath, callback, scope)
{
    var _l1 = {filepath: filepath, exclusive: true};
    swInterface.callMethod("getSWFHeader", _l1, callback, false, scope);
};
ScreenweaverFile.prototype.copyFile = function (source, destination, overwrite, createPath, callback, scope)
{
    var _l1 = {sourcePath: source, destinationPath: destination, overwrite: overwrite, createPath: createPath};
    swInterface.callMethod("copyFile", _l1, callback, false, scope);
};
ScreenweaverFile.prototype.renameFile = function (currentPath, newPath, callback, scope)
{
    var _l1 = {currentFilePath: currentPath, newFilePath: newPath};
    swInterface.callMethod("renameFile", _l1, callback, false, scope);
};
ScreenweaverFile.prototype.deleteFile = function (path, callback, scope)
{
    args = {filepath: path};
    swInterface.callMethod("deleteFile", args, callback, false, scope);
};
ScreenweaverFile.prototype.createDirectory = function (directory, callback, scope)
{
    var _l1 = {directory: directory};
    swInterface.callMethod("createDirectory", _l1, callback, false, scope);
};
ScreenweaverFile.prototype.deleteDirectory = function (path, deleteContent, callback, scope)
{
    var _l1 = {path: path, force: deleteContent};
    swInterface.callMethod("DeleteDirectory", _l1, callback, false, scope);
};
ScreenweaverFile.prototype.createShortcut = function (_description, location, target, argum, iconpath, iconnr, callback, scope)
{
    args = {description: _description, location: location, target: target, arguments: argum, iconpath: iconpath, iconnumber: iconnr};
    swInterface.callMethod("CreateShortcut", args, callback, false, scope);
};
ScreenweaverFile.prototype.listFolder = function (folder, type, mask, startIndex, callback, scope)
{
    args = {folder: folder, type: type, mask: mask, start: startIndex};
    swInterface.callMethod("ListFolder", args, callback, false, scope);
};
ScreenweaverFile.prototype.loadString = function (path, callback, scope)
{
    var _l1 = new XML();
    _l1.onData = swFile._loadString;
    _l1.load("file:///" + path);
    _l1.callback = callback;
    _l1.scope = scope;
};
ScreenweaverFile.prototype._loadString = function (src)
{
    var _l2 = src != undefined;
    this.callback.apply(this.scope, [_l2, src]);
};
ScreenweaverFile.prototype.saveString = function (path, value, append, callback, scope)
{
    swInterface.pushArg(value);
    swInterface.pushArg(path);
    swInterface.pushArg(append ? (1) : (0));
    swInterface.pushArg(0);
    swInterface.pushArg(swInterface.addCallback(callback, false, scope));
    fscommand("sw_saveTextFile");
};
ScreenweaverFile.prototype.saveUnicodeString = function (path, value, append, callback, scope)
{
    swInterface.pushArg(value);
    swInterface.pushArg(path);
    swInterface.pushArg(append ? (1) : (0));
    swInterface.pushArg(1);
    swInterface.pushArg(swInterface.addCallback(callback, false, scope));
    fscommand("sw_saveTextFile");
};
ScreenweaverFile.prototype.createProjector = function (flashPlayerPath, flashMoviePath, outputPath, callback, scope)
{
    var _l1 = {flashPlayerPath: flashPlayerPath.toString(), flashMoviePath: flashMoviePath.toString(), outputPath: outputPath.toString()};
    swInterface.callMethod("createProjector", _l1, callback, false, scope);
};
ScreenweaverFile.prototype.createDownload = function (source, target, callback, scope)
{
    var _l1 = {source: source.toString(), target: target.toString()};
    swInterface.callMethod("initDownload", _l1, callback, false, scope);
};
ScreenweaverFile.prototype.setDownloadFlags = function (id, loadFromCache, storeInCache, allowOnline, onStatus, onStatus_scope, onLoaded, onLoaded_scope, callback, scope)
{
    var _l1 = {id: int(id), loadFromCache: loadFromCache ? (true) : (false), storeInCache: storeInCache ? (true) : (false), allowOnline: allowOnline ? (true) : (false), statusCallback: swInterface.addCallback(onStatus, true, onStatus_scope), loadedCallback: swInterface.addCallback(onLoaded, true, onLoaded_scope)};
    swInterface.callMethod("setDownloadFlags", _l1, callback, false, scope);
};
ScreenweaverFile.prototype.startDownload = function (id, callback, scope)
{
    var _l1 = {id: int(id)};
    swInterface.callMethod("startDownload", _l1, callback, false, scope);
};
ScreenweaverFile.prototype.stopDownload = function (source, target, callback, scope)
{
    var _l1 = {id: int(id)};
    swInterface.callMethod("opperateDownload", _l1, callback, false, scope);
};
_global.ScreenweaverScript = function ()
{
    this.init();
};
ScreenweaverScript.prototype.init = function ()
{
};
ScreenweaverScript.prototype.execute = function (script, callback, scope)
{
    args = {script: script};
    swInterface.callMethod("runScript", args, callback, false, scope);
};
ScreenweaverScript.prototype.run = function (script, callback, scope)
{
    swScript.execute(script, callback, scope);
};
ScreenweaverScript.prototype.executeFile = function (file, callback, scope)
{
    args = {file: file};
    swInterface.callMethod("runScriptFile", args, callback, false, scope);
};
ScreenweaverScript.prototype.runFile = function (file, callback, scope)
{
    swScript.executeFile(file, callback, scope);
};
ScreenweaverScript.prototype.send = function (data, callback, scope)
{
    args = {data: data};
    swInterface.callMethod("sendToScript", args, callback, false, scope);
};
_global.ScreenweaverFlashInterface = function ()
{
};
Object.registerClass("Screenweaver Interface", ScreenweaverFlashInterface);
ScreenweaverFlashInterface.prototype.init = function ()
{
};
Object.registerClass("Screenweaver Flash Interface", ScreenweaverFlashInterface);
ScreenweaverFlashInterface.prototype._init = function (UniqueID, WindowData, ApplicationData, SystemColors, SystemData, Windows, Files)
{
    this.ID = "Screenweaver Flash Interface build 3.1 r7";
    this.swEvents = new ScreenweaverEvents();
    this.swDebug = new ScreenweaverDebug();
    this.swSystem = new ScreenweaverSystem();
    this.swApplication = new ScreenweaverApplication();
    this.swWindow = new ScreenweaverWindow();
    this.swGlobalMouse = new ScreenweaverGlobalMouse();
    this.swFile = new ScreenweaverFile();
    this.swScript = new ScreenweaverScript();
    _global.swInterface = this;
    _global.swEvents = this.swEvents;
    _global.swDebug = this.swDebug;
    _global.swSystem = this.swSystem;
    _global.swApplication = this.swApplication;
    _global.swWindow = this.swWindow;
    _global.swGlobalMouse = this.swGlobalMouse;
    _global.swFile = this.swFile;
    _global.swScript = this.swScript;
    swDebug.apiTrace("Initializing " + this.ID);
    this.callbackIDCount = 1;
    this.nextCallbackID = -1;
    this.callbackStack = [];
    swWindow.data = WindowData;
    swApplication.data = ApplicationData;
    swApplication.Files = Files;
    swApplication.Windows = Windows;
    swSystem.data = SystemData;
    swSystem.data.monitors = new Array(args.monitorCount);
    swSystem.data.Colors = SystemColors;
    swInterface.LCSWF_receiver_name = "LCreceive_SWF_" + swWindow.data.HostHandle.toString();
    swInterface.LCSWMX_receiver_name = "LCreceive_SWMX_" + swWindow.data.HostHandle.toString();
    swApplication.parseCommandLine();
    fscommand("sw_windowDatareceived");
    this.setupConnections();
    swDebug.apiTrace("Interface All done and Ready to Go!");
};
ScreenweaverFlashInterface.prototype.getWindowData = function ()
{
    fscommand("sw_requestWindowData");
};
ScreenweaverFlashInterface.prototype.setupConnections = function ()
{
    swDebug.apiTrace("Setting up connections.\n");
    swInterface.LCreceive = new LocalConnection();
    swInterface.LCreceive.allowDomain = function ()
    {
        return (true);
    };
    swInterface.LCreceive.CallMethod_Receive = swInterface.genericCallback;
    var _l1 = 0;
    while (!swInterface.LCreceive.connect(swInterface.LCSWF_receiver_name) && _l1 < 3)
    {
        ++_l1;
        swDebug.apiTrace("Failed to initialize tunnel: " + swInterface.LCSWF_receiver_name);
    } // end while
    if (_l1 == 3)
    {
        swDebug.apiTrace("ERROR: Cannot setup communications.\nThis might be a Flash 5 movie?");
    } // end if
    swInterface.LCsend = new LocalConnection();
    swInterface.LCsend.onStatus = function (infoObject)
    {
        if (infoObject.level == "error")
        {
            swDebug.trace("Sender Status: Failed tunneling data.");
        } // end if
    };
    swEvents.init();
};
ScreenweaverFlashInterface.prototype.closeConnections = function ()
{
    swInterface.LCreceive.close();
    swInterface.LCsend.close();
};
ScreenweaverFlashInterface.prototype.genericCallback = function (UniqueID, ID)
{
    if (ID == 0)
    {
        if (UniqueID != 0)
        {
            getURL("FSCommand:sw_callbackProcessed", UniqueID);
        } // end if
        return (undefined);
    } // end if
    var _l2 = 0;
    while (_l2 < swInterface.callbackStack.length)
    {
        if (swInterface.callbackStack[_l2].ID == ID)
        {
            var _l3 = [];
            for (j = 2; j < args.length; j++)
            {
                _l3.push(args[j]);
            } // end of for
            swInterface.callbackStack[_l2].callback.apply(swInterface.callbackStack[_l2].scope, _l3);
            if (!swInterface.callbackStack[_l2].static)
            {
                swInterface.nextCallbackID = ID;
                swInterface.callbackStack.splice(_l2, 1);
            } // end if
            if (UniqueID != 0)
            {
                getURL("FSCommand:sw_callbackProcessed", UniqueID);
            } // end if
            break;
        } // end if
        ++_l2;
    } // end while
};
ScreenweaverFlashInterface.prototype.addCallback = function (toAdd, static, scope)
{
    if (typeof(toAdd) ne "function")
    {
        if (toAdd != undefined && toAdd != 0)
        {
            swDebug.apiError("Value passed for Callback is not a valid function.");
        } // end if
        return (0);
    } // end if
    this.newEntry = {callback: toAdd, scope: scope == undefined ? (this) : (scope), static: static ? (true) : (false)};
    if (swInterface.nextCallbackID > 0)
    {
        this.newEntry.ID = swInterface.nextCallbackID;
        swInterface.nextCallbackID = -1;
    }
    else
    {
        this.newEntry.ID = swInterface.callbackIDCount;
        ++swInterface.callbackIDCount;
    } // end if
    swInterface.callbackStack.push(this.newEntry);
    return (this.newEntry.ID);
};
ScreenweaverFlashInterface.prototype.getCallback = function (ID)
{
    var _l1 = 0;
    while (_l1 < swInterface.callbackStack.length)
    {
        if (swInterface.callbackStack[_l1].ID == ID)
        {
            return (swInterface.callbackStack[_l1]);
        } // end if
        ++_l1;
    } // end while
    return (undefined);
};
ScreenweaverFlashInterface.prototype.pushArg = function (argument)
{
    getURL("FSCommand:sw_pushArgument", argument);
};
ScreenweaverFlashInterface.prototype.callDLLMethod = function (source, method, args, callback, scope)
{
    var _l2 = swInterface.addCallback(callback, false, scope);
    this.LCsend.send("localhost:" + swInterface.LCSWMX_receiver_name, "callDLLMethod", _l2, source, method, args);
};
ScreenweaverFlashInterface.prototype.callMethod = function (method, args, callback, static, scope)
{
    if (callback == undefined)
    {
        var _l6 = 0;
    } // end if
    if (static == undefined)
    {
        var _l7 = false;
    } // end if
    var _l3 = 0;
    if (_l6 != undefined && _l6 != 0)
    {
        _l3 = swInterface.addCallback(_l6, _l7, scope);
    } // end if
    var _l2 = 0;
    while (this.LCsend.send("localhost:" + swInterface.LCSWMX_receiver_name, method, _l3, args) == false)
    {
        if (_l2 > 4)
        {
            swDebug.trace("Fatal error: unable to send data to Screenweaver.");
            break;
        } // end if
        swDebug.trace("Error sending data to player. Retrying...");
        swInterface.setupConnections();
        _l2 = _l2 + 1;
    } // end while
    return (_l3);
};
ScreenweaverFlashInterface.prototype.callComMethod = function (method, args, callback, scope, static)
{
    if (!(args instanceof Object))
    {
        var _l1 = {e: "-"};
    } // end if
    if (static == undefined)
    {
        var _l2 = false;
    } // end if
    return (swInterface.callMethod(method, _l1, callback, _l2, scope));
};
ScreenweaverFlashInterface.prototype.callMethod_stack = function (method, args, callback, static, scope)
{
    var _l2 = function (method, args, callback, static, scope)
    {
        swInterface.callMethod(method, args, callback, static, scope);
        clearInterval(args.callee.intId);
    };
    setInterval(_l2, 100, scope, static, args, method, scope);
};
ScreenweaverFlashInterface.prototype.callMethod_CBID = function (method, args, callbackID)
{
    this.LCsend.send("localhost:" + swInterface.LCSWMX_receiver_name, method, callbackID, args);
};
ScreenweaverFlashInterface.prototype.setEventListener = function (event, callback)
{
    this.args = new Object();
    this.args.event = event;
    this.args.callbackID = swInterface.addCallback(callback, true);
    this.OnReturn = function (success)
    {
        if (success)
        {
            swDebug.apiTrace("W: " + swWindow.data.WindowId + " - Listener Set for Event: " + event);
        }
        else
        {
            swDebug.apiTrace("Failed setting listner for event: " + event);
        } // end if
    };
    swInterface.callMethod("setEventListener", success.args, success.OnReturn);
};
ScreenweaverFlashInterface.prototype.clearEventListener = function (event)
{
    this.args = new Object();
    this.args.event = event;
    this.OnReturn = function (success, ID)
    {
        if (!success)
        {
            swDebug.apiTrace("Failed to clear event");
        } // end if
    };
    swInterface.callMethod("clearEventListener", success.args, success.OnReturn);
};
ScreenweaverFlashInterface.prototype.createBuffer = function (size)
{
    var _l1;
    for (i = 0; i <= size; i++)
    {
        _l1 = _l1 + " ";
    } // end of for
    return (_l1);
};
if (flash.external.ExternalInterface != undefined)
{
    ScreenweaverFlashInterface.prototype.fscommand = function (cmd, args)
    {
        flash.external.ExternalInterface.call("fscommand", cmd, args);
    };
}
else
{
    ScreenweaverFlashInterface.prototype.fscommand = function (cmd, args)
    {
        getURL("FSCommand:" add cmd, args);
    };
} // end if
if (_global.swInterface == undefined)
{
    _global.swInterface = new ScreenweaverFlashInterface();
    var so = SharedObject.getLocal("SW3_" + __sw3__WindowHandle);
    swInterface._init(__sw3__WindowHandle, so.data.a5, so.data.a4, so.data.a3, so.data.a2, so.data.a1, so.data.a0);
    for (var i in so.data)
    {
        delete so.data[i];
    } // end of for...in
} // end if
#endinitclip

// [Action in Frame 1]
Das ist sehr alte Skript.

Sollen wir helfen, op api für fp8 Version erkennen soll

Code:
#initclip 1
// Screenweaver API will know to Flash Player 8.0 Version //
var ScreenweaverEvents = "SW_Events";
var SW_Events = function () {
	this.AsBroadcaster = initialize;
	init();
};
var SW_Events = function () {
	// Prototypes //
	ScreenweaverEvents.prototype.init = "SW_INI";
	ScreenweaverEvents.prototype.onWindowGeneric = "SW_WINGEN";
	ScreenweaverEvents.prototype.onSystemGeneric = "SW_SYSGEN";
};
var SW_INI = function () {
	if (this.__initialized != undefined) {
		return (undefined);
	}
	swInterface.setEventListener("WindowGeneric", this.onWindowGeneric);
	swInterface.setEventListener("SystemGeneric", this.onSystemGeneric);
	this.__initialized = true;
};
var SW_WINGEN = function () {
	var _l3 = true;
	if (swEvents[args[0]] != undefined) {
		_l3 = swEvents[args[0]].apply(this, args) != undefined;
	}
	if (_l3) {
		swEvents.broadcastMessage.apply(swEvents, args);
	}
};
var SW_SYSGEN = function () {
	var _l3 = true;
	if (swEvents[args[0]] != undefined) {
		_l3 = swEvents[args[0]].apply(this, args) != undefined;
	}
	if (_l3) {
		swEvents.broadcastMessage.apply(swEvents, args);
	}
};
.................................
#endinitclip
Ich habe verbesserte Api.swf für Screenweaver mit Flash Player 8 Erkennung...

Danke daraus, Für Hilfe. Ich habe sichere Idee für Verbesserung mit SW API.swf

bye SnakeMedia