AIRAliases.js
上传用户:zaktkj
上传日期:2022-08-08
资源大小:5770k
文件大小:10k
源码类别:

JavaScript

开发平台:

JavaScript

  1. /* AIRAliases.js - Revision: 0.15 */
  2. // Copyright (c) 2007. Adobe Systems Incorporated.
  3. // All rights reserved.
  4. //
  5. // Redistribution and use in source and binary forms, with or without
  6. // modification, are permitted provided that the following conditions are met:
  7. //
  8. //   * Redistributions of source code must retain the above copyright notice,
  9. //     this list of conditions and the following disclaimer.
  10. //   * Redistributions in binary form must reproduce the above copyright notice,
  11. //     this list of conditions and the following disclaimer in the documentation
  12. //     and/or other materials provided with the distribution.
  13. //   * Neither the name of Adobe Systems Incorporated nor the names of its
  14. //     contributors may be used to endorse or promote products derived from this
  15. //     software without specific prior written permission.
  16. //
  17. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  18. // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  19. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  20. // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  21. // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  22. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  23. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  24. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  25. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  26. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  27. // POSSIBILITY OF SUCH DAMAGE.
  28. var air;
  29. if (window.runtime) 
  30. {
  31.     if (!air) air = {};
  32.     // functions
  33.     air.trace = window.runtime.trace;
  34.     air.navigateToURL = window.runtime.flash.net.navigateToURL;
  35.     air.sendToURL = window.runtime.flash.net.sendToURL;
  36.     // file
  37.     air.File = window.runtime.flash.filesystem.File;
  38.     air.FileStream = window.runtime.flash.filesystem.FileStream;
  39.     air.FileMode = window.runtime.flash.filesystem.FileMode;
  40.     // events
  41.     air.AsyncErrorEvent = window.runtime.flash.events.AsyncErrorEvent;
  42.     air.DataEvent = window.runtime.flash.events.DataEvent;
  43.     air.DRMAuthenticateEvent = window.runtime.flash.events.DRMAuthenticateEvent;
  44.     air.DRMStatusEvent = window.runtime.flash.events.DRMStatusEvent;
  45.     air.Event = window.runtime.flash.events.Event;
  46.     air.EventDispatcher = window.runtime.flash.events.EventDispatcher;
  47.     air.FileListEvent = window.runtime.flash.events.FileListEvent;
  48.     air.HTTPStatusEvent = window.runtime.flash.events.HTTPStatusEvent;
  49.     air.IOErrorEvent = window.runtime.flash.events.IOErrorEvent;
  50.     air.InvokeEvent = window.runtime.flash.events.InvokeEvent;
  51.     air.NetStatusEvent = window.runtime.flash.events.NetStatusEvent;
  52.     air.OutputProgressEvent = window.runtime.flash.events.OutputProgressEvent;
  53.     air.ProgressEvent = window.runtime.flash.events.ProgressEvent;
  54.     air.SecurityErrorEvent = window.runtime.flash.events.SecurityErrorEvent;
  55.     air.StatusEvent = window.runtime.flash.events.StatusEvent;
  56.     air.TimerEvent = window.runtime.flash.events.TimerEvent;
  57.     air.NativeDragEvent = window.runtime.flash.events.NativeDragEvent;
  58.     air.ActivityEvent = window.runtime.flash.events.ActivityEvent;
  59.     air.KeyboardEvent = window.runtime.flash.events.KeyboardEvent;    
  60.     air.MouseEvent = window.runtime.flash.events.MouseEvent;    
  61.     
  62.     // native window
  63.     air.NativeWindow = window.runtime.flash.display.NativeWindow;
  64.     air.NativeWindowDisplayState = window.runtime.flash.display.NativeWindowDisplayState;
  65.     air.NativeWindowInitOptions = window.runtime.flash.display.NativeWindowInitOptions;
  66.     air.NativeWindowSystemChrome = window.runtime.flash.display.NativeWindowSystemChrome;
  67.     air.NativeWindowResize = window.runtime.flash.display.NativeWindowResize;
  68.     air.NativeWindowType = window.runtime.flash.display.NativeWindowType;
  69.     air.NativeWindowBoundsEvent = window.runtime.flash.events.NativeWindowBoundsEvent;
  70.     air.NativeWindowDisplayStateEvent = window.runtime.flash.events.NativeWindowDisplayStateEvent;
  71.     // geom
  72.     air.Point = window.runtime.flash.geom.Point;
  73.     air.Rectangle = window.runtime.flash.geom.Rectangle;
  74.     air.Matrix = window.runtime.flash.geom.Matrix;
  75.     // net
  76.     air.FileFilter = window.runtime.flash.net.FileFilter;
  77.     
  78.     air.LocalConnection = window.runtime.flash.net.LocalConnection;
  79.     air.NetConnection = window.runtime.flash.net.NetConnection;
  80.     air.URLLoader = window.runtime.flash.net.URLLoader;
  81.     air.URLLoaderDataFormat = window.runtime.flash.net.URLLoaderDataFormat;
  82.     air.URLRequest = window.runtime.flash.net.URLRequest;
  83.     air.URLRequestDefaults = window.runtime.flash.net.URLRequestDefaults;
  84.     air.URLRequestHeader = window.runtime.flash.net.URLRequestHeader;
  85.     air.URLRequestMethod = window.runtime.flash.net.URLRequestMethod;
  86.     air.URLStream = window.runtime.flash.net.URLStream;
  87.     air.URLVariables = window.runtime.flash.net.URLVariables;
  88.     air.Socket = window.runtime.flash.net.Socket;
  89.     air.XMLSocket = window.runtime.flash.net.XMLSocket;
  90.     air.Responder = window.runtime.flash.net.Responder;
  91.     air.ObjectEncoding = window.runtime.flash.net.ObjectEncoding;
  92.     air.NetStream = window.runtime.flash.net.NetStream;
  93.     air.SharedObject = window.runtime.flash.net.SharedObject;
  94.     air.SharedObjectFlushStatus = window.runtime.flash.net.SharedObjectFlushStatus;
  95.     // system
  96.     air.Capabilities = window.runtime.flash.system.Capabilities;
  97.     air.System = window.runtime.flash.system.System;
  98.     air.Security = window.runtime.flash.system.Security;
  99.     air.Updater = window.runtime.flash.desktop.Updater;
  100.     air.LoaderContext = window.runtime.flash.system.LoaderContext;
  101.     air.ApplicationDomain = window.runtime.flash.system.ApplicationDomain;
  102.     // desktop
  103.     air.Clipboard = window.runtime.flash.desktop.Clipboard;
  104.     air.ClipboardFormats = window.runtime.flash.desktop.ClipboardFormats;
  105.     air.ClipboardTransferMode = window.runtime.flash.desktop.ClipboardTransferMode;
  106.     air.NativeDragManager = window.runtime.flash.desktop.NativeDragManager;
  107.     air.NativeDragOptions = window.runtime.flash.desktop.NativeDragOptions;
  108.     air.NativeDragActions = window.runtime.flash.desktop.NativeDragActions;
  109.     air.Icon = window.runtime.flash.desktop.Icon;
  110.     air.DockIcon = window.runtime.flash.desktop.DockIcon;
  111.     air.InteractiveIcon = window.runtime.flash.desktop.InteractiveIcon;
  112.     air.NotificationType = window.runtime.flash.desktop.NotificationType;
  113.     air.SystemTrayIcon = window.runtime.flash.desktop.SystemTrayIcon;
  114.     air.NativeApplication = window.runtime.flash.desktop.NativeApplication;
  115.     // display
  116.     air.NativeMenu = window.runtime.flash.display.NativeMenu;
  117.     air.NativeMenuItem = window.runtime.flash.display.NativeMenuItem;
  118.     air.Screen = window.runtime.flash.display.Screen;
  119.     
  120.     air.Loader  = window.runtime.flash.display.Loader;
  121.     air.Bitmap = window.runtime.flash.display.Bitmap;
  122.     air.BitmapData = window.runtime.flash.display.BitmapData;
  123.     // ui
  124.     air.Keyboard = window.runtime.flash.ui.Keyboard;
  125.     air.KeyEquivalent = window.runtime.flash.ui.KeyEquivalent;
  126.     air.Mouse = window.runtime.flash.ui.Mouse;
  127.     // utils
  128.     air.ByteArray = window.runtime.flash.utils.ByteArray;
  129.     air.CompressionAlgorithm = window.runtime.flash.utils.CompressionAlgorithm;
  130.     air.Endian = window.runtime.flash.utils.Endian;
  131.     air.Timer = window.runtime.flash.utils.Timer;
  132.     air.XMLSignatureValidator = window.runtime.flash.security.XMLSignatureValidator;
  133.     air.HTMLLoader = window.runtime.flash.html.HTMLLoader;    
  134.     // media
  135.     air.ID3Info = window.runtime.flash.media.ID3Info;
  136.     air.Sound = window.runtime.flash.media.Sound;
  137.     air.SoundChannel = window.runtime.flash.media.SoundChannel;
  138.     air.SoundLoaderContext = window.runtime.flash.media.SoundLoaderContext;
  139.     air.SoundMixer = window.runtime.flash.media.SoundMixer;
  140.     air.SoundTransform = window.runtime.flash.media.SoundTransform;
  141.     air.Microphone = window.runtime.flash.media.Microphone;
  142.     air.Video = window.runtime.flash.media.Video;
  143.     air.Camera = window.runtime.flash.media.Camera;
  144.     // data
  145.     air.EncryptedLocalStore = window.runtime.flash.data.EncryptedLocalStore;
  146.     air.SQLCollationType = window.runtime.flash.data.SQLCollationType;
  147.     air.SQLColumnNameStyle = window.runtime.flash.data.SQLColumnNameStyle;
  148.     air.SQLColumnSchema = window.runtime.flash.data.SQLColumnSchema;
  149.     air.SQLConnection = window.runtime.flash.data.SQLConnection;
  150.     air.SQLError = window.runtime.flash.errors.SQLError;
  151.     air.SQLErrorEvent = window.runtime.flash.events.SQLErrorEvent;
  152.     air.SQLErrorOperation = window.runtime.flash.errors.SQLErrorOperation;
  153.     air.SQLEvent = window.runtime.flash.events.SQLEvent;
  154.     air.SQLIndexSchema = window.runtime.flash.data.SQLIndexSchema;
  155.     air.SQLMode = window.runtime.flash.data.SQLMode;
  156.     air.SQLResult = window.runtime.flash.data.SQLResult;
  157.     air.SQLSchema = window.runtime.flash.data.SQLSchema;
  158.     air.SQLSchemaResult = window.runtime.flash.data.SQLSchemaResult;
  159.     air.SQLStatement = window.runtime.flash.data.SQLStatement;
  160.     air.SQLTableSchema = window.runtime.flash.data.SQLTableSchema;
  161.     air.SQLTransactionLockType = window.runtime.flash.data.SQLTransactionLockType;
  162.     air.SQLTriggerSchema = window.runtime.flash.data.SQLTriggerSchema;
  163.     air.SQLUpdateEvent = window.runtime.flash.events.SQLUpdateEvent;
  164.     air.SQLViewSchema = window.runtime.flash.data.SQLViewSchema;
  165.     // service monitoring framework
  166.     air.__defineGetter__("ServiceMonitor", function() { return window.runtime.air.net.ServiceMonitor; })
  167.     air.__defineGetter__("SocketMonitor", function() { return window.runtime.air.net.SocketMonitor; })
  168.     air.__defineGetter__("URLMonitor", function() { return window.runtime.air.net.URLMonitor; })
  169. }