@afterswf/playerglobal 0.0.0-stage → 0.2.460
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +101 -0
- package/.gitattributes +1 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +29 -0
- package/.prettierrc +8 -0
- package/LICENSE +201 -0
- package/README.md +1 -3
- package/bundle/awayfl-playerglobal.umd.js +2 -0
- package/bundle/awayfl-playerglobal.umd.js.map +1 -0
- package/copyVersionToIndex.js +24 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/lib/ILoader.d.ts +10 -0
- package/dist/lib/ILoader.d.ts.map +1 -0
- package/dist/lib/ILoader.js +1 -0
- package/dist/lib/PlayerGlobal.d.ts +28 -0
- package/dist/lib/PlayerGlobal.d.ts.map +1 -0
- package/dist/lib/PlayerGlobal.js +223 -0
- package/dist/lib/SecurityDomain.d.ts +195 -0
- package/dist/lib/SecurityDomain.d.ts.map +1 -0
- package/dist/lib/SecurityDomain.js +205 -0
- package/dist/lib/Settings.d.ts +5 -0
- package/dist/lib/Settings.d.ts.map +1 -0
- package/dist/lib/Settings.js +7 -0
- package/dist/lib/desktop/Clipboard.d.ts +251 -0
- package/dist/lib/desktop/Clipboard.d.ts.map +1 -0
- package/dist/lib/desktop/Clipboard.js +289 -0
- package/dist/lib/desktop/ClipboardFormats.d.ts +43 -0
- package/dist/lib/desktop/ClipboardFormats.d.ts.map +1 -0
- package/dist/lib/desktop/ClipboardFormats.js +45 -0
- package/dist/lib/display/Bitmap.d.ts +91 -0
- package/dist/lib/display/Bitmap.d.ts.map +1 -0
- package/dist/lib/display/Bitmap.js +168 -0
- package/dist/lib/display/BitmapData.d.ts +63 -0
- package/dist/lib/display/BitmapData.d.ts.map +1 -0
- package/dist/lib/display/BitmapData.js +315 -0
- package/dist/lib/display/BitmapDataChannel.d.ts +12 -0
- package/dist/lib/display/BitmapDataChannel.d.ts.map +1 -0
- package/dist/lib/display/BitmapDataChannel.js +21 -0
- package/dist/lib/display/DisplayObject.d.ts +986 -0
- package/dist/lib/display/DisplayObject.d.ts.map +1 -0
- package/dist/lib/display/DisplayObject.js +1553 -0
- package/dist/lib/display/DisplayObjectContainer.d.ts +327 -0
- package/dist/lib/display/DisplayObjectContainer.d.ts.map +1 -0
- package/dist/lib/display/DisplayObjectContainer.js +599 -0
- package/dist/lib/display/FrameLabel.d.ts +11 -0
- package/dist/lib/display/FrameLabel.d.ts.map +1 -0
- package/dist/lib/display/FrameLabel.js +34 -0
- package/dist/lib/display/Graphics.d.ts +94 -0
- package/dist/lib/display/Graphics.d.ts.map +1 -0
- package/dist/lib/display/Graphics.js +473 -0
- package/dist/lib/display/GraphicsBitmapFill.d.ts +13 -0
- package/dist/lib/display/GraphicsBitmapFill.d.ts.map +1 -0
- package/dist/lib/display/GraphicsBitmapFill.js +36 -0
- package/dist/lib/display/GraphicsEndFill.d.ts +7 -0
- package/dist/lib/display/GraphicsEndFill.d.ts.map +1 -0
- package/dist/lib/display/GraphicsEndFill.js +11 -0
- package/dist/lib/display/GraphicsGradientFill.d.ts +16 -0
- package/dist/lib/display/GraphicsGradientFill.d.ts.map +1 -0
- package/dist/lib/display/GraphicsGradientFill.js +28 -0
- package/dist/lib/display/GraphicsPath.d.ts +22 -0
- package/dist/lib/display/GraphicsPath.d.ts.map +1 -0
- package/dist/lib/display/GraphicsPath.js +63 -0
- package/dist/lib/display/GraphicsSolidFill.d.ts +9 -0
- package/dist/lib/display/GraphicsSolidFill.d.ts.map +1 -0
- package/dist/lib/display/GraphicsSolidFill.js +16 -0
- package/dist/lib/display/GraphicsStroke.d.ts +14 -0
- package/dist/lib/display/GraphicsStroke.d.ts.map +1 -0
- package/dist/lib/display/GraphicsStroke.js +26 -0
- package/dist/lib/display/GraphicsTrianglePath.d.ts +11 -0
- package/dist/lib/display/GraphicsTrianglePath.d.ts.map +1 -0
- package/dist/lib/display/GraphicsTrianglePath.js +20 -0
- package/dist/lib/display/IBitmapDataOwner.d.ts +6 -0
- package/dist/lib/display/IBitmapDataOwner.d.ts.map +1 -0
- package/dist/lib/display/IBitmapDataOwner.js +1 -0
- package/dist/lib/display/IBitmapDrawable.d.ts +10 -0
- package/dist/lib/display/IBitmapDrawable.d.ts.map +1 -0
- package/dist/lib/display/IBitmapDrawable.js +1 -0
- package/dist/lib/display/IGraphicsData.d.ts +13 -0
- package/dist/lib/display/IGraphicsData.d.ts.map +1 -0
- package/dist/lib/display/IGraphicsData.js +1 -0
- package/dist/lib/display/IVirtualSceneGraphItem.d.ts +9 -0
- package/dist/lib/display/IVirtualSceneGraphItem.d.ts.map +1 -0
- package/dist/lib/display/IVirtualSceneGraphItem.js +1 -0
- package/dist/lib/display/InteractiveObject.d.ts +502 -0
- package/dist/lib/display/InteractiveObject.d.ts.map +1 -0
- package/dist/lib/display/InteractiveObject.js +927 -0
- package/dist/lib/display/Loader.d.ts +492 -0
- package/dist/lib/display/Loader.d.ts.map +1 -0
- package/dist/lib/display/Loader.js +704 -0
- package/dist/lib/display/LoaderInfo.d.ts +480 -0
- package/dist/lib/display/LoaderInfo.d.ts.map +1 -0
- package/dist/lib/display/LoaderInfo.js +765 -0
- package/dist/lib/display/MovieClip.d.ts +201 -0
- package/dist/lib/display/MovieClip.d.ts.map +1 -0
- package/dist/lib/display/MovieClip.js +540 -0
- package/dist/lib/display/NativeMenu.d.ts +8 -0
- package/dist/lib/display/NativeMenu.d.ts.map +1 -0
- package/dist/lib/display/NativeMenu.js +13 -0
- package/dist/lib/display/NativeMenuItem.d.ts +11 -0
- package/dist/lib/display/NativeMenuItem.d.ts.map +1 -0
- package/dist/lib/display/NativeMenuItem.js +35 -0
- package/dist/lib/display/Scene.d.ts +23 -0
- package/dist/lib/display/Scene.d.ts.map +1 -0
- package/dist/lib/display/Scene.js +70 -0
- package/dist/lib/display/Shape.d.ts +38 -0
- package/dist/lib/display/Shape.d.ts.map +1 -0
- package/dist/lib/display/Shape.js +80 -0
- package/dist/lib/display/SimpleButton.d.ts +175 -0
- package/dist/lib/display/SimpleButton.d.ts.map +1 -0
- package/dist/lib/display/SimpleButton.js +522 -0
- package/dist/lib/display/Sprite.d.ts +204 -0
- package/dist/lib/display/Sprite.d.ts.map +1 -0
- package/dist/lib/display/Sprite.js +671 -0
- package/dist/lib/display/Stage.d.ts +723 -0
- package/dist/lib/display/Stage.d.ts.map +1 -0
- package/dist/lib/display/Stage.js +1298 -0
- package/dist/lib/errors/EOFError.d.ts +8 -0
- package/dist/lib/errors/EOFError.d.ts.map +1 -0
- package/dist/lib/errors/EOFError.js +18 -0
- package/dist/lib/errors/IOError.d.ts +8 -0
- package/dist/lib/errors/IOError.d.ts.map +1 -0
- package/dist/lib/errors/IOError.js +18 -0
- package/dist/lib/errors/IllegalOperationError.d.ts +8 -0
- package/dist/lib/errors/IllegalOperationError.d.ts.map +1 -0
- package/dist/lib/errors/IllegalOperationError.js +18 -0
- package/dist/lib/errors/InvalidSWFError.d.ts +8 -0
- package/dist/lib/errors/InvalidSWFError.d.ts.map +1 -0
- package/dist/lib/errors/InvalidSWFError.js +18 -0
- package/dist/lib/errors/MemoryError.d.ts +8 -0
- package/dist/lib/errors/MemoryError.d.ts.map +1 -0
- package/dist/lib/errors/MemoryError.js +18 -0
- package/dist/lib/errors/ScriptTimeoutError.d.ts +8 -0
- package/dist/lib/errors/ScriptTimeoutError.d.ts.map +1 -0
- package/dist/lib/errors/ScriptTimeoutError.js +18 -0
- package/dist/lib/errors/StackOverflowError.d.ts +8 -0
- package/dist/lib/errors/StackOverflowError.d.ts.map +1 -0
- package/dist/lib/errors/StackOverflowError.js +18 -0
- package/dist/lib/events/AccelerometerEvent.d.ts +13 -0
- package/dist/lib/events/AccelerometerEvent.d.ts.map +1 -0
- package/dist/lib/events/AccelerometerEvent.js +26 -0
- package/dist/lib/events/ActivityEvent.d.ts +10 -0
- package/dist/lib/events/ActivityEvent.d.ts.map +1 -0
- package/dist/lib/events/ActivityEvent.js +20 -0
- package/dist/lib/events/AsyncErrorEvent.d.ts +13 -0
- package/dist/lib/events/AsyncErrorEvent.d.ts.map +1 -0
- package/dist/lib/events/AsyncErrorEvent.js +31 -0
- package/dist/lib/events/ContextMenuEvent.d.ts +13 -0
- package/dist/lib/events/ContextMenuEvent.d.ts.map +1 -0
- package/dist/lib/events/ContextMenuEvent.js +24 -0
- package/dist/lib/events/DataEvent.d.ts +10 -0
- package/dist/lib/events/DataEvent.d.ts.map +1 -0
- package/dist/lib/events/DataEvent.js +19 -0
- package/dist/lib/events/ErrorEvent.d.ts +30 -0
- package/dist/lib/events/ErrorEvent.d.ts.map +1 -0
- package/dist/lib/events/ErrorEvent.js +53 -0
- package/dist/lib/events/Event.d.ts +87 -0
- package/dist/lib/events/Event.d.ts.map +1 -0
- package/dist/lib/events/Event.js +213 -0
- package/dist/lib/events/EventDispatcher.d.ts +57 -0
- package/dist/lib/events/EventDispatcher.d.ts.map +1 -0
- package/dist/lib/events/EventDispatcher.js +233 -0
- package/dist/lib/events/EventDispatcherBase.d.ts +61 -0
- package/dist/lib/events/EventDispatcherBase.d.ts.map +1 -0
- package/dist/lib/events/EventDispatcherBase.js +258 -0
- package/dist/lib/events/EventPhase.d.ts +26 -0
- package/dist/lib/events/EventPhase.d.ts.map +1 -0
- package/dist/lib/events/EventPhase.js +33 -0
- package/dist/lib/events/FocusEvent.d.ts +50 -0
- package/dist/lib/events/FocusEvent.d.ts.map +1 -0
- package/dist/lib/events/FocusEvent.js +102 -0
- package/dist/lib/events/FullScreenEvent.d.ts +12 -0
- package/dist/lib/events/FullScreenEvent.d.ts.map +1 -0
- package/dist/lib/events/FullScreenEvent.js +23 -0
- package/dist/lib/events/GameInputEvent.d.ts +27 -0
- package/dist/lib/events/GameInputEvent.d.ts.map +1 -0
- package/dist/lib/events/GameInputEvent.js +38 -0
- package/dist/lib/events/GeolocationEvent.d.ts +9 -0
- package/dist/lib/events/GeolocationEvent.d.ts.map +1 -0
- package/dist/lib/events/GeolocationEvent.js +25 -0
- package/dist/lib/events/GestureEvent.d.ts +33 -0
- package/dist/lib/events/GestureEvent.d.ts.map +1 -0
- package/dist/lib/events/GestureEvent.js +121 -0
- package/dist/lib/events/GesturePhase.d.ts +12 -0
- package/dist/lib/events/GesturePhase.d.ts.map +1 -0
- package/dist/lib/events/GesturePhase.js +18 -0
- package/dist/lib/events/HTTPStatusEvent.d.ts +40 -0
- package/dist/lib/events/HTTPStatusEvent.d.ts.map +1 -0
- package/dist/lib/events/HTTPStatusEvent.js +88 -0
- package/dist/lib/events/IEventMapper.d.ts +7 -0
- package/dist/lib/events/IEventMapper.d.ts.map +1 -0
- package/dist/lib/events/IEventMapper.js +1 -0
- package/dist/lib/events/IMEEvent.d.ts +11 -0
- package/dist/lib/events/IMEEvent.d.ts.map +1 -0
- package/dist/lib/events/IMEEvent.js +23 -0
- package/dist/lib/events/IOErrorEvent.d.ts +30 -0
- package/dist/lib/events/IOErrorEvent.d.ts.map +1 -0
- package/dist/lib/events/IOErrorEvent.js +46 -0
- package/dist/lib/events/KeyboardEvent.d.ts +46 -0
- package/dist/lib/events/KeyboardEvent.d.ts.map +1 -0
- package/dist/lib/events/KeyboardEvent.js +115 -0
- package/dist/lib/events/MouseEvent.d.ts +88 -0
- package/dist/lib/events/MouseEvent.d.ts.map +1 -0
- package/dist/lib/events/MouseEvent.js +267 -0
- package/dist/lib/events/NetDataEvent.d.ts +12 -0
- package/dist/lib/events/NetDataEvent.d.ts.map +1 -0
- package/dist/lib/events/NetDataEvent.js +22 -0
- package/dist/lib/events/NetStatusEvent.d.ts +29 -0
- package/dist/lib/events/NetStatusEvent.d.ts.map +1 -0
- package/dist/lib/events/NetStatusEvent.js +52 -0
- package/dist/lib/events/OutputProgressEvent.d.ts +11 -0
- package/dist/lib/events/OutputProgressEvent.d.ts.map +1 -0
- package/dist/lib/events/OutputProgressEvent.js +22 -0
- package/dist/lib/events/PressAndTapGestureEvent.d.ts +11 -0
- package/dist/lib/events/PressAndTapGestureEvent.d.ts.map +1 -0
- package/dist/lib/events/PressAndTapGestureEvent.js +28 -0
- package/dist/lib/events/ProgressEvent.d.ts +33 -0
- package/dist/lib/events/ProgressEvent.d.ts.map +1 -0
- package/dist/lib/events/ProgressEvent.js +65 -0
- package/dist/lib/events/SampleDataEvent.d.ts +108 -0
- package/dist/lib/events/SampleDataEvent.d.ts.map +1 -0
- package/dist/lib/events/SampleDataEvent.js +140 -0
- package/dist/lib/events/ShaderEvent.d.ts +11 -0
- package/dist/lib/events/ShaderEvent.d.ts.map +1 -0
- package/dist/lib/events/ShaderEvent.js +20 -0
- package/dist/lib/events/SoftKeyboardEvent.d.ts +12 -0
- package/dist/lib/events/SoftKeyboardEvent.d.ts.map +1 -0
- package/dist/lib/events/SoftKeyboardEvent.js +17 -0
- package/dist/lib/events/SoftKeyboardTrigger.d.ts +10 -0
- package/dist/lib/events/SoftKeyboardTrigger.d.ts.map +1 -0
- package/dist/lib/events/SoftKeyboardTrigger.js +16 -0
- package/dist/lib/events/StageVideoAvailabilityEvent.d.ts +10 -0
- package/dist/lib/events/StageVideoAvailabilityEvent.d.ts.map +1 -0
- package/dist/lib/events/StageVideoAvailabilityEvent.js +21 -0
- package/dist/lib/events/StageVideoEvent.d.ts +14 -0
- package/dist/lib/events/StageVideoEvent.d.ts.map +1 -0
- package/dist/lib/events/StageVideoEvent.js +26 -0
- package/dist/lib/events/StaticEvents.d.ts +4 -0
- package/dist/lib/events/StaticEvents.d.ts.map +1 -0
- package/dist/lib/events/StaticEvents.js +7 -0
- package/dist/lib/events/StatusEvent.d.ts +15 -0
- package/dist/lib/events/StatusEvent.d.ts.map +1 -0
- package/dist/lib/events/StatusEvent.js +46 -0
- package/dist/lib/events/SyncEvent.d.ts +10 -0
- package/dist/lib/events/SyncEvent.d.ts.map +1 -0
- package/dist/lib/events/SyncEvent.js +21 -0
- package/dist/lib/events/TextEvent.d.ts +31 -0
- package/dist/lib/events/TextEvent.d.ts.map +1 -0
- package/dist/lib/events/TextEvent.js +55 -0
- package/dist/lib/events/ThrottleEvent.d.ts +11 -0
- package/dist/lib/events/ThrottleEvent.d.ts.map +1 -0
- package/dist/lib/events/ThrottleEvent.js +23 -0
- package/dist/lib/events/ThrottleType.d.ts +11 -0
- package/dist/lib/events/ThrottleType.d.ts.map +1 -0
- package/dist/lib/events/ThrottleType.js +17 -0
- package/dist/lib/events/TimerEvent.d.ts +13 -0
- package/dist/lib/events/TimerEvent.d.ts.map +1 -0
- package/dist/lib/events/TimerEvent.js +26 -0
- package/dist/lib/events/TouchEvent.d.ts +430 -0
- package/dist/lib/events/TouchEvent.d.ts.map +1 -0
- package/dist/lib/events/TouchEvent.js +550 -0
- package/dist/lib/events/TransformGestureEvent.d.ts +12 -0
- package/dist/lib/events/TransformGestureEvent.d.ts.map +1 -0
- package/dist/lib/events/TransformGestureEvent.js +31 -0
- package/dist/lib/events/UncaughtErrorEvent.d.ts +9 -0
- package/dist/lib/events/UncaughtErrorEvent.d.ts.map +1 -0
- package/dist/lib/events/UncaughtErrorEvent.js +19 -0
- package/dist/lib/events/UncaughtErrorEvents.d.ts +23 -0
- package/dist/lib/events/UncaughtErrorEvents.d.ts.map +1 -0
- package/dist/lib/events/UncaughtErrorEvents.js +29 -0
- package/dist/lib/events/VideoEvent.d.ts +13 -0
- package/dist/lib/events/VideoEvent.d.ts.map +1 -0
- package/dist/lib/events/VideoEvent.js +24 -0
- package/dist/lib/external/ExternalInterface.d.ts +27 -0
- package/dist/lib/external/ExternalInterface.d.ts.map +1 -0
- package/dist/lib/external/ExternalInterface.js +298 -0
- package/dist/lib/factories/FlashSceneGraphFactory.d.ts +33 -0
- package/dist/lib/factories/FlashSceneGraphFactory.d.ts.map +1 -0
- package/dist/lib/factories/FlashSceneGraphFactory.js +175 -0
- package/dist/lib/filters/BevelFilter.d.ts +66 -0
- package/dist/lib/filters/BevelFilter.d.ts.map +1 -0
- package/dist/lib/filters/BevelFilter.js +207 -0
- package/dist/lib/filters/BitmapFilter.d.ts +27 -0
- package/dist/lib/filters/BitmapFilter.d.ts.map +1 -0
- package/dist/lib/filters/BitmapFilter.js +116 -0
- package/dist/lib/filters/BitmapFilterType.d.ts +26 -0
- package/dist/lib/filters/BitmapFilterType.d.ts.map +1 -0
- package/dist/lib/filters/BitmapFilterType.js +36 -0
- package/dist/lib/filters/BlurFilter.d.ts +23 -0
- package/dist/lib/filters/BlurFilter.d.ts.map +1 -0
- package/dist/lib/filters/BlurFilter.js +64 -0
- package/dist/lib/filters/ColorMatrixFilter.d.ts +39 -0
- package/dist/lib/filters/ColorMatrixFilter.d.ts.map +1 -0
- package/dist/lib/filters/ColorMatrixFilter.js +69 -0
- package/dist/lib/filters/ConvolutionFilter.d.ts +54 -0
- package/dist/lib/filters/ConvolutionFilter.d.ts.map +1 -0
- package/dist/lib/filters/ConvolutionFilter.js +180 -0
- package/dist/lib/filters/DisplacementMapFilter.d.ts +57 -0
- package/dist/lib/filters/DisplacementMapFilter.d.ts.map +1 -0
- package/dist/lib/filters/DisplacementMapFilter.js +159 -0
- package/dist/lib/filters/DropShadowFilter.d.ts +63 -0
- package/dist/lib/filters/DropShadowFilter.d.ts.map +1 -0
- package/dist/lib/filters/DropShadowFilter.js +185 -0
- package/dist/lib/filters/FilterBuilder.d.ts +6 -0
- package/dist/lib/filters/FilterBuilder.d.ts.map +1 -0
- package/dist/lib/filters/FilterBuilder.js +33 -0
- package/dist/lib/filters/GlowFilter.d.ts +53 -0
- package/dist/lib/filters/GlowFilter.d.ts.map +1 -0
- package/dist/lib/filters/GlowFilter.js +145 -0
- package/dist/lib/filters/GradientBevelFilter.d.ts +68 -0
- package/dist/lib/filters/GradientBevelFilter.d.ts.map +1 -0
- package/dist/lib/filters/GradientBevelFilter.js +228 -0
- package/dist/lib/filters/GradientGlowFilter.d.ts +59 -0
- package/dist/lib/filters/GradientGlowFilter.d.ts.map +1 -0
- package/dist/lib/filters/GradientGlowFilter.js +223 -0
- package/dist/lib/geom/ColorTransform.d.ts +91 -0
- package/dist/lib/geom/ColorTransform.d.ts.map +1 -0
- package/dist/lib/geom/ColorTransform.js +259 -0
- package/dist/lib/geom/Matrix.d.ts +288 -0
- package/dist/lib/geom/Matrix.d.ts.map +1 -0
- package/dist/lib/geom/Matrix.js +414 -0
- package/dist/lib/geom/Matrix3D.d.ts +45 -0
- package/dist/lib/geom/Matrix3D.d.ts.map +1 -0
- package/dist/lib/geom/Matrix3D.js +213 -0
- package/dist/lib/geom/PerspectiveProjection.d.ts +2 -0
- package/dist/lib/geom/PerspectiveProjection.d.ts.map +1 -0
- package/dist/lib/geom/PerspectiveProjection.js +1 -0
- package/dist/lib/geom/Point.d.ts +123 -0
- package/dist/lib/geom/Point.d.ts.map +1 -0
- package/dist/lib/geom/Point.js +196 -0
- package/dist/lib/geom/Rectangle.d.ts +310 -0
- package/dist/lib/geom/Rectangle.d.ts.map +1 -0
- package/dist/lib/geom/Rectangle.js +478 -0
- package/dist/lib/geom/Transform.d.ts +42 -0
- package/dist/lib/geom/Transform.d.ts.map +1 -0
- package/dist/lib/geom/Transform.js +112 -0
- package/dist/lib/geom/Vector3D.d.ts +324 -0
- package/dist/lib/geom/Vector3D.d.ts.map +1 -0
- package/dist/lib/geom/Vector3D.js +434 -0
- package/dist/lib/globalization/LocaleID.d.ts +38 -0
- package/dist/lib/globalization/LocaleID.d.ts.map +1 -0
- package/dist/lib/globalization/LocaleID.js +92 -0
- package/dist/lib/globalization/NumberFormatter.d.ts +391 -0
- package/dist/lib/globalization/NumberFormatter.d.ts.map +1 -0
- package/dist/lib/globalization/NumberFormatter.js +555 -0
- package/dist/lib/link.d.ts +2 -0
- package/dist/lib/link.d.ts.map +1 -0
- package/dist/lib/link.js +619 -0
- package/dist/lib/media/ID3Info.d.ts +60 -0
- package/dist/lib/media/ID3Info.d.ts.map +1 -0
- package/dist/lib/media/ID3Info.js +13 -0
- package/dist/lib/media/Sound.d.ts +353 -0
- package/dist/lib/media/Sound.d.ts.map +1 -0
- package/dist/lib/media/Sound.js +496 -0
- package/dist/lib/media/SoundChannel.d.ts +65 -0
- package/dist/lib/media/SoundChannel.d.ts.map +1 -0
- package/dist/lib/media/SoundChannel.js +152 -0
- package/dist/lib/media/SoundLoaderContext.d.ts +99 -0
- package/dist/lib/media/SoundLoaderContext.d.ts.map +1 -0
- package/dist/lib/media/SoundLoaderContext.js +21 -0
- package/dist/lib/media/SoundMixer.d.ts +49 -0
- package/dist/lib/media/SoundMixer.d.ts.map +1 -0
- package/dist/lib/media/SoundMixer.js +126 -0
- package/dist/lib/media/SoundTransform.d.ts +64 -0
- package/dist/lib/media/SoundTransform.d.ts.map +1 -0
- package/dist/lib/media/SoundTransform.js +146 -0
- package/dist/lib/net/FileFilter.d.ts +13 -0
- package/dist/lib/net/FileFilter.d.ts.map +1 -0
- package/dist/lib/net/FileFilter.js +40 -0
- package/dist/lib/net/FileReference.d.ts +49 -0
- package/dist/lib/net/FileReference.d.ts.map +1 -0
- package/dist/lib/net/FileReference.js +271 -0
- package/dist/lib/net/LocalConnection.d.ts +26 -0
- package/dist/lib/net/LocalConnection.d.ts.map +1 -0
- package/dist/lib/net/LocalConnection.js +251 -0
- package/dist/lib/net/NetConnection.d.ts +80 -0
- package/dist/lib/net/NetConnection.d.ts.map +1 -0
- package/dist/lib/net/NetConnection.js +447 -0
- package/dist/lib/net/Responder.d.ts +30 -0
- package/dist/lib/net/Responder.d.ts.map +1 -0
- package/dist/lib/net/Responder.js +49 -0
- package/dist/lib/net/SharedObject.d.ts +66 -0
- package/dist/lib/net/SharedObject.d.ts.map +1 -0
- package/dist/lib/net/SharedObject.js +323 -0
- package/dist/lib/net/Socket.d.ts +66 -0
- package/dist/lib/net/Socket.d.ts.map +1 -0
- package/dist/lib/net/Socket.js +248 -0
- package/dist/lib/net/URLLoader.d.ts +26 -0
- package/dist/lib/net/URLLoader.d.ts.map +1 -0
- package/dist/lib/net/URLLoader.js +116 -0
- package/dist/lib/net/URLLoaderDataFormat.d.ts +2 -0
- package/dist/lib/net/URLLoaderDataFormat.d.ts.map +1 -0
- package/dist/lib/net/URLLoaderDataFormat.js +1 -0
- package/dist/lib/net/URLRequest.d.ts +43 -0
- package/dist/lib/net/URLRequest.d.ts.map +1 -0
- package/dist/lib/net/URLRequest.js +141 -0
- package/dist/lib/net/URLVariables.d.ts +12 -0
- package/dist/lib/net/URLVariables.d.ts.map +1 -0
- package/dist/lib/net/URLVariables.js +67 -0
- package/dist/lib/system/ApplicationDomain.d.ts +104 -0
- package/dist/lib/system/ApplicationDomain.d.ts.map +1 -0
- package/dist/lib/system/ApplicationDomain.js +269 -0
- package/dist/lib/system/Capabilities.d.ts +58 -0
- package/dist/lib/system/Capabilities.d.ts.map +1 -0
- package/dist/lib/system/Capabilities.js +361 -0
- package/dist/lib/system/FSCommand.d.ts +5 -0
- package/dist/lib/system/FSCommand.d.ts.map +1 -0
- package/dist/lib/system/FSCommand.js +14 -0
- package/dist/lib/system/IME.d.ts +125 -0
- package/dist/lib/system/IME.d.ts.map +1 -0
- package/dist/lib/system/IME.js +163 -0
- package/dist/lib/system/LoaderContext.d.ts +421 -0
- package/dist/lib/system/LoaderContext.d.ts.map +1 -0
- package/dist/lib/system/LoaderContext.js +62 -0
- package/dist/lib/system/Security.d.ts +45 -0
- package/dist/lib/system/Security.d.ts.map +1 -0
- package/dist/lib/system/Security.js +107 -0
- package/dist/lib/system/SecurityDomain.d.ts +5 -0
- package/dist/lib/system/SecurityDomain.d.ts.map +1 -0
- package/dist/lib/system/SecurityDomain.js +18 -0
- package/dist/lib/system/System.d.ts +150 -0
- package/dist/lib/system/System.d.ts.map +1 -0
- package/dist/lib/system/System.js +238 -0
- package/dist/lib/system/TouchscreenType.d.ts +26 -0
- package/dist/lib/system/TouchscreenType.d.ts.map +1 -0
- package/dist/lib/system/TouchscreenType.js +35 -0
- package/dist/lib/text/CSMSettings.d.ts +11 -0
- package/dist/lib/text/CSMSettings.d.ts.map +1 -0
- package/dist/lib/text/CSMSettings.js +20 -0
- package/dist/lib/text/Font.d.ts +18 -0
- package/dist/lib/text/Font.d.ts.map +1 -0
- package/dist/lib/text/Font.js +70 -0
- package/dist/lib/text/FontType.d.ts +11 -0
- package/dist/lib/text/FontType.d.ts.map +1 -0
- package/dist/lib/text/FontType.js +17 -0
- package/dist/lib/text/StaticText.d.ts +13 -0
- package/dist/lib/text/StaticText.d.ts.map +1 -0
- package/dist/lib/text/StaticText.js +41 -0
- package/dist/lib/text/StyleSheet.d.ts +168 -0
- package/dist/lib/text/StyleSheet.d.ts.map +1 -0
- package/dist/lib/text/StyleSheet.js +198 -0
- package/dist/lib/text/TextColorType.d.ts +10 -0
- package/dist/lib/text/TextColorType.d.ts.map +1 -0
- package/dist/lib/text/TextColorType.js +15 -0
- package/dist/lib/text/TextDisplayMode.d.ts +11 -0
- package/dist/lib/text/TextDisplayMode.d.ts.map +1 -0
- package/dist/lib/text/TextDisplayMode.js +16 -0
- package/dist/lib/text/TextExtent.d.ts +11 -0
- package/dist/lib/text/TextExtent.d.ts.map +1 -0
- package/dist/lib/text/TextExtent.js +20 -0
- package/dist/lib/text/TextField.d.ts +911 -0
- package/dist/lib/text/TextField.d.ts.map +1 -0
- package/dist/lib/text/TextField.js +1398 -0
- package/dist/lib/text/TextFormat.d.ts +61 -0
- package/dist/lib/text/TextFormat.d.ts.map +1 -0
- package/dist/lib/text/TextFormat.js +266 -0
- package/dist/lib/text/TextFormatDisplay.d.ts +10 -0
- package/dist/lib/text/TextFormatDisplay.d.ts.map +1 -0
- package/dist/lib/text/TextFormatDisplay.js +19 -0
- package/dist/lib/text/TextLineMetrics.d.ts +57 -0
- package/dist/lib/text/TextLineMetrics.d.ts.map +1 -0
- package/dist/lib/text/TextLineMetrics.js +38 -0
- package/dist/lib/text/TextRenderer.d.ts +15 -0
- package/dist/lib/text/TextRenderer.d.ts.map +1 -0
- package/dist/lib/text/TextRenderer.js +71 -0
- package/dist/lib/text/TextRun.d.ts +19 -0
- package/dist/lib/text/TextRun.d.ts.map +1 -0
- package/dist/lib/text/TextRun.js +54 -0
- package/dist/lib/text/TextSnapshot.d.ts +15 -0
- package/dist/lib/text/TextSnapshot.d.ts.map +1 -0
- package/dist/lib/text/TextSnapshot.js +83 -0
- package/dist/lib/text/engine/BreakOpportunity.d.ts +11 -0
- package/dist/lib/text/engine/BreakOpportunity.d.ts.map +1 -0
- package/dist/lib/text/engine/BreakOpportunity.js +16 -0
- package/dist/lib/text/engine/CFFHinting.d.ts +9 -0
- package/dist/lib/text/engine/CFFHinting.d.ts.map +1 -0
- package/dist/lib/text/engine/CFFHinting.js +14 -0
- package/dist/lib/text/engine/ContentElement.d.ts +37 -0
- package/dist/lib/text/engine/ContentElement.d.ts.map +1 -0
- package/dist/lib/text/engine/ContentElement.js +123 -0
- package/dist/lib/text/engine/DigitCase.d.ts +10 -0
- package/dist/lib/text/engine/DigitCase.d.ts.map +1 -0
- package/dist/lib/text/engine/DigitCase.js +16 -0
- package/dist/lib/text/engine/DigitWidth.d.ts +10 -0
- package/dist/lib/text/engine/DigitWidth.d.ts.map +1 -0
- package/dist/lib/text/engine/DigitWidth.js +16 -0
- package/dist/lib/text/engine/EastAsianJustifier.d.ts +12 -0
- package/dist/lib/text/engine/EastAsianJustifier.d.ts.map +1 -0
- package/dist/lib/text/engine/EastAsianJustifier.js +50 -0
- package/dist/lib/text/engine/ElementFormat.d.ts +69 -0
- package/dist/lib/text/engine/ElementFormat.d.ts.map +1 -0
- package/dist/lib/text/engine/ElementFormat.js +291 -0
- package/dist/lib/text/engine/FontDescription.d.ts +31 -0
- package/dist/lib/text/engine/FontDescription.d.ts.map +1 -0
- package/dist/lib/text/engine/FontDescription.js +113 -0
- package/dist/lib/text/engine/FontLookup.d.ts +9 -0
- package/dist/lib/text/engine/FontLookup.d.ts.map +1 -0
- package/dist/lib/text/engine/FontLookup.js +15 -0
- package/dist/lib/text/engine/FontMetrics.d.ts +18 -0
- package/dist/lib/text/engine/FontMetrics.d.ts.map +1 -0
- package/dist/lib/text/engine/FontMetrics.js +24 -0
- package/dist/lib/text/engine/FontPosture.d.ts +9 -0
- package/dist/lib/text/engine/FontPosture.d.ts.map +1 -0
- package/dist/lib/text/engine/FontPosture.js +15 -0
- package/dist/lib/text/engine/FontWeight.d.ts +9 -0
- package/dist/lib/text/engine/FontWeight.d.ts.map +1 -0
- package/dist/lib/text/engine/FontWeight.js +15 -0
- package/dist/lib/text/engine/GraphicElement.d.ts +16 -0
- package/dist/lib/text/engine/GraphicElement.d.ts.map +1 -0
- package/dist/lib/text/engine/GraphicElement.js +72 -0
- package/dist/lib/text/engine/GroupElement.d.ts +23 -0
- package/dist/lib/text/engine/GroupElement.d.ts.map +1 -0
- package/dist/lib/text/engine/GroupElement.js +102 -0
- package/dist/lib/text/engine/JustificationStyle.d.ts +10 -0
- package/dist/lib/text/engine/JustificationStyle.d.ts.map +1 -0
- package/dist/lib/text/engine/JustificationStyle.js +16 -0
- package/dist/lib/text/engine/Kerning.d.ts +10 -0
- package/dist/lib/text/engine/Kerning.d.ts.map +1 -0
- package/dist/lib/text/engine/Kerning.js +16 -0
- package/dist/lib/text/engine/LigatureLevel.d.ts +12 -0
- package/dist/lib/text/engine/LigatureLevel.d.ts.map +1 -0
- package/dist/lib/text/engine/LigatureLevel.js +18 -0
- package/dist/lib/text/engine/LineJustification.d.ts +11 -0
- package/dist/lib/text/engine/LineJustification.d.ts.map +1 -0
- package/dist/lib/text/engine/LineJustification.js +17 -0
- package/dist/lib/text/engine/NativehacksForTLF.d.ts +22 -0
- package/dist/lib/text/engine/NativehacksForTLF.d.ts.map +1 -0
- package/dist/lib/text/engine/NativehacksForTLF.js +70 -0
- package/dist/lib/text/engine/RenderingMode.d.ts +9 -0
- package/dist/lib/text/engine/RenderingMode.d.ts.map +1 -0
- package/dist/lib/text/engine/RenderingMode.js +15 -0
- package/dist/lib/text/engine/SpaceJustifier.d.ts +20 -0
- package/dist/lib/text/engine/SpaceJustifier.d.ts.map +1 -0
- package/dist/lib/text/engine/SpaceJustifier.js +58 -0
- package/dist/lib/text/engine/TabAlignment.d.ts +11 -0
- package/dist/lib/text/engine/TabAlignment.d.ts.map +1 -0
- package/dist/lib/text/engine/TabAlignment.js +17 -0
- package/dist/lib/text/engine/TabStop.d.ts +13 -0
- package/dist/lib/text/engine/TabStop.d.ts.map +1 -0
- package/dist/lib/text/engine/TabStop.js +66 -0
- package/dist/lib/text/engine/TextBaseline.d.ts +14 -0
- package/dist/lib/text/engine/TextBaseline.d.ts.map +1 -0
- package/dist/lib/text/engine/TextBaseline.js +20 -0
- package/dist/lib/text/engine/TextBlock.d.ts +76 -0
- package/dist/lib/text/engine/TextBlock.d.ts.map +1 -0
- package/dist/lib/text/engine/TextBlock.js +500 -0
- package/dist/lib/text/engine/TextElement.d.ts +12 -0
- package/dist/lib/text/engine/TextElement.d.ts.map +1 -0
- package/dist/lib/text/engine/TextElement.js +45 -0
- package/dist/lib/text/engine/TextJustifier.d.ts +15 -0
- package/dist/lib/text/engine/TextJustifier.d.ts.map +1 -0
- package/dist/lib/text/engine/TextJustifier.js +46 -0
- package/dist/lib/text/engine/TextLine.d.ts +86 -0
- package/dist/lib/text/engine/TextLine.d.ts.map +1 -0
- package/dist/lib/text/engine/TextLine.js +381 -0
- package/dist/lib/text/engine/TextLineCreationResult.d.ts +11 -0
- package/dist/lib/text/engine/TextLineCreationResult.d.ts.map +1 -0
- package/dist/lib/text/engine/TextLineCreationResult.js +17 -0
- package/dist/lib/text/engine/TextLineMirrorRegion.d.ts +17 -0
- package/dist/lib/text/engine/TextLineMirrorRegion.d.ts.map +1 -0
- package/dist/lib/text/engine/TextLineMirrorRegion.js +75 -0
- package/dist/lib/text/engine/TextLineValidity.d.ts +11 -0
- package/dist/lib/text/engine/TextLineValidity.d.ts.map +1 -0
- package/dist/lib/text/engine/TextLineValidity.js +17 -0
- package/dist/lib/text/engine/TextRotation.d.ts +12 -0
- package/dist/lib/text/engine/TextRotation.d.ts.map +1 -0
- package/dist/lib/text/engine/TextRotation.js +18 -0
- package/dist/lib/text/engine/TypographicCase.d.ts +14 -0
- package/dist/lib/text/engine/TypographicCase.d.ts.map +1 -0
- package/dist/lib/text/engine/TypographicCase.js +20 -0
- package/dist/lib/text/ime/CompositionAttributeRange.d.ts +12 -0
- package/dist/lib/text/ime/CompositionAttributeRange.d.ts.map +1 -0
- package/dist/lib/text/ime/CompositionAttributeRange.js +20 -0
- package/dist/lib/ui/ContextMenu.d.ts +29 -0
- package/dist/lib/ui/ContextMenu.d.ts.map +1 -0
- package/dist/lib/ui/ContextMenu.js +128 -0
- package/dist/lib/ui/ContextMenuBuiltInItems.d.ts +31 -0
- package/dist/lib/ui/ContextMenuBuiltInItems.d.ts.map +1 -0
- package/dist/lib/ui/ContextMenuBuiltInItems.js +112 -0
- package/dist/lib/ui/ContextMenuClipboardItems.d.ts +24 -0
- package/dist/lib/ui/ContextMenuClipboardItems.d.ts.map +1 -0
- package/dist/lib/ui/ContextMenuClipboardItems.js +99 -0
- package/dist/lib/ui/ContextMenuItem.d.ts +19 -0
- package/dist/lib/ui/ContextMenuItem.d.ts.map +1 -0
- package/dist/lib/ui/ContextMenuItem.js +62 -0
- package/dist/lib/ui/GameInput.d.ts +12 -0
- package/dist/lib/ui/GameInput.d.ts.map +1 -0
- package/dist/lib/ui/GameInput.js +49 -0
- package/dist/lib/ui/GameInputControl.d.ts +17 -0
- package/dist/lib/ui/GameInputControl.d.ts.map +1 -0
- package/dist/lib/ui/GameInputControl.js +95 -0
- package/dist/lib/ui/GameInputControlType.d.ts +14 -0
- package/dist/lib/ui/GameInputControlType.d.ts.map +1 -0
- package/dist/lib/ui/GameInputControlType.js +23 -0
- package/dist/lib/ui/GameInputDevice.d.ts +21 -0
- package/dist/lib/ui/GameInputDevice.d.ts.map +1 -0
- package/dist/lib/ui/GameInputDevice.js +105 -0
- package/dist/lib/ui/GameInputFinger.d.ts +12 -0
- package/dist/lib/ui/GameInputFinger.d.ts.map +1 -0
- package/dist/lib/ui/GameInputFinger.js +21 -0
- package/dist/lib/ui/GameInputHand.d.ts +11 -0
- package/dist/lib/ui/GameInputHand.d.ts.map +1 -0
- package/dist/lib/ui/GameInputHand.js +20 -0
- package/dist/lib/ui/Keyboard.d.ts +36 -0
- package/dist/lib/ui/Keyboard.d.ts.map +1 -0
- package/dist/lib/ui/Keyboard.js +383 -0
- package/dist/lib/ui/Mouse.d.ts +14 -0
- package/dist/lib/ui/Mouse.d.ts.map +1 -0
- package/dist/lib/ui/Mouse.js +78 -0
- package/dist/lib/ui/MouseCursorData.d.ts +24 -0
- package/dist/lib/ui/MouseCursorData.d.ts.map +1 -0
- package/dist/lib/ui/MouseCursorData.js +55 -0
- package/dist/lib/ui/Multitouch.d.ts +78 -0
- package/dist/lib/ui/Multitouch.d.ts.map +1 -0
- package/dist/lib/ui/Multitouch.js +135 -0
- package/dist/lib/ui/MultitouchInputMode.d.ts +26 -0
- package/dist/lib/ui/MultitouchInputMode.d.ts.map +1 -0
- package/dist/lib/ui/MultitouchInputMode.js +29 -0
- package/dist/lib/utils/ByteArray.d.ts +2 -0
- package/dist/lib/utils/ByteArray.d.ts.map +1 -0
- package/dist/lib/utils/ByteArray.js +1 -0
- package/dist/lib/utils/CompressionAlgorithm.d.ts +7 -0
- package/dist/lib/utils/CompressionAlgorithm.d.ts.map +1 -0
- package/dist/lib/utils/CompressionAlgorithm.js +13 -0
- package/dist/lib/utils/IDataInput.d.ts +175 -0
- package/dist/lib/utils/IDataInput.d.ts.map +1 -0
- package/dist/lib/utils/IDataInput.js +1 -0
- package/dist/lib/utils/IDataOutput.d.ts +131 -0
- package/dist/lib/utils/IDataOutput.d.ts.map +1 -0
- package/dist/lib/utils/IDataOutput.js +1 -0
- package/dist/lib/utils/IExternalizable.d.ts +35 -0
- package/dist/lib/utils/IExternalizable.d.ts.map +1 -0
- package/dist/lib/utils/IExternalizable.js +1 -0
- package/dist/lib/utils/Timer.d.ts +28 -0
- package/dist/lib/utils/Timer.d.ts.map +1 -0
- package/dist/lib/utils/Timer.js +115 -0
- package/index.ts +21 -0
- package/lib/ILoader.ts +14 -0
- package/lib/PlayerGlobal.ts +278 -0
- package/lib/RegisterCode.ts +10 -0
- package/lib/SecurityDomain.ts +194 -0
- package/lib/Settings.ts +15 -0
- package/lib/_shumway_flash/accessibility/Accessibility.ts +40 -0
- package/lib/_shumway_flash/accessibility/AccessibilityImplementation.ts +40 -0
- package/lib/_shumway_flash/accessibility/AccessibilityProperties.ts +29 -0
- package/lib/_shumway_flash/accessibility/ISearchableText.ts +4 -0
- package/lib/_shumway_flash/accessibility/ISimpleTextSelection.ts +4 -0
- package/lib/_shumway_flash/automation/ActionGenerator.ts +14 -0
- package/lib/_shumway_flash/automation/AutomationAction.ts +14 -0
- package/lib/_shumway_flash/automation/Configuration.ts +23 -0
- package/lib/_shumway_flash/automation/KeyboardAutomationAction.ts +16 -0
- package/lib/_shumway_flash/automation/MouseAutomationAction.ts +20 -0
- package/lib/_shumway_flash/automation/StageCapture.ts +50 -0
- package/lib/_shumway_flash/automation/StageCaptureEvent.ts +21 -0
- package/lib/_shumway_flash/desktop/ClipboardTransferMode.ts +24 -0
- package/lib/_shumway_flash/display/AVM1Movie.ts +157 -0
- package/lib/_shumway_flash/display/ActionScriptVersion.ts +21 -0
- package/lib/_shumway_flash/display/BitmapEncodingColorSpace.ts +24 -0
- package/lib/_shumway_flash/display/ColorCorrection.ts +50 -0
- package/lib/_shumway_flash/display/ColorCorrectionSupport.ts +50 -0
- package/lib/_shumway_flash/display/FocusDirection.ts +23 -0
- package/lib/_shumway_flash/display/GraphicsBitmapFill.ts +35 -0
- package/lib/_shumway_flash/display/GraphicsEndFill.ts +23 -0
- package/lib/_shumway_flash/display/GraphicsGradientFill.ts +31 -0
- package/lib/_shumway_flash/display/GraphicsShaderFill.ts +30 -0
- package/lib/_shumway_flash/display/GraphicsSolidFill.ts +28 -0
- package/lib/_shumway_flash/display/GraphicsStroke.ts +48 -0
- package/lib/_shumway_flash/display/GraphicsTrianglePath.ts +38 -0
- package/lib/_shumway_flash/display/JPEGEncoderOptions.ts +25 -0
- package/lib/_shumway_flash/display/JPEGXREncoderOptions.ts +24 -0
- package/lib/_shumway_flash/display/MorphShape.ts +70 -0
- package/lib/_shumway_flash/display/PNGEncoderOptions.ts +25 -0
- package/lib/_shumway_flash/display/SWFVersion.ts +34 -0
- package/lib/_shumway_flash/display/Shader.ts +46 -0
- package/lib/_shumway_flash/display/ShaderData.ts +20 -0
- package/lib/_shumway_flash/display/ShaderInput.ts +63 -0
- package/lib/_shumway_flash/display/ShaderJob.ts +81 -0
- package/lib/_shumway_flash/display/ShaderParameter.ts +43 -0
- package/lib/_shumway_flash/display/ShaderParameterType.ts +37 -0
- package/lib/_shumway_flash/display/ShaderPrecision.ts +24 -0
- package/lib/_shumway_flash/display/Stage3D.ts +64 -0
- package/lib/_shumway_flash/display/StageAlign.ts +69 -0
- package/lib/_shumway_flash/display/StageDisplayState.ts +50 -0
- package/lib/_shumway_flash/display/StageQuality.ts +75 -0
- package/lib/_shumway_flash/display/StageScaleMode.ts +66 -0
- package/lib/_shumway_flash/display/interfaces.ts +6 -0
- package/lib/_shumway_flash/display3D/Context3DBlendFactor.ts +50 -0
- package/lib/_shumway_flash/display3D/Context3DCompareMode.ts +48 -0
- package/lib/_shumway_flash/display3D/Context3DProfile.ts +42 -0
- package/lib/_shumway_flash/display3D/Context3DRenderMode.ts +42 -0
- package/lib/_shumway_flash/display3D/Context3DStencilAction.ts +48 -0
- package/lib/_shumway_flash/display3D/Context3DTextureFormat.ts +43 -0
- package/lib/_shumway_flash/display3D/Context3DTriangleFace.ts +44 -0
- package/lib/_shumway_flash/display3D/Context3DVertexBufferFormat.ts +45 -0
- package/lib/_shumway_flash/display3D/IndexBuffer3D.ts +53 -0
- package/lib/_shumway_flash/display3D/Program3D.ts +48 -0
- package/lib/_shumway_flash/display3D/VertexBuffer3D.ts +35 -0
- package/lib/_shumway_flash/display3D/textures/CubeTexture.ts +50 -0
- package/lib/_shumway_flash/display3D/textures/TextureBase.ts +39 -0
- package/lib/_shumway_flash/filters/BitmapFilterQuality.ts +25 -0
- package/lib/_shumway_flash/filters/DisplacementMapFilterMode.ts +25 -0
- package/lib/_shumway_flash/filters/ShaderFilter.ts +43 -0
- package/lib/_shumway_flash/globalization/Collator.ts +148 -0
- package/lib/_shumway_flash/globalization/CollatorMode.ts +37 -0
- package/lib/_shumway_flash/globalization/CurrencyFormatter.ts +232 -0
- package/lib/_shumway_flash/globalization/CurrencyParseResult.ts +57 -0
- package/lib/_shumway_flash/globalization/DateTimeFormatter.ts +110 -0
- package/lib/_shumway_flash/globalization/DateTimeNameContext.ts +42 -0
- package/lib/_shumway_flash/globalization/DateTimeNameStyle.ts +43 -0
- package/lib/_shumway_flash/globalization/DateTimeStyle.ts +45 -0
- package/lib/_shumway_flash/globalization/LastOperationStatus.ts +57 -0
- package/lib/_shumway_flash/globalization/LocaleID.ts +86 -0
- package/lib/_shumway_flash/globalization/NationalDigitsType.ts +72 -0
- package/lib/_shumway_flash/globalization/NumberParseResult.ts +63 -0
- package/lib/_shumway_flash/media/AudioDecoder.ts +44 -0
- package/lib/_shumway_flash/media/Camera.ts +167 -0
- package/lib/_shumway_flash/media/H264Level.ts +54 -0
- package/lib/_shumway_flash/media/H264Profile.ts +40 -0
- package/lib/_shumway_flash/media/H264VideoStreamSettings.ts +48 -0
- package/lib/_shumway_flash/media/Microphone.ts +217 -0
- package/lib/_shumway_flash/media/MicrophoneEnhancedMode.ts +43 -0
- package/lib/_shumway_flash/media/MicrophoneEnhancedOptions.ts +49 -0
- package/lib/_shumway_flash/media/SoundCodec.ts +42 -0
- package/lib/_shumway_flash/media/StageVideo.ts +119 -0
- package/lib/_shumway_flash/media/StageVideoAvailability.ts +40 -0
- package/lib/_shumway_flash/media/Video.ts +151 -0
- package/lib/_shumway_flash/media/VideoCodec.ts +41 -0
- package/lib/_shumway_flash/media/VideoStatus.ts +41 -0
- package/lib/_shumway_flash/media/VideoStreamSettings.ts +56 -0
- package/lib/_shumway_flash/net/DynamicPropertyOutput.ts +45 -0
- package/lib/_shumway_flash/net/FileFilter.ts +66 -0
- package/lib/_shumway_flash/net/FileReferenceList.ts +39 -0
- package/lib/_shumway_flash/net/GroupSpecifier.ts +67 -0
- package/lib/_shumway_flash/net/IDynamicPropertyOutput.ts +25 -0
- package/lib/_shumway_flash/net/IDynamicPropertyWriter.ts +28 -0
- package/lib/_shumway_flash/net/LocalConnection.ts +249 -0
- package/lib/_shumway_flash/net/NetConnection.ts +268 -0
- package/lib/_shumway_flash/net/NetGroup.ts +88 -0
- package/lib/_shumway_flash/net/NetGroupInfo.ts +54 -0
- package/lib/_shumway_flash/net/NetGroupReceiveMode.ts +37 -0
- package/lib/_shumway_flash/net/NetGroupReplicationStrategy.ts +40 -0
- package/lib/_shumway_flash/net/NetGroupSendMode.ts +37 -0
- package/lib/_shumway_flash/net/NetGroupSendResult.ts +38 -0
- package/lib/_shumway_flash/net/NetMonitor.ts +38 -0
- package/lib/_shumway_flash/net/NetStream.ts +1078 -0
- package/lib/_shumway_flash/net/NetStreamAppendBytesAction.ts +38 -0
- package/lib/_shumway_flash/net/NetStreamInfo.ts +119 -0
- package/lib/_shumway_flash/net/NetStreamMulticastInfo.ts +103 -0
- package/lib/_shumway_flash/net/NetStreamPlayOptions.ts +45 -0
- package/lib/_shumway_flash/net/NetStreamPlayTransitions.ts +45 -0
- package/lib/_shumway_flash/net/Responder.ts +40 -0
- package/lib/_shumway_flash/net/SecureSocket.ts +60 -0
- package/lib/_shumway_flash/net/SharedObjectFlushStatus.ts +37 -0
- package/lib/_shumway_flash/net/Socket.ts +230 -0
- package/lib/_shumway_flash/net/URLRequestHeader.ts +22 -0
- package/lib/_shumway_flash/net/URLStream.ts +206 -0
- package/lib/_shumway_flash/net/XMLSocket.ts +32 -0
- package/lib/_shumway_flash/printing/PrintJob.ts +42 -0
- package/lib/_shumway_flash/printing/PrintJobOptions.ts +25 -0
- package/lib/_shumway_flash/printing/PrintJobOrientation.ts +24 -0
- package/lib/_shumway_flash/profiler/Telemetry.ts +48 -0
- package/lib/_shumway_flash/sampler/ClassFactory.ts +22 -0
- package/lib/_shumway_flash/sampler/DeleteObjectSample.ts +20 -0
- package/lib/_shumway_flash/sampler/StackFrame.ts +22 -0
- package/lib/_shumway_flash/security/CertificateStatus.ts +28 -0
- package/lib/_shumway_flash/security/X500DistinguishedName.ts +56 -0
- package/lib/_shumway_flash/security/X509Certificate.ts +87 -0
- package/lib/_shumway_flash/sensors/Accelerometer.ts +35 -0
- package/lib/_shumway_flash/sensors/Geolocation.ts +33 -0
- package/lib/_shumway_flash/system/ApplicationInstaller.ts +57 -0
- package/lib/_shumway_flash/system/AuthorizedFeatures.ts +58 -0
- package/lib/_shumway_flash/system/AuthorizedFeaturesLoader.ts +49 -0
- package/lib/_shumway_flash/system/DomainMemoryWithStage3D.ts +33 -0
- package/lib/_shumway_flash/system/IMEConversionMode.ts +43 -0
- package/lib/_shumway_flash/system/ImageDecodingPolicy.ts +36 -0
- package/lib/_shumway_flash/system/JPEGLoaderContext.ts +42 -0
- package/lib/_shumway_flash/system/MessageChannel.ts +65 -0
- package/lib/_shumway_flash/system/MessageChannelState.ts +38 -0
- package/lib/_shumway_flash/system/SecurityPanel.ts +42 -0
- package/lib/_shumway_flash/system/SystemUpdater.ts +36 -0
- package/lib/_shumway_flash/system/SystemUpdaterType.ts +37 -0
- package/lib/_shumway_flash/ui/KeyLocation.ts +39 -0
- package/lib/_shumway_flash/ui/KeyboardType.ts +37 -0
- package/lib/_shumway_flash/ui/MouseCursor.ts +75 -0
- package/lib/_shumway_flash/ui/MouseCursorData.ts +72 -0
- package/lib/_shumway_flash/utils/CompressionAlgorithm.ts +20 -0
- package/lib/_shumway_flash/utils/IDataInput2.ts +9 -0
- package/lib/_shumway_flash/utils/IDataOutput2.ts +9 -0
- package/lib/_shumway_flash/utils/IExternalizable.ts +13 -0
- package/lib/_shumway_flash/utils/SetIntervalTimer.ts +20 -0
- package/lib/_shumway_flash/utils/Timer.ts +111 -0
- package/lib/desktop/Clipboard.ts +292 -0
- package/lib/desktop/ClipboardFormats.ts +51 -0
- package/lib/display/Bitmap.ts +189 -0
- package/lib/display/BitmapData.ts +496 -0
- package/lib/display/BitmapDataChannel.ts +24 -0
- package/lib/display/BlendMode.ts +1 -0
- package/lib/display/CapsStyle.ts +1 -0
- package/lib/display/DisplayObject.ts +1601 -0
- package/lib/display/DisplayObjectContainer.ts +640 -0
- package/lib/display/FrameLabel.ts +30 -0
- package/lib/display/GradientType.ts +1 -0
- package/lib/display/Graphics.ts +609 -0
- package/lib/display/GraphicsBitmapFill.ts +39 -0
- package/lib/display/GraphicsEndFill.ts +11 -0
- package/lib/display/GraphicsGradientFill.ts +31 -0
- package/lib/display/GraphicsPath.ts +75 -0
- package/lib/display/GraphicsPathCommand.ts +1 -0
- package/lib/display/GraphicsPathWinding.ts +1 -0
- package/lib/display/GraphicsSolidFill.ts +16 -0
- package/lib/display/GraphicsStroke.ts +33 -0
- package/lib/display/GraphicsTrianglePath.ts +24 -0
- package/lib/display/IBitmapDataOwner.ts +7 -0
- package/lib/display/IBitmapDrawable.ts +11 -0
- package/lib/display/IGraphicsData.ts +15 -0
- package/lib/display/IVirtualSceneGraphItem.ts +9 -0
- package/lib/display/InteractiveObject.ts +986 -0
- package/lib/display/InterpolationMethod.ts +1 -0
- package/lib/display/JointStyle.ts +1 -0
- package/lib/display/LineScaleMode.ts +1 -0
- package/lib/display/Loader.ts +777 -0
- package/lib/display/LoaderInfo.ts +743 -0
- package/lib/display/MovieClip.ts +570 -0
- package/lib/display/NativeMenu.ts +11 -0
- package/lib/display/NativeMenuItem.ts +34 -0
- package/lib/display/PixelSnapping.ts +1 -0
- package/lib/display/Scene.ts +69 -0
- package/lib/display/Shape.ts +89 -0
- package/lib/display/SimpleButton.ts +555 -0
- package/lib/display/SpreadMethod.ts +1 -0
- package/lib/display/Sprite.ts +774 -0
- package/lib/display/Stage.ts +1143 -0
- package/lib/display/TriangleCulling.ts +1 -0
- package/lib/display3D/Context3D.ts +1 -0
- package/lib/display3D/Context3DClearMask.ts +1 -0
- package/lib/display3D/Context3DProgramType.ts +1 -0
- package/lib/display3D/Texture.ts +29 -0
- package/lib/errors/EOFError.ts +17 -0
- package/lib/errors/IOError.ts +16 -0
- package/lib/errors/IllegalOperationError.ts +17 -0
- package/lib/errors/InvalidSWFError.ts +16 -0
- package/lib/errors/MemoryError.ts +16 -0
- package/lib/errors/ScriptTimeoutError.ts +16 -0
- package/lib/errors/StackOverflowError.ts +16 -0
- package/lib/events/AccelerometerEvent.ts +26 -0
- package/lib/events/ActivityEvent.ts +19 -0
- package/lib/events/AsyncErrorEvent.ts +31 -0
- package/lib/events/ContextMenuEvent.ts +26 -0
- package/lib/events/DataEvent.ts +17 -0
- package/lib/events/ErrorEvent.ts +54 -0
- package/lib/events/Event.ts +229 -0
- package/lib/events/EventDispatcher.ts +283 -0
- package/lib/events/EventDispatcherBase.ts +289 -0
- package/lib/events/EventPhase.ts +34 -0
- package/lib/events/FocusEvent.ts +97 -0
- package/lib/events/FullScreenEvent.ts +22 -0
- package/lib/events/GameInputEvent.ts +38 -0
- package/lib/events/GeolocationEvent.ts +18 -0
- package/lib/events/GestureEvent.ts +113 -0
- package/lib/events/GesturePhase.ts +18 -0
- package/lib/events/HTTPStatusEvent.ts +81 -0
- package/lib/events/IEventDispatcher.ts +1 -0
- package/lib/events/IEventMapper.ts +7 -0
- package/lib/events/IMEEvent.ts +21 -0
- package/lib/events/IOErrorEvent.ts +49 -0
- package/lib/events/KeyboardEvent.ts +114 -0
- package/lib/events/MouseEvent.ts +279 -0
- package/lib/events/NetDataEvent.ts +22 -0
- package/lib/events/NetFilterEvent.ts +20 -0
- package/lib/events/NetMonitorEvent.ts +20 -0
- package/lib/events/NetStatusEvent.ts +53 -0
- package/lib/events/OutputProgressEvent.ts +20 -0
- package/lib/events/PressAndTapGestureEvent.ts +24 -0
- package/lib/events/ProgressEvent.ts +66 -0
- package/lib/events/SampleDataEvent.ts +140 -0
- package/lib/events/SecurityErrorEvent.ts +16 -0
- package/lib/events/ShaderEvent.ts +19 -0
- package/lib/events/SoftKeyboardEvent.ts +19 -0
- package/lib/events/SoftKeyboardTrigger.ts +16 -0
- package/lib/events/StageVideoAvailabilityEvent.ts +20 -0
- package/lib/events/StageVideoEvent.ts +26 -0
- package/lib/events/StaticEvents.ts +5 -0
- package/lib/events/StatusEvent.ts +45 -0
- package/lib/events/SyncEvent.ts +19 -0
- package/lib/events/TextEvent.ts +60 -0
- package/lib/events/ThrottleEvent.ts +23 -0
- package/lib/events/ThrottleType.ts +18 -0
- package/lib/events/TimerEvent.ts +31 -0
- package/lib/events/TouchEvent.ts +548 -0
- package/lib/events/TransformGestureEvent.ts +21 -0
- package/lib/events/UncaughtErrorEvent.ts +17 -0
- package/lib/events/UncaughtErrorEvents.ts +29 -0
- package/lib/events/VideoEvent.ts +24 -0
- package/lib/external/ExternalInterface.ts +304 -0
- package/lib/factories/FlashSceneGraphFactory.ts +205 -0
- package/lib/filters/BevelFilter.ts +247 -0
- package/lib/filters/BitmapFilter.ts +123 -0
- package/lib/filters/BitmapFilterType.ts +43 -0
- package/lib/filters/BlurFilter.ts +69 -0
- package/lib/filters/ColorMatrixFilter.ts +96 -0
- package/lib/filters/ConvolutionFilter.ts +187 -0
- package/lib/filters/DisplacementMapFilter.ts +191 -0
- package/lib/filters/DropShadowFilter.ts +203 -0
- package/lib/filters/FilterBuilder.ts +34 -0
- package/lib/filters/GlowFilter.ts +162 -0
- package/lib/filters/GradientBevelFilter.ts +276 -0
- package/lib/filters/GradientGlowFilter.ts +239 -0
- package/lib/geom/ColorTransform.ts +294 -0
- package/lib/geom/Matrix.ts +428 -0
- package/lib/geom/Matrix3D.ts +228 -0
- package/lib/geom/Orientation3D.ts +43 -0
- package/lib/geom/PerspectiveProjection.ts +1 -0
- package/lib/geom/Point.ts +201 -0
- package/lib/geom/Rectangle.ts +477 -0
- package/lib/geom/Transform.ts +105 -0
- package/lib/geom/Utils3D.ts +36 -0
- package/lib/geom/Vector3D.ts +438 -0
- package/lib/globalization/LocaleID.ts +96 -0
- package/lib/globalization/NumberFormatter.ts +551 -0
- package/lib/globalization/StringTools.ts +147 -0
- package/lib/greensock/TweenLite.ts +14 -0
- package/lib/greensock/easing/Linear.ts +4 -0
- package/lib/greensock/easing/Power.ts +3 -0
- package/lib/greensock/easing/Power1.ts +2 -0
- package/lib/greensock/easing/Power2.ts +2 -0
- package/lib/greensock/easing/Power3.ts +2 -0
- package/lib/greensock/easing/Power4.ts +2 -0
- package/lib/greensock/motionPaths/RectanglePath2D.ts +1 -0
- package/lib/greensock/plugins/RoundPropsPlugin.ts +1 -0
- package/lib/link.ts +669 -0
- package/lib/media/ID3Info.ts +69 -0
- package/lib/media/Sound.ts +532 -0
- package/lib/media/SoundChannel.ts +160 -0
- package/lib/media/SoundLoaderContext.ts +104 -0
- package/lib/media/SoundMixer.ts +152 -0
- package/lib/media/SoundTransform.ts +137 -0
- package/lib/net/FileFilter.ts +32 -0
- package/lib/net/FileReference.ts +293 -0
- package/lib/net/LocalConnection.ts +267 -0
- package/lib/net/NetConnection.ts +435 -0
- package/lib/net/Responder.ts +57 -0
- package/lib/net/SharedObject.ts +365 -0
- package/lib/net/Socket.ts +251 -0
- package/lib/net/URLLoader.ts +144 -0
- package/lib/net/URLLoaderDataFormat.ts +1 -0
- package/lib/net/URLRequest.ts +135 -0
- package/lib/net/URLRequestMethod.ts +1 -0
- package/lib/net/URLVariables.ts +84 -0
- package/lib/net/navigateToURL.ts +5 -0
- package/lib/sampler/NewObjectSample.ts +40 -0
- package/lib/sampler/Sample.ts +23 -0
- package/lib/starling/core/Starling.ts +613 -0
- package/lib/starling/display/DisplayObject.ts +1 -0
- package/lib/starling/display/Image.ts +1 -0
- package/lib/starling/display/Quad.ts +7 -0
- package/lib/starling/display/Sprite.ts +1 -0
- package/lib/starling/display/Stage.ts +4 -0
- package/lib/starling/events/Event.ts +1 -0
- package/lib/starling/events/ResizeEvent.ts +5 -0
- package/lib/starling/events/Touch.ts +1 -0
- package/lib/starling/events/TouchEvent.ts +1 -0
- package/lib/starling/events/TouchPhase.ts +1 -0
- package/lib/starling/textures/RenderTexture.ts +3 -0
- package/lib/starling/textures/Texture.ts +1 -0
- package/lib/starling/utils/SystemUtil.ts +3 -0
- package/lib/system/ApplicationDomain.ts +279 -0
- package/lib/system/Capabilities.ts +265 -0
- package/lib/system/FSCommand.ts +20 -0
- package/lib/system/IME.ts +157 -0
- package/lib/system/LoaderContext.ts +449 -0
- package/lib/system/Security.ts +119 -0
- package/lib/system/SecurityDomain.ts +9 -0
- package/lib/system/System.ts +225 -0
- package/lib/system/TouchscreenType.ts +37 -0
- package/lib/text/AntiAliasType.ts +1 -0
- package/lib/text/CSMSettings.ts +25 -0
- package/lib/text/Font.ts +60 -0
- package/lib/text/FontStyle.ts +18 -0
- package/lib/text/FontType.ts +18 -0
- package/lib/text/GridFitType.ts +1 -0
- package/lib/text/StaticText.ts +41 -0
- package/lib/text/StyleSheet.ts +201 -0
- package/lib/text/TextColorType.ts +15 -0
- package/lib/text/TextDisplayMode.ts +16 -0
- package/lib/text/TextExtent.ts +25 -0
- package/lib/text/TextField.ts +1358 -0
- package/lib/text/TextFieldAutoSize.ts +1 -0
- package/lib/text/TextFieldType.ts +1 -0
- package/lib/text/TextFormat.ts +222 -0
- package/lib/text/TextFormatAlign.ts +1 -0
- package/lib/text/TextFormatDisplay.ts +19 -0
- package/lib/text/TextInteractionMode.ts +1 -0
- package/lib/text/TextLineMetrics.ts +72 -0
- package/lib/text/TextRenderer.ts +70 -0
- package/lib/text/TextRun.ts +56 -0
- package/lib/text/TextSnapshot.ts +73 -0
- package/lib/text/engine/BreakOpportunity.ts +17 -0
- package/lib/text/engine/CFFHinting.ts +15 -0
- package/lib/text/engine/ContentElement.ts +123 -0
- package/lib/text/engine/DigitCase.ts +19 -0
- package/lib/text/engine/DigitWidth.ts +19 -0
- package/lib/text/engine/EastAsianJustifier.ts +50 -0
- package/lib/text/engine/ElementFormat.ts +323 -0
- package/lib/text/engine/FontDescription.ts +114 -0
- package/lib/text/engine/FontLookup.ts +18 -0
- package/lib/text/engine/FontMetrics.ts +47 -0
- package/lib/text/engine/FontPosture.ts +18 -0
- package/lib/text/engine/FontWeight.ts +18 -0
- package/lib/text/engine/GraphicElement.ts +69 -0
- package/lib/text/engine/GroupElement.ts +123 -0
- package/lib/text/engine/JustificationStyle.ts +19 -0
- package/lib/text/engine/Kerning.ts +19 -0
- package/lib/text/engine/LigatureLevel.ts +21 -0
- package/lib/text/engine/LineJustification.ts +20 -0
- package/lib/text/engine/NativehacksForTLF.ts +58 -0
- package/lib/text/engine/RenderingMode.ts +18 -0
- package/lib/text/engine/SpaceJustifier.ts +57 -0
- package/lib/text/engine/TabAlignment.ts +20 -0
- package/lib/text/engine/TabStop.ts +61 -0
- package/lib/text/engine/TextBaseline.ts +23 -0
- package/lib/text/engine/TextBlock.ts +583 -0
- package/lib/text/engine/TextElement.ts +49 -0
- package/lib/text/engine/TextJustifier.ts +46 -0
- package/lib/text/engine/TextLine.ts +434 -0
- package/lib/text/engine/TextLineCreationResult.ts +20 -0
- package/lib/text/engine/TextLineMirrorRegion.ts +62 -0
- package/lib/text/engine/TextLineValidity.ts +20 -0
- package/lib/text/engine/TextRotation.ts +21 -0
- package/lib/text/engine/TypographicCase.ts +22 -0
- package/lib/text/ime/CompositionAttributeRange.ts +29 -0
- package/lib/text/ime/IIMEClient.ts +31 -0
- package/lib/ui/ContextMenu.ts +128 -0
- package/lib/ui/ContextMenuBuiltInItems.ts +104 -0
- package/lib/ui/ContextMenuClipboardItems.ts +93 -0
- package/lib/ui/ContextMenuItem.ts +60 -0
- package/lib/ui/GameInput.ts +49 -0
- package/lib/ui/GameInputControl.ts +76 -0
- package/lib/ui/GameInputControlType.ts +25 -0
- package/lib/ui/GameInputDevice.ts +103 -0
- package/lib/ui/GameInputFinger.ts +23 -0
- package/lib/ui/GameInputHand.ts +22 -0
- package/lib/ui/Keyboard.ts +394 -0
- package/lib/ui/Mouse.ts +70 -0
- package/lib/ui/MouseCursorData.ts +44 -0
- package/lib/ui/Multitouch.ts +117 -0
- package/lib/ui/MultitouchInputMode.ts +27 -0
- package/lib/utils/AwayDate.ts +64 -0
- package/lib/utils/ByteArray.ts +1 -0
- package/lib/utils/CompressionAlgorithm.ts +7 -0
- package/lib/utils/Dictionary.ts +1 -0
- package/lib/utils/Endian.ts +15 -0
- package/lib/utils/IDataInput.ts +194 -0
- package/lib/utils/IDataOutput.ts +147 -0
- package/lib/utils/IExternalizable.ts +37 -0
- package/lib/utils/Timer.ts +115 -0
- package/lib/utils/Trace.ts +33 -0
- package/lib/utils/clearInterval.ts +8 -0
- package/lib/utils/clearTimeout.ts +8 -0
- package/lib/utils/describeType.ts +82 -0
- package/lib/utils/escapeMultiByte.ts +29 -0
- package/lib/utils/getAliasName.ts +7 -0
- package/lib/utils/getDefinitionByName.ts +13 -0
- package/lib/utils/getQualifiedClassName.ts +14 -0
- package/lib/utils/getQualifiedSuperclassName.ts +26 -0
- package/lib/utils/getTimer.ts +20 -0
- package/lib/utils/setInterval.ts +20 -0
- package/lib/utils/setTimeout.ts +20 -0
- package/lib/utils/unescapeMultiByte.ts +27 -0
- package/lib/xml/XML.ts +115 -0
- package/lib/xml/XMLDocumentAway.ts +142 -0
- package/lib/xml/XMLList.ts +449 -0
- package/lib/xml/XMLNode.ts +326 -0
- package/lib/xml/XMLNodeType.ts +48 -0
- package/package.json +78 -4
- package/rollup.config.js +40 -0
- package/tsconfig.json +18 -0
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
import { ApplicationDomain } from '../system/ApplicationDomain';
|
|
2
|
+
import { SecurityDomain } from '../system/SecurityDomain';
|
|
3
|
+
import { ASObject } from '@awayfl/avm2';
|
|
4
|
+
import { DisplayObjectContainer } from '../display/DisplayObjectContainer';
|
|
5
|
+
/**
|
|
6
|
+
* The LoaderContext class provides options for loading SWF files and other
|
|
7
|
+
* media by using the Loader class. The LoaderContext class is used as the
|
|
8
|
+
* `context` parameter in the `load()` and `loadBytes()` methods of the
|
|
9
|
+
* Loader class.
|
|
10
|
+
*
|
|
11
|
+
* When loading SWF files with the `Loader.load()` method, you have two
|
|
12
|
+
* decisions to make: into which security domain the loaded SWF file should
|
|
13
|
+
* be placed, and into which application domain within that security domain?
|
|
14
|
+
* For more details on these choices, see the `applicationDomain` and
|
|
15
|
+
* `securityDomain` properties.
|
|
16
|
+
*
|
|
17
|
+
* When loading a SWF file with the `Loader.loadBytes()` method, you have the
|
|
18
|
+
* same application domain choice to make as for `Loader.load()`, but it's
|
|
19
|
+
* not necessary to specify a security domain, because `Loader.loadBytes()`
|
|
20
|
+
* always places its loaded SWF file into the security domain of the loading
|
|
21
|
+
* SWF file.
|
|
22
|
+
*
|
|
23
|
+
* When loading images (JPEG, GIF, or PNG) instead of SWF files, there is no
|
|
24
|
+
* need to specify a SecurityDomain or an application domain, because those
|
|
25
|
+
* concepts are meaningful only for SWF files. Instead, you have only one
|
|
26
|
+
* decision to make: do you need programmatic access to the pixels of the
|
|
27
|
+
* loaded image? If so, see the `checkPolicyFile` property. If you want to
|
|
28
|
+
* apply deblocking when loading an image, use the JPEGLoaderContext class
|
|
29
|
+
* instead of the LoaderContext class.
|
|
30
|
+
*/
|
|
31
|
+
export declare class LoaderContext extends ASObject {
|
|
32
|
+
_avm1Context: any;
|
|
33
|
+
private _applicationDomain;
|
|
34
|
+
/**
|
|
35
|
+
* Specifies whether you can use a `Loader` object to import content with
|
|
36
|
+
* executable code, such as a SWF file, into the caller's security
|
|
37
|
+
* sandbox. There are two affected importing operations: the
|
|
38
|
+
* `Loader.loadBytes()` method, and the `Loader.load()` method with
|
|
39
|
+
* `LoaderContext.securityDomain = SecurityDomain.currentDomain`. (The
|
|
40
|
+
* latter operation is not supported in the AIR application sandbox.)
|
|
41
|
+
* With the `allowCodeImport` property set to `false`, these importing
|
|
42
|
+
* operations are restricted to safe operations, such as loading images.
|
|
43
|
+
* Normal, non-importing SWF file loading with the `Loader.load()` method
|
|
44
|
+
* is not affected by the value of this property.
|
|
45
|
+
* This property is useful when you want to import image content into
|
|
46
|
+
* your sandbox - for example, when you want to replicate or process an
|
|
47
|
+
* image from a different domain - but you don't want to take the
|
|
48
|
+
* security risk of receiving a SWF file when you expected only an image
|
|
49
|
+
* file. Since SWF files may contain ActionScript code, importing a SWF
|
|
50
|
+
* file is a much riskier operation than importing an image file.
|
|
51
|
+
* In AIR content in the application sandbox, the default value is
|
|
52
|
+
* `false`. In non-application content (which includes all content in
|
|
53
|
+
* Flash Player), the default value is `true`.
|
|
54
|
+
* The `allowCodeImport` property was added in Flash Player 10.1 and AIR
|
|
55
|
+
* 2.0. However, this property is made available to SWF files and AIR
|
|
56
|
+
* applications of all versions when the Flash Runtime supports it.
|
|
57
|
+
*/
|
|
58
|
+
allowCodeImport: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Legacy property, replaced by `allowCodeImport`, but still supported
|
|
61
|
+
* for compatibility. Previously, the only operation affected by
|
|
62
|
+
* `allowLoadBytesCodeExecution` was the `Loader.loadBytes()` method, but
|
|
63
|
+
* as of Flash Player 10.1 and AIR 2.0, the import-loading operation of
|
|
64
|
+
* `Loader.load()` with `LoaderContext.securityDomain =
|
|
65
|
+
* SecurityDomain.currentDomain` is affected as well. (The latter
|
|
66
|
+
* operation is not supported in the AIR application sandbox.) This dual
|
|
67
|
+
* effect made the property name `allowLoadBytesCodeExecution` overly
|
|
68
|
+
* specific, so now `allowCodeImport` is the preferred property name.
|
|
69
|
+
* Setting either of `allowCodeImport` or `allowLoadBytesCodeExecution`
|
|
70
|
+
* will affect the value of both.
|
|
71
|
+
*
|
|
72
|
+
* Specifies whether you can use a `Loader` object to import content with
|
|
73
|
+
* executable code, such as a SWF file, into the caller's security
|
|
74
|
+
* sandbox. With this property set to `false`, these importing operations
|
|
75
|
+
* are restricted to safe operations, such as loading images.
|
|
76
|
+
*
|
|
77
|
+
* In AIR content in the application sandbox, the default value is
|
|
78
|
+
* `false`. In non-application content, the default value is `true`.
|
|
79
|
+
*/
|
|
80
|
+
allowLoadBytesCodeExecution: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Specifies the application domain to use for the `Loader.load()` or
|
|
83
|
+
* `Loader.loadBytes()` method. Use this property only when loading a SWF
|
|
84
|
+
* file written in ActionScript 3.0 (not an image or a SWF file written
|
|
85
|
+
* in ActionScript 1.0 or ActionScript 2.0).
|
|
86
|
+
*
|
|
87
|
+
* Every security domain is divided into one or more application domains,
|
|
88
|
+
* represented by ApplicationDomain objects. Application domains are not
|
|
89
|
+
* for security purposes; they are for managing cooperating units of
|
|
90
|
+
* ActionScript code. If you are loading a SWF file from another domain,
|
|
91
|
+
* and allowing it to be placed in a separate security domain, then you
|
|
92
|
+
* cannot control the choice of application domain into which the loaded
|
|
93
|
+
* SWF file is placed; and if you have specified a choice of application
|
|
94
|
+
* domain, it will be ignored. However, if you are loading a SWF file
|
|
95
|
+
* into your own security domain — either because the SWF file comes
|
|
96
|
+
* from your own domain, or because you are importing it into your
|
|
97
|
+
* security domain — then you can control the choice of application
|
|
98
|
+
* domain for the loaded SWF file.
|
|
99
|
+
*
|
|
100
|
+
* You can pass an application domain only from your own security domain
|
|
101
|
+
* in `LoaderContext.applicationDomain`. Attempting to pass an
|
|
102
|
+
* application domain from any other security domain results in a
|
|
103
|
+
* `SecurityError` exception.
|
|
104
|
+
* You have four choices for what kind of `ApplicationDomain` property to
|
|
105
|
+
* use:
|
|
106
|
+
*
|
|
107
|
+
* * **Child of loader's ApplicationDomain.** The default. You can
|
|
108
|
+
* explicitly represent this choice with the syntax `new
|
|
109
|
+
* ApplicationDomain(ApplicationDomain.currentDomain)`. This allows the
|
|
110
|
+
* loaded SWF file to use the parent's classes directly, for example by
|
|
111
|
+
* writing `new MyClassDefinedInParent()`. The parent, however, cannot
|
|
112
|
+
* use this syntax; if the parent wishes to use the child's classes, it
|
|
113
|
+
* must call `ApplicationDomain.getDefinition()` to retrieve them. The
|
|
114
|
+
* advantage of this choice is that, if the child defines a class with
|
|
115
|
+
* the same name as a class already defined by the parent, no error
|
|
116
|
+
* results; the child simply inherits the parent's definition of that
|
|
117
|
+
* class, and the child's conflicting definition goes unused unless
|
|
118
|
+
* either child or parent calls the `ApplicationDomain.getDefinition()`
|
|
119
|
+
* method to retrieve it.
|
|
120
|
+
* * **Loader's own ApplicationDomain.** You use this application domain
|
|
121
|
+
* when using `ApplicationDomain.currentDomain`. When the load is
|
|
122
|
+
* complete, parent and child can use each other's classes directly. If
|
|
123
|
+
* the child attempts to define a class with the same name as a class
|
|
124
|
+
* already defined by the parent, the parent class is used and the child
|
|
125
|
+
* class is ignored.
|
|
126
|
+
* * **Child of the system ApplicationDomain.** You use this application
|
|
127
|
+
* domain when using `new ApplicationDomain(null)`. This separates loader
|
|
128
|
+
* and loadee entirely, allowing them to define separate versions of
|
|
129
|
+
* classes with the same name without conflict or overshadowing. The only
|
|
130
|
+
* way either side sees the other's classes is by calling the
|
|
131
|
+
* `ApplicationDomain.getDefinition()` method.
|
|
132
|
+
* * **Child of some other ApplicationDomain.** Occasionally you may have
|
|
133
|
+
* a more complex ApplicationDomain hierarchy. You can load a SWF file
|
|
134
|
+
* into any ApplicationDomain from your own SecurityDomain. For example,
|
|
135
|
+
* `new
|
|
136
|
+
* ApplicationDomain(ApplicationDomain.currentDomain.parentDomain.parentDomain)`
|
|
137
|
+
* loads a SWF file into a new child of the current domain's parent's
|
|
138
|
+
* parent.
|
|
139
|
+
*
|
|
140
|
+
* When a load is complete, either side (loading or loaded) may need to
|
|
141
|
+
* find its own ApplicationDomain, or the other side's ApplicationDomain,
|
|
142
|
+
* for the purpose of calling `ApplicationDomain.getDefinition()`. Either
|
|
143
|
+
* side can retrieve a reference to its own application domain by using
|
|
144
|
+
* `ApplicationDomain.currentDomain`. The loading SWF file can retrieve a
|
|
145
|
+
* reference to the loaded SWF file's ApplicationDomain via
|
|
146
|
+
* `Loader.contentLoaderInfo.applicationDomain`. If the loaded SWF file
|
|
147
|
+
* knows how it was loaded, it can find its way to the loading SWF file's
|
|
148
|
+
* ApplicationDomain object. For example, if the child was loaded in the
|
|
149
|
+
* default way, it can find the loading SWF file's application domain by
|
|
150
|
+
* using `ApplicationDomain.currentDomain.parentDomain`.
|
|
151
|
+
*
|
|
152
|
+
* For more information, see the "ApplicationDomain class" section of the
|
|
153
|
+
* "Client System Environment" chapter of the _ActionScript 3.0
|
|
154
|
+
* Developer's Guide_.
|
|
155
|
+
*/
|
|
156
|
+
applicationDomain: ApplicationDomain;
|
|
157
|
+
/**
|
|
158
|
+
* Specifies whether the application should attempt to download a URL
|
|
159
|
+
* policy file from the loaded object's server before beginning to load
|
|
160
|
+
* the object itself. This flag is applicable to the `Loader.load()`
|
|
161
|
+
* method, but not to the `Loader.loadBytes()` method.
|
|
162
|
+
* Set this flag to `true` when you are loading an image (JPEG, GIF, or
|
|
163
|
+
* PNG) from outside the calling SWF file's own domain, and you expect to
|
|
164
|
+
* need access to the content of that image from ActionScript. Examples
|
|
165
|
+
* of accessing image content include referencing the `Loader.content`
|
|
166
|
+
* property to obtain a Bitmap object, and calling the
|
|
167
|
+
* `BitmapData.draw()` method to obtain a copy of the loaded image's
|
|
168
|
+
* pixels. If you attempt one of these operations without having
|
|
169
|
+
* specified `checkPolicyFile` at loading time, you may get a
|
|
170
|
+
* `SecurityError` exception because the needed policy file has not been
|
|
171
|
+
* downloaded yet.
|
|
172
|
+
*
|
|
173
|
+
* When you call the `Loader.load()` method with
|
|
174
|
+
* `LoaderContext.checkPolicyFile` set to `true`, the application does
|
|
175
|
+
* not begin downloading the specified object in `URLRequest.url` until
|
|
176
|
+
* it has either successfully downloaded a relevant URL policy file or
|
|
177
|
+
* discovered that no such policy file exists. Flash Player or AIR first
|
|
178
|
+
* considers policy files that have already been downloaded, then
|
|
179
|
+
* attempts to download any pending policy files specified in calls to
|
|
180
|
+
* the `Security.loadPolicyFile()` method, then attempts to download a
|
|
181
|
+
* policy file from the default location that corresponds to
|
|
182
|
+
* `URLRequest.url`, which is `/crossdomain.xml` on the same server as
|
|
183
|
+
* `URLRequest.url`. In all cases, the given policy file is required to
|
|
184
|
+
* exist at `URLRequest.url` by virtue of the policy file's location, and
|
|
185
|
+
* the file must permit access by virtue of one or more
|
|
186
|
+
* `<allow-access-from>` tags.
|
|
187
|
+
*
|
|
188
|
+
* If you set `checkPolicyFile` to `true`, the main download that
|
|
189
|
+
* specified in the `Loader.load()` method does not load until the policy
|
|
190
|
+
* file has been completely processed. Therefore, as long as the policy
|
|
191
|
+
* file that you need exists, as soon as you have received any
|
|
192
|
+
* `ProgressEvent.PROGRESS` or `Event.COMPLETE` events from the
|
|
193
|
+
* `contentLoaderInfo` property of your Loader object, the policy file
|
|
194
|
+
* download is complete, and you can safely begin performing operations
|
|
195
|
+
* that require the policy file.
|
|
196
|
+
*
|
|
197
|
+
* If you set `checkPolicyFile` to `true`, and no relevant policy file is
|
|
198
|
+
* found, you will not receive any error indication until you attempt an
|
|
199
|
+
* operation that throws a `SecurityError` exception. However, once the
|
|
200
|
+
* LoaderInfo object dispatches a `ProgressEvent.PROGRESS` or
|
|
201
|
+
* `Event.COMPLETE` event, you can test whether a relevant policy file
|
|
202
|
+
* was found by checking the value of the `LoaderInfo.childAllowsParent`
|
|
203
|
+
* property.
|
|
204
|
+
*
|
|
205
|
+
* If you will not need pixel-level access to the image that you are
|
|
206
|
+
* loading, you should not set the `checkPolicyFile` property to `true`.
|
|
207
|
+
* Checking for a policy file in this case is wasteful, because it may
|
|
208
|
+
* delay the start of your download, and it may consume network bandwidth
|
|
209
|
+
* unnecessarily.
|
|
210
|
+
*
|
|
211
|
+
* Also try to avoid setting `checkPolicyFile` to `true` if you are using
|
|
212
|
+
* the `Loader.load()` method to download a SWF file. This is because
|
|
213
|
+
* SWF-to-SWF permissions are not controlled by policy files, but rather
|
|
214
|
+
* by the `Security.allowDomain()` method, and thus `checkPolicyFile` has
|
|
215
|
+
* no effect when you load a SWF file. Checking for a policy file in this
|
|
216
|
+
* case is wasteful, because it may delay the download of the SWF file,
|
|
217
|
+
* and it may consume network bandwidth unnecessarily. (Flash Player or
|
|
218
|
+
* AIR cannot tell whether your main download will be a SWF file or an
|
|
219
|
+
* image, because the policy file download occurs before the main
|
|
220
|
+
* download.)
|
|
221
|
+
*
|
|
222
|
+
* Be careful with `checkPolicyFile` if you are downloading an object
|
|
223
|
+
* from a URL that may use server-side HTTP redirects. Policy files are
|
|
224
|
+
* always retrieved from the corresponding initial URL that you specify
|
|
225
|
+
* in `URLRequest.url`. If the final object comes from a different URL
|
|
226
|
+
* because of HTTP redirects, then the initially downloaded policy files
|
|
227
|
+
* might not be applicable to the object's final URL, which is the URL
|
|
228
|
+
* that matters in security decisions. If you find yourself in this
|
|
229
|
+
* situation, you can examine the value of `LoaderInfo.url` after you
|
|
230
|
+
* have received a `ProgressEvent.PROGRESS` or `Event.COMPLETE` event,
|
|
231
|
+
* which tells you the object's final URL. Then call the
|
|
232
|
+
* `Security.loadPolicyFile()` method with a policy file URL based on the
|
|
233
|
+
* object's final URL. Then poll the value of
|
|
234
|
+
* `LoaderInfo.childAllowsParent` until it becomes `true`.
|
|
235
|
+
*
|
|
236
|
+
* You do not need to set this property for AIR content running in the
|
|
237
|
+
* application sandbox. Content in the AIR application sandbox can call
|
|
238
|
+
* the `BitmapData.draw()` method using any loaded image content as the
|
|
239
|
+
* source.
|
|
240
|
+
*/
|
|
241
|
+
checkPolicyFile: boolean;
|
|
242
|
+
/**
|
|
243
|
+
* Specifies whether to decode image data when it is used or when it is
|
|
244
|
+
* loaded.
|
|
245
|
+
*
|
|
246
|
+
* Under the default policy, `ImageDecodingPolicy.ON_DEMAND`, the runtime
|
|
247
|
+
* decodes the image data when the data is needed for display or other
|
|
248
|
+
* purpose. This policy maintains the decoding behavior used by previous
|
|
249
|
+
* versions of the runtime.
|
|
250
|
+
*
|
|
251
|
+
* Under the `ImageDecodingPolicy.ON_LOAD` policy, the runtime decodes
|
|
252
|
+
* the image immediately after it is loaded and before dispatching the
|
|
253
|
+
* complete event. Decoding images on load rather than on demand can
|
|
254
|
+
* improve animation and UI performance when several loaded images are
|
|
255
|
+
* displayed in quick succession, such as in a scrolling list or a cover
|
|
256
|
+
* flow control. On the other hand, using the onLoad policy
|
|
257
|
+
* indiscriminately can increase the peak memory usage of your
|
|
258
|
+
* application since more decoded image data might be in memory at one
|
|
259
|
+
* time than would be the case under the onDemand policy.
|
|
260
|
+
*
|
|
261
|
+
* Under both policies, the runtime uses the same cache and flush
|
|
262
|
+
* behavior after the image is decoded. The runtime can flush the decoded
|
|
263
|
+
* data at any time and re-decode the image the next time it is required.
|
|
264
|
+
*
|
|
265
|
+
* To set the image decoding policy (for example, to `ON_LOAD`):
|
|
266
|
+
*
|
|
267
|
+
* ```
|
|
268
|
+
* var loaderContext:LoaderContext = new LoaderContext();
|
|
269
|
+
* loaderContext.imageDecodingPolicy = ImageDecodingPolicy.ON_LOAD;
|
|
270
|
+
* var loader:Loader = new Loader();
|
|
271
|
+
* loader.load(new URLRequest("http://www.adobe.com/myimage.png"), loaderContext);
|
|
272
|
+
* ```
|
|
273
|
+
*/
|
|
274
|
+
imageDecodingPolicy: string;
|
|
275
|
+
/**
|
|
276
|
+
* An Object containing the parameters to pass to the LoaderInfo object
|
|
277
|
+
* of the content.
|
|
278
|
+
*
|
|
279
|
+
* Normally, the value of the `contentLoaderInfo.parameters` property is
|
|
280
|
+
* obtained by parsing the requesting URL. If the `parameters` var is
|
|
281
|
+
* set, the `contentLoaderInfo.parameters` gets its value from the
|
|
282
|
+
* LoaderContext object, instead of from the requesting URL. The
|
|
283
|
+
* `parameters` var accepts only objects containing name-value string
|
|
284
|
+
* pairs, similar to URL parameters. If the object does not contain
|
|
285
|
+
* name-value string pairs, an `IllegalOperationError` is thrown.
|
|
286
|
+
*
|
|
287
|
+
* The intent of this API is to enable the loading SWF file to forward
|
|
288
|
+
* its parameters to a loaded SWF file. This functionality is especially
|
|
289
|
+
* helpful when you use the `loadBytes()` method, since `LoadBytes` does
|
|
290
|
+
* not provide a means of passing parameters through the URL. Parameters
|
|
291
|
+
* can be forwarded successfully only to another AS3 SWF file; an AS1 or
|
|
292
|
+
* AS2 SWF file cannot receive the parameters in an accessible form,
|
|
293
|
+
* although the AVM1Movie's AS3 loaderInfo.parameters object will be the
|
|
294
|
+
* forwarded object.
|
|
295
|
+
*
|
|
296
|
+
* For example, consider the following URL:
|
|
297
|
+
*
|
|
298
|
+
* `http://yourdomain/users/jdoe/test01/child.swf?foo=bar;`
|
|
299
|
+
*
|
|
300
|
+
* The following code uses the LoaderContext.parameters property to
|
|
301
|
+
* replicate a parameter passed to this URL:
|
|
302
|
+
*
|
|
303
|
+
* ```
|
|
304
|
+
* import flash.system.LoaderContext;
|
|
305
|
+
* import flash.display.Loader;
|
|
306
|
+
* var l:Loader = new Loader();
|
|
307
|
+
* var lc:LoaderContext = new LoaderContext;
|
|
308
|
+
* lc.parameters = { "foo": "bar" };
|
|
309
|
+
* l.load(new URLRequest("child.swf"), lc);
|
|
310
|
+
* ```
|
|
311
|
+
*
|
|
312
|
+
* To verify that the parameter passed properly, use the following trace
|
|
313
|
+
* statement after you run this code:
|
|
314
|
+
*
|
|
315
|
+
* ```
|
|
316
|
+
* trace(loaderInfo.parameters.foo);
|
|
317
|
+
* ```
|
|
318
|
+
*
|
|
319
|
+
* If the content loaded successfully, this trace prints "bar".
|
|
320
|
+
*/
|
|
321
|
+
parameters: any;
|
|
322
|
+
/**
|
|
323
|
+
* The parent to which the Loader will attempt to add the loaded content.
|
|
324
|
+
*
|
|
325
|
+
* When content is completely loaded, the Loader object normally becomes
|
|
326
|
+
* the parent of the content. If `requestedContentParent` is set, the
|
|
327
|
+
* object that it specifies becomes the parent, unless a runtime error
|
|
328
|
+
* prevents the assignment. This reparenting can also be done after the
|
|
329
|
+
* `complete` event without use of this property. However, specifying the
|
|
330
|
+
* parent with `LoaderContext.requestedContentParent` eliminates extra
|
|
331
|
+
* events.
|
|
332
|
+
*
|
|
333
|
+
* `LoaderContext.requestedContentParent` sets the desired parent before
|
|
334
|
+
* frame one scripts in the loaded content execute, but after the
|
|
335
|
+
* constructor has run. If `requestedContentParent` is null (the
|
|
336
|
+
* default), the Loader object becomes the content's parent.
|
|
337
|
+
*
|
|
338
|
+
* If the loaded content is an AVM1Movie object, or if an error is thrown
|
|
339
|
+
* when `addChild()` is called on the `requestedContentParent` object,
|
|
340
|
+
* then the following actions occur:
|
|
341
|
+
*
|
|
342
|
+
* * The Loader object becomes the parent of the loaded content.
|
|
343
|
+
* * The runtime dispatches an `AsyncErrorEvent`.
|
|
344
|
+
*
|
|
345
|
+
* If the requested parent and the loaded content are in different
|
|
346
|
+
* security sandboxes, and if the requested parent does not have access
|
|
347
|
+
* to the loaded content, then the following actions occur:
|
|
348
|
+
*
|
|
349
|
+
* * The Loader becomes the parent of the loaded content.
|
|
350
|
+
* * The runtime dispatches a `SecurityErrorEvent`.
|
|
351
|
+
*
|
|
352
|
+
* The following code uses `requestedContentParent` to place the loaded
|
|
353
|
+
* content into a Sprite object:
|
|
354
|
+
*
|
|
355
|
+
* ```
|
|
356
|
+
* import openfl.system.LoaderContext;
|
|
357
|
+
* import openfl.display.Loader;
|
|
358
|
+
* import openfl.display.Sprite;
|
|
359
|
+
* var lc = new LoaderContext();
|
|
360
|
+
* var l = new Loader();
|
|
361
|
+
* var s = new Sprite();
|
|
362
|
+
* lc.requestedContentParent = s;
|
|
363
|
+
* addChild(s);
|
|
364
|
+
* l.load(new URLRequest("child.swf"), lc);
|
|
365
|
+
* ```
|
|
366
|
+
*
|
|
367
|
+
* When this code runs, the child SWF file appears on stage. This fact
|
|
368
|
+
* confirms that the Sprite object you added to the stage is the parent
|
|
369
|
+
* of the loaded child.swf file.
|
|
370
|
+
*/
|
|
371
|
+
requestedContentParent: DisplayObjectContainer;
|
|
372
|
+
/**
|
|
373
|
+
* Specifies the security domain to use for a `Loader.load()` operation.
|
|
374
|
+
* Use this property only when loading a SWF file (not an image).
|
|
375
|
+
*
|
|
376
|
+
* The choice of security domain is meaningful only if you are loading a
|
|
377
|
+
* SWF file that might come from a different domain (a different server)
|
|
378
|
+
* than the loading SWF file. When you load a SWF file from your own
|
|
379
|
+
* domain, it is always placed into your security domain. But when you
|
|
380
|
+
* load a SWF file from a different domain, you have two options. You can
|
|
381
|
+
* allow the loaded SWF file to be placed in its "natural" security
|
|
382
|
+
* domain, which is different from that of the loading SWF file; this is
|
|
383
|
+
* the default. The other option is to specify that you want to place the
|
|
384
|
+
* loaded SWF file placed into the same security domain as the loading
|
|
385
|
+
* SWF file, by setting `myLoaderContext.securityDomain` to be equal to
|
|
386
|
+
* `SecurityDomain.currentDomain`. This is called _import loading_, and
|
|
387
|
+
* it is equivalent, for security purposes, to copying the loaded SWF
|
|
388
|
+
* file to your own server and loading it from there. In order for import
|
|
389
|
+
* loading to succeed, the loaded SWF file's server must have a policy
|
|
390
|
+
* file trusting the domain of the loading SWF file.
|
|
391
|
+
*
|
|
392
|
+
* You can pass your own security domain only in
|
|
393
|
+
* `LoaderContext.securityDomain`. Attempting to pass any other security
|
|
394
|
+
* domain results in a `SecurityError` exception.
|
|
395
|
+
*
|
|
396
|
+
* Content in the AIR application security sandbox cannot load content
|
|
397
|
+
* from other sandboxes into its SecurityDomain.
|
|
398
|
+
*
|
|
399
|
+
* For more information, see the "Security" chapter in the _ActionScript
|
|
400
|
+
* 3.0 Developer's Guide_.
|
|
401
|
+
*/
|
|
402
|
+
securityDomain: SecurityDomain;
|
|
403
|
+
/**
|
|
404
|
+
* Creates a new LoaderContext object, with the specified settings. For
|
|
405
|
+
* complete details on these settings, see the descriptions of the
|
|
406
|
+
* properties of this class.
|
|
407
|
+
*
|
|
408
|
+
* @param checkPolicyFile Specifies whether a check should be made for
|
|
409
|
+
* the existence of a URL policy file before
|
|
410
|
+
* loading the object.
|
|
411
|
+
* @param applicationDomain Specifies the ApplicationDomain object to use
|
|
412
|
+
* for a Loader object.
|
|
413
|
+
* @param securityDomain Specifies the SecurityDomain object to use
|
|
414
|
+
* for a Loader object.
|
|
415
|
+
* _Note:_ Content in the air application
|
|
416
|
+
* security sandbox cannot load content from
|
|
417
|
+
* other sandboxes into its SecurityDomain.
|
|
418
|
+
*/
|
|
419
|
+
constructor(checkPolicyFile?: boolean, applicationDomain?: ApplicationDomain, securityDomain?: SecurityDomain);
|
|
420
|
+
}
|
|
421
|
+
//# sourceMappingURL=LoaderContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoaderContext.d.ts","sourceRoot":"","sources":["../../../lib/system/LoaderContext.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG1D,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAE3E;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,aAAc,SAAQ,QAAQ;IAGnC,YAAY,EAAE,GAAG,CAAC;IAEzB,OAAO,CAAC,kBAAkB,CAAoB;IAE9C;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACI,eAAe,EAAE,OAAO,CAAC;IAEhC;;;;;;;;;;;;;;;;;;;;OAoBG;IACI,2BAA2B,EAAE,OAAO,CAAC;IAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0EG;IACI,iBAAiB,EAAE,iBAAiB,CAAC;IAE5C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmFG;IACI,eAAe,EAAE,OAAO,CAAC;IAEhC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACI,mBAAmB,EAAE,MAAM,CAAC;IAEnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6CG;IACI,UAAU,EAAE,GAAG,CAAC;IAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgDG;IACI,sBAAsB,EAAE,sBAAsB,CAAC;IAEtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACI,cAAc,EAAE,cAAc,CAAC;IAEtC;;;;;;;;;;;;;;;OAeG;gBAEF,eAAe,GAAE,OAAe,EAChC,iBAAiB,GAAE,iBAAwB,EAC3C,cAAc,GAAE,cAAqB;CAWtC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ApplicationDomain } from '../system/ApplicationDomain';
|
|
3
|
+
import { ASObject } from '@awayfl/avm2';
|
|
4
|
+
/**
|
|
5
|
+
* The LoaderContext class provides options for loading SWF files and other
|
|
6
|
+
* media by using the Loader class. The LoaderContext class is used as the
|
|
7
|
+
* `context` parameter in the `load()` and `loadBytes()` methods of the
|
|
8
|
+
* Loader class.
|
|
9
|
+
*
|
|
10
|
+
* When loading SWF files with the `Loader.load()` method, you have two
|
|
11
|
+
* decisions to make: into which security domain the loaded SWF file should
|
|
12
|
+
* be placed, and into which application domain within that security domain?
|
|
13
|
+
* For more details on these choices, see the `applicationDomain` and
|
|
14
|
+
* `securityDomain` properties.
|
|
15
|
+
*
|
|
16
|
+
* When loading a SWF file with the `Loader.loadBytes()` method, you have the
|
|
17
|
+
* same application domain choice to make as for `Loader.load()`, but it's
|
|
18
|
+
* not necessary to specify a security domain, because `Loader.loadBytes()`
|
|
19
|
+
* always places its loaded SWF file into the security domain of the loading
|
|
20
|
+
* SWF file.
|
|
21
|
+
*
|
|
22
|
+
* When loading images (JPEG, GIF, or PNG) instead of SWF files, there is no
|
|
23
|
+
* need to specify a SecurityDomain or an application domain, because those
|
|
24
|
+
* concepts are meaningful only for SWF files. Instead, you have only one
|
|
25
|
+
* decision to make: do you need programmatic access to the pixels of the
|
|
26
|
+
* loaded image? If so, see the `checkPolicyFile` property. If you want to
|
|
27
|
+
* apply deblocking when loading an image, use the JPEGLoaderContext class
|
|
28
|
+
* instead of the LoaderContext class.
|
|
29
|
+
*/
|
|
30
|
+
var LoaderContext = /** @class */ (function (_super) {
|
|
31
|
+
__extends(LoaderContext, _super);
|
|
32
|
+
/**
|
|
33
|
+
* Creates a new LoaderContext object, with the specified settings. For
|
|
34
|
+
* complete details on these settings, see the descriptions of the
|
|
35
|
+
* properties of this class.
|
|
36
|
+
*
|
|
37
|
+
* @param checkPolicyFile Specifies whether a check should be made for
|
|
38
|
+
* the existence of a URL policy file before
|
|
39
|
+
* loading the object.
|
|
40
|
+
* @param applicationDomain Specifies the ApplicationDomain object to use
|
|
41
|
+
* for a Loader object.
|
|
42
|
+
* @param securityDomain Specifies the SecurityDomain object to use
|
|
43
|
+
* for a Loader object.
|
|
44
|
+
* _Note:_ Content in the air application
|
|
45
|
+
* security sandbox cannot load content from
|
|
46
|
+
* other sandboxes into its SecurityDomain.
|
|
47
|
+
*/
|
|
48
|
+
function LoaderContext(checkPolicyFile, applicationDomain, securityDomain) {
|
|
49
|
+
if (checkPolicyFile === void 0) { checkPolicyFile = false; }
|
|
50
|
+
if (applicationDomain === void 0) { applicationDomain = null; }
|
|
51
|
+
if (securityDomain === void 0) { securityDomain = null; }
|
|
52
|
+
var _this = _super.call(this) || this;
|
|
53
|
+
var sec = _this.sec;
|
|
54
|
+
_this.checkPolicyFile = checkPolicyFile;
|
|
55
|
+
_this.applicationDomain =
|
|
56
|
+
applicationDomain || new sec.flash.system.ApplicationDomain(ApplicationDomain.currentDomain);
|
|
57
|
+
_this.securityDomain = securityDomain;
|
|
58
|
+
return _this;
|
|
59
|
+
}
|
|
60
|
+
return LoaderContext;
|
|
61
|
+
}(ASObject));
|
|
62
|
+
export { LoaderContext };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ASArray, ASObject } from '@awayfl/avm2';
|
|
2
|
+
export declare class Security extends ASObject {
|
|
3
|
+
static classInitializer: any;
|
|
4
|
+
static classSymbols: string[];
|
|
5
|
+
static instanceSymbols: string[];
|
|
6
|
+
constructor();
|
|
7
|
+
static REMOTE: string;
|
|
8
|
+
static LOCAL_WITH_FILE: string;
|
|
9
|
+
static LOCAL_WITH_NETWORK: string;
|
|
10
|
+
static LOCAL_TRUSTED: string;
|
|
11
|
+
static APPLICATION: string;
|
|
12
|
+
private static _exactSettings;
|
|
13
|
+
private static _sandboxType;
|
|
14
|
+
static get exactSettings(): boolean;
|
|
15
|
+
static set exactSettings(value: boolean);
|
|
16
|
+
static get disableAVM1Loading(): boolean;
|
|
17
|
+
static set disableAVM1Loading(value: boolean);
|
|
18
|
+
static get sandboxType(): string;
|
|
19
|
+
static get pageDomain(): string;
|
|
20
|
+
static allowDomain(): void;
|
|
21
|
+
static allowInsecureDomain(): void;
|
|
22
|
+
static loadPolicyFile(url: string): void;
|
|
23
|
+
static showSettings(panel?: string): void;
|
|
24
|
+
static duplicateSandboxBridgeInputArguments(toplevel: ASObject, args: ASArray): ASArray;
|
|
25
|
+
static duplicateSandboxBridgeOutputArgument(toplevel: ASObject, arg: any): any;
|
|
26
|
+
}
|
|
27
|
+
export declare const enum CrossDomainSWFLoadingWhitelistResult {
|
|
28
|
+
/**
|
|
29
|
+
* The requested domain belongs to the same domain as SWF's.
|
|
30
|
+
*/
|
|
31
|
+
OwnDomain = 0,
|
|
32
|
+
/**
|
|
33
|
+
* The requested domain belongs to the other domain than SWF's.
|
|
34
|
+
*/
|
|
35
|
+
Remote = 1,
|
|
36
|
+
/**
|
|
37
|
+
* The requested domain is not whitelisted.
|
|
38
|
+
*/
|
|
39
|
+
Failed = 2
|
|
40
|
+
}
|
|
41
|
+
export interface ICrossDomainSWFLoadingWhitelist {
|
|
42
|
+
addToSWFLoadingWhitelist(domain: string, insecure: boolean, ownDomain: boolean): any;
|
|
43
|
+
checkDomainForSWFLoading(domain: string): CrossDomainSWFLoadingWhitelistResult;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=Security.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Security.d.ts","sourceRoot":"","sources":["../../../lib/system/Security.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAkB,MAAM,cAAc,CAAC;AAEjE,qBAAa,QAAS,SAAQ,QAAQ;IAGrC,MAAM,CAAC,gBAAgB,EAAE,GAAG,CAAQ;IAGpC,MAAM,CAAC,YAAY,EAAE,MAAM,EAAG,CAAQ;IAGtC,MAAM,CAAC,eAAe,EAAE,MAAM,EAAG,CAAQ;;IAOzC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAY;IACjC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAmB;IACjD,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAsB;IACvD,MAAM,CAAC,aAAa,EAAE,MAAM,CAAkB;IAC9C,MAAM,CAAC,WAAW,EAAE,MAAM,CAAiB;IAG3C,OAAO,CAAC,MAAM,CAAC,cAAc,CAAkB;IAE/C,OAAO,CAAC,MAAM,CAAC,YAAY,CAAoB;IAE/C,MAAM,KAAK,aAAa,IAAI,OAAO,CAElC;IAED,MAAM,KAAK,aAAa,CAAC,KAAK,EAAE,OAAO,EAGtC;IAED,MAAM,KAAK,kBAAkB,IAAI,OAAO,CAGvC;IAED,MAAM,KAAK,kBAAkB,CAAC,KAAK,EAAE,OAAO,EAI3C;IAED,MAAM,KAAK,WAAW,IAAI,MAAM,CAG/B;IAED,MAAM,KAAK,UAAU,IAAI,MAAM,CAM9B;IAED,MAAM,CAAC,WAAW,IAAI,IAAI;IAS1B,MAAM,CAAC,mBAAmB,IAAI,IAAI;IAQlC,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAKxC,MAAM,CAAC,YAAY,CAAC,KAAK,GAAE,MAAkB,GAAG,IAAI;IAKpD,MAAM,CAAC,oCAAoC,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,GAAG,OAAO;IAIvF,MAAM,CAAC,oCAAoC,CAAC,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,GAAG,GAAG;CAI9E;AAED,0BAAkB,oCAAoC;IACrD;;KAEI;IACJ,SAAS,IAAI;IACb;;KAEI;IACJ,MAAM,IAAI;IACV;;KAEI;IACJ,MAAM,IAAI;CACV;AAED,MAAM,WAAW,+BAA+B;IAC/C,wBAAwB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,OAAE;IAChF,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,oCAAoC,CAAC;CAC/E"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { ASObject, axCoerceString } from '@awayfl/avm2';
|
|
3
|
+
import { notImplemented, release, somewhatImplemented, FileLoadingService } from '@awayfl/swf-loader';
|
|
4
|
+
var Security = /** @class */ (function (_super) {
|
|
5
|
+
__extends(Security, _super);
|
|
6
|
+
function Security() {
|
|
7
|
+
return _super.call(this) || this;
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(Security, "exactSettings", {
|
|
10
|
+
// static _pageDomain: string;
|
|
11
|
+
get: function () {
|
|
12
|
+
return Security._exactSettings;
|
|
13
|
+
},
|
|
14
|
+
set: function (value) {
|
|
15
|
+
value = !!value;
|
|
16
|
+
Security._exactSettings = value;
|
|
17
|
+
},
|
|
18
|
+
enumerable: false,
|
|
19
|
+
configurable: true
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(Security, "disableAVM1Loading", {
|
|
22
|
+
get: function () {
|
|
23
|
+
release || notImplemented('public flash.system.Security::get disableAVM1Loading');
|
|
24
|
+
return;
|
|
25
|
+
// return Security._disableAVM1Loading;
|
|
26
|
+
},
|
|
27
|
+
set: function (value) {
|
|
28
|
+
value = !!value;
|
|
29
|
+
release || notImplemented('public flash.system.Security::set disableAVM1Loading');
|
|
30
|
+
return;
|
|
31
|
+
// Security._disableAVM1Loading = value;
|
|
32
|
+
},
|
|
33
|
+
enumerable: false,
|
|
34
|
+
configurable: true
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(Security, "sandboxType", {
|
|
37
|
+
get: function () {
|
|
38
|
+
release || somewhatImplemented('public flash.system.Security::get sandboxType');
|
|
39
|
+
return Security._sandboxType;
|
|
40
|
+
},
|
|
41
|
+
enumerable: false,
|
|
42
|
+
configurable: true
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(Security, "pageDomain", {
|
|
45
|
+
get: function () {
|
|
46
|
+
release || somewhatImplemented('public flash.system.Security::get pageDomain');
|
|
47
|
+
// TODO: convert this to proper URI parsing.
|
|
48
|
+
var pageHost = FileLoadingService.resolveUrl('/');
|
|
49
|
+
var parts = pageHost.split('/');
|
|
50
|
+
parts.pop();
|
|
51
|
+
return parts.pop();
|
|
52
|
+
},
|
|
53
|
+
enumerable: false,
|
|
54
|
+
configurable: true
|
|
55
|
+
});
|
|
56
|
+
Security.allowDomain = function () {
|
|
57
|
+
release || somewhatImplemented('public flash.system.Security::static allowDomain ["' +
|
|
58
|
+
Array.prototype.join.call(arguments, '", "') + '"]');
|
|
59
|
+
/*var whitelist: ICrossDomainSWFLoadingWhitelist = this.sec.player;
|
|
60
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
61
|
+
whitelist.addToSWFLoadingWhitelist(axCoerceString(arguments[i]) || '', false, false);
|
|
62
|
+
}*/
|
|
63
|
+
};
|
|
64
|
+
Security.allowInsecureDomain = function () {
|
|
65
|
+
release || somewhatImplemented('public flash.system.Security::static allowInsecureDomain');
|
|
66
|
+
/*var whitelist: ICrossDomainSWFLoadingWhitelist = this.sec.player;
|
|
67
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
68
|
+
whitelist.addToSWFLoadingWhitelist(axCoerceString(arguments[i]) || '', true, false);
|
|
69
|
+
}*/
|
|
70
|
+
};
|
|
71
|
+
Security.loadPolicyFile = function (url) {
|
|
72
|
+
url = axCoerceString(url);
|
|
73
|
+
release || somewhatImplemented('public flash.system.Security::static loadPolicyFile');
|
|
74
|
+
};
|
|
75
|
+
Security.showSettings = function (panel) {
|
|
76
|
+
if (panel === void 0) { panel = 'default'; }
|
|
77
|
+
panel = axCoerceString(panel);
|
|
78
|
+
release || notImplemented('public flash.system.Security::static showSettings');
|
|
79
|
+
return;
|
|
80
|
+
};
|
|
81
|
+
Security.duplicateSandboxBridgeInputArguments = function (toplevel, args) {
|
|
82
|
+
release || notImplemented('public flash.system.Security::static duplicateSandboxBridgeInputArguments');
|
|
83
|
+
return;
|
|
84
|
+
};
|
|
85
|
+
Security.duplicateSandboxBridgeOutputArgument = function (toplevel, arg) {
|
|
86
|
+
release || notImplemented('public flash.system.Security::static duplicateSandboxBridgeOutputArgument');
|
|
87
|
+
return;
|
|
88
|
+
};
|
|
89
|
+
// Called whenever the class is initialized.
|
|
90
|
+
Security.classInitializer = null;
|
|
91
|
+
// List of static symbols to link.
|
|
92
|
+
Security.classSymbols = null; // [];
|
|
93
|
+
// List of instance symbols to link.
|
|
94
|
+
Security.instanceSymbols = null; // [];
|
|
95
|
+
// JS -> AS Bindings
|
|
96
|
+
Security.REMOTE = 'remote';
|
|
97
|
+
Security.LOCAL_WITH_FILE = 'localWithFile';
|
|
98
|
+
Security.LOCAL_WITH_NETWORK = 'localWithNetwork';
|
|
99
|
+
Security.LOCAL_TRUSTED = 'localTrusted';
|
|
100
|
+
Security.APPLICATION = 'application';
|
|
101
|
+
// AS -> JS Bindings
|
|
102
|
+
Security._exactSettings = false;
|
|
103
|
+
// static _disableAVM1Loading: boolean;
|
|
104
|
+
Security._sandboxType = 'remote';
|
|
105
|
+
return Security;
|
|
106
|
+
}(ASObject));
|
|
107
|
+
export { Security };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SecurityDomain.d.ts","sourceRoot":"","sources":["../../../lib/system/SecurityDomain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,qBAAa,cAAe,SAAQ,QAAQ;IAG3C,WAAkB,aAAa,IAAI,cAAc,CAEhD;CACD"}
|