@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,743 @@
|
|
|
1
|
+
import { EventDispatcher } from '../events/EventDispatcher';
|
|
2
|
+
import { ApplicationDomain } from '../system/ApplicationDomain';
|
|
3
|
+
import { IOErrorEvent } from '../events/IOErrorEvent';
|
|
4
|
+
import { ProgressEvent } from '../events/ProgressEvent';
|
|
5
|
+
import { Event } from '../events/Event';
|
|
6
|
+
import { ILoader } from '../ILoader';
|
|
7
|
+
import { Loader } from './Loader';
|
|
8
|
+
import { URLLoaderEvent, LoaderEvent as AwayLoaderEvent, Box, Debug } from '@awayjs/core';
|
|
9
|
+
import { DisplayObject } from './DisplayObject';
|
|
10
|
+
import { ByteArray } from '../utils/ByteArray';
|
|
11
|
+
import { DisplayObject as AwayDisplayObject } from '@awayjs/scene';
|
|
12
|
+
import { SecurityDomain } from '../SecurityDomain';
|
|
13
|
+
import { PickGroup } from '@awayjs/view';
|
|
14
|
+
import { AVMStage } from '@awayfl/swf-loader';
|
|
15
|
+
import { UncaughtErrorEvents } from '../events/UncaughtErrorEvents';
|
|
16
|
+
|
|
17
|
+
interface LoaderInfoCompleteQueueItem {
|
|
18
|
+
loaderInfo: LoaderInfo;
|
|
19
|
+
delayCnt: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function parseQueryString(url: string): Record<string, string> {
|
|
23
|
+
const result: Record<string, string> = {};
|
|
24
|
+
const index = url ? url.indexOf('?') : -1;
|
|
25
|
+
if (index === -1) {
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
new URLSearchParams(url.substring(index + 1).split('#')[0]).forEach((value, key) => {
|
|
29
|
+
result[key] = value;
|
|
30
|
+
});
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
export class LoaderInfoCompleteQueue {
|
|
34
|
+
private static _queue: LoaderInfoCompleteQueueItem[] = [];
|
|
35
|
+
public static DELAY: number = 2;
|
|
36
|
+
public static addQueue(LoaderInfo) {
|
|
37
|
+
this._queue.push({
|
|
38
|
+
loaderInfo:LoaderInfo,
|
|
39
|
+
delayCnt: this.DELAY
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
public static executeQueue() {
|
|
44
|
+
const queue = this._queue;
|
|
45
|
+
let i = queue.length;
|
|
46
|
+
let allDone: boolean = true;
|
|
47
|
+
while (i > 0) {
|
|
48
|
+
i--;
|
|
49
|
+
const loderInfoItem = queue[i];
|
|
50
|
+
loderInfoItem.delayCnt--;
|
|
51
|
+
if (loderInfoItem.delayCnt > 0) {
|
|
52
|
+
allDone = false;
|
|
53
|
+
} else if (loderInfoItem.delayCnt == 0) {
|
|
54
|
+
const newEvent = new (<SecurityDomain> loderInfoItem.loaderInfo.sec).flash.events.Event(Event.COMPLETE);
|
|
55
|
+
newEvent.currentTarget = loderInfoItem.loaderInfo;
|
|
56
|
+
loderInfoItem.loaderInfo.dispatchEvent(newEvent);
|
|
57
|
+
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
}
|
|
61
|
+
if (allDone)
|
|
62
|
+
queue.length = 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* The LoaderInfo export class provides information about a loaded SWF file or a
|
|
67
|
+
* loaded image file(JPEG, GIF, or PNG). LoaderInfo objects are available for
|
|
68
|
+
* any display object. The information provided includes load progress, the
|
|
69
|
+
* URLs of the loader and loaded content, the number of bytes total for the
|
|
70
|
+
* media, and the nominal height and width of the media.
|
|
71
|
+
*
|
|
72
|
+
* You can access LoaderInfo objects in two ways:
|
|
73
|
+
*
|
|
74
|
+
* * The `contentLoaderInfo` property of a flash.display.Loader
|
|
75
|
+
* object - The `contentLoaderInfo` property is always available
|
|
76
|
+
* for any Loader object. For a Loader object that has not called the
|
|
77
|
+
* `load()` or `loadBytes()` method, or that has not
|
|
78
|
+
* sufficiently loaded, attempting to access many of the properties of the
|
|
79
|
+
* `contentLoaderInfo` property throws an error.
|
|
80
|
+
* * The `loaderInfo` property of a display object.
|
|
81
|
+
*
|
|
82
|
+
* The `contentLoaderInfo` property of a Loader object provides
|
|
83
|
+
* information about the content that the Loader object is loading, whereas
|
|
84
|
+
* the `loaderInfo` property of a DisplayObject provides
|
|
85
|
+
* information about the root SWF file for that display object.
|
|
86
|
+
*
|
|
87
|
+
* When you use a Loader object to load a display object(such as a SWF
|
|
88
|
+
* file or a bitmap), the `loaderInfo` property of the display
|
|
89
|
+
* object is the same as the `contentLoaderInfo` property of the
|
|
90
|
+
* Loader object(`DisplayObject.loaderInfo =
|
|
91
|
+
* Loader.contentLoaderInfo`). Because the instance of the main export class of
|
|
92
|
+
* the SWF file has no Loader object, the `loaderInfo` property is
|
|
93
|
+
* the only way to access the LoaderInfo for the instance of the main export class of
|
|
94
|
+
* the SWF file.
|
|
95
|
+
*
|
|
96
|
+
* The following diagram shows the different uses of the LoaderInfo
|
|
97
|
+
* object - for the instance of the main export class of the SWF file, for the
|
|
98
|
+
* `contentLoaderInfo` property of a Loader object, and for the
|
|
99
|
+
* `loaderInfo` property of a loaded object:
|
|
100
|
+
*
|
|
101
|
+
* When a loading operation is not complete, some properties of the
|
|
102
|
+
* `contentLoaderInfo` property of a Loader object are not
|
|
103
|
+
* available. You can obtain some properties, such as
|
|
104
|
+
* `bytesLoaded`, `bytesTotal`, `url`,
|
|
105
|
+
* `loaderURL`, and `applicationDomain`. When the
|
|
106
|
+
* `loaderInfo` object dispatches the `init` event, you
|
|
107
|
+
* can access all properties of the `loaderInfo` object and the
|
|
108
|
+
* loaded image or SWF file.
|
|
109
|
+
*
|
|
110
|
+
* **Note:** All properties of LoaderInfo objects are read-only.
|
|
111
|
+
*
|
|
112
|
+
* The `EventDispatcher.dispatchEvent()` method is not
|
|
113
|
+
* applicable to LoaderInfo objects. If you call `dispatchEvent()`
|
|
114
|
+
* on a LoaderInfo object, an IllegalOperationError exception is thrown.
|
|
115
|
+
*
|
|
116
|
+
* @event complete Dispatched when data has loaded successfully. In other
|
|
117
|
+
* words, it is dispatched when all the content has been
|
|
118
|
+
* downloaded and the loading has finished. The
|
|
119
|
+
* `complete` event is always dispatched after
|
|
120
|
+
* the `init` event. The `init` event
|
|
121
|
+
* is dispatched when the object is ready to access, though
|
|
122
|
+
* the content may still be downloading.
|
|
123
|
+
* @event httpStatus Dispatched when a network request is made over HTTP and
|
|
124
|
+
* an HTTP status code can be detected.
|
|
125
|
+
* @event init Dispatched when the properties and methods of a loaded
|
|
126
|
+
* SWF file are accessible and ready for use. The content,
|
|
127
|
+
* however, can still be downloading. A LoaderInfo object
|
|
128
|
+
* dispatches the `init` event when the following
|
|
129
|
+
* conditions exist:
|
|
130
|
+
*
|
|
131
|
+
* * All properties and methods associated with the
|
|
132
|
+
* loaded object and those associated with the LoaderInfo
|
|
133
|
+
* object are accessible.
|
|
134
|
+
* * The constructors for all child objects have
|
|
135
|
+
* completed.
|
|
136
|
+
* * All ActionScript code in the first frame of the
|
|
137
|
+
* loaded SWF's main timeline has been executed.
|
|
138
|
+
*
|
|
139
|
+
* For example, an `Event.INIT` is dispatched
|
|
140
|
+
* when the first frame of a movie or animation is loaded.
|
|
141
|
+
* The movie is then accessible and can be added to the
|
|
142
|
+
* display list. The complete movie, however, can take
|
|
143
|
+
* longer to download. The `Event.COMPLETE` is
|
|
144
|
+
* only dispatched once the full movie is loaded.
|
|
145
|
+
*
|
|
146
|
+
* The `init` event always precedes the
|
|
147
|
+
* `complete` event.
|
|
148
|
+
* @event ioError Dispatched when an input or output error occurs that
|
|
149
|
+
* causes a load operation to fail.
|
|
150
|
+
* @event open Dispatched when a load operation starts.
|
|
151
|
+
* @event progress Dispatched when data is received as the download
|
|
152
|
+
* operation progresses.
|
|
153
|
+
* @event unload Dispatched by a LoaderInfo object whenever a loaded
|
|
154
|
+
* object is removed by using the `unload()`
|
|
155
|
+
* method of the Loader object, or when a second load is
|
|
156
|
+
* performed by the same Loader object and the original
|
|
157
|
+
* content is removed prior to the load beginning.
|
|
158
|
+
*/
|
|
159
|
+
export class LoaderInfo extends EventDispatcher {
|
|
160
|
+
private _bytes: ByteArray;
|
|
161
|
+
private _bytesLoaded: number = 0;
|
|
162
|
+
private _bytesTotal: number = 0;
|
|
163
|
+
private _url: string;
|
|
164
|
+
private _urlParameters: Record<string, string> = {};
|
|
165
|
+
private _flashVars: Record<string, string> = {};
|
|
166
|
+
private _parameters: any = null;
|
|
167
|
+
|
|
168
|
+
private _source: ByteArray;
|
|
169
|
+
private _loader: ILoader;
|
|
170
|
+
private _container: AwayDisplayObject;
|
|
171
|
+
private _onLoaderErrorDelegate: (event: AwayLoaderEvent) => void;
|
|
172
|
+
private _onLoaderStartDelegate: (event: AwayLoaderEvent) => void;
|
|
173
|
+
private _onLoadProgressDelegate: (event: URLLoaderEvent) => void;
|
|
174
|
+
public _onLoaderCompleteDelegate: (event: AwayLoaderEvent) => void;
|
|
175
|
+
|
|
176
|
+
private _swfVersion: number;
|
|
177
|
+
private _applicationDomain: ApplicationDomain;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* The ActionScript version of the loaded SWF file. The language
|
|
181
|
+
* version is specified by using the enumerations in the
|
|
182
|
+
* ActionScriptVersion class, such as
|
|
183
|
+
* `ActionScriptVersion.ACTIONSCRIPT2` and `ActionScriptVersion.ACTIONSCRIPT3`.
|
|
184
|
+
*
|
|
185
|
+
* **Note:** This property always has a value of either
|
|
186
|
+
* `ActionScriptVersion.ACTIONSCRIPT2` or `ActionScriptVersion.ACTIONSCRIPT3`.
|
|
187
|
+
* ActionScript 1.0 and 2.0 are both reported as
|
|
188
|
+
* `ActionScriptVersion.ACTIONSCRIPT2` (version 2.0). This property only
|
|
189
|
+
* distinguishes ActionScript 1.0 and 2.0 from ActionScript 3.0.
|
|
190
|
+
*
|
|
191
|
+
* @throws Error If the file is not downloaded sufficiently to retrieve the
|
|
192
|
+
* requested information.
|
|
193
|
+
* @throws Error If the file is not a SWF file.
|
|
194
|
+
*/
|
|
195
|
+
public get actionScriptVersion(): number {
|
|
196
|
+
// @todo
|
|
197
|
+
Debug.throwPIR('playerglobals/display/LoaderInfo', 'get actionScriptVersion', '');
|
|
198
|
+
return 0;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
public set source(value: ByteArray) {
|
|
202
|
+
this._source = value;
|
|
203
|
+
this._bytesTotal = value?.length || 0;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
// for AVM:
|
|
207
|
+
public getSymbolById(value: any): any {}
|
|
208
|
+
|
|
209
|
+
constructor(loader: ILoader, container: AwayDisplayObject) {
|
|
210
|
+
super();
|
|
211
|
+
|
|
212
|
+
// Events that are supposed to be working are registered as eventMappingExtern:
|
|
213
|
+
|
|
214
|
+
this.eventMappingExtern[Event.COMPLETE] = 'LoaderInfo:Event.COMPLETE';
|
|
215
|
+
this.eventMappingExtern[ProgressEvent.PROGRESS] = 'LoaderInfo:ProgressEvent.PROGRESS';
|
|
216
|
+
this.eventMappingExtern[IOErrorEvent.IO_ERROR] = 'LoaderInfo:IOErrorEvent.IO_ERROR';
|
|
217
|
+
|
|
218
|
+
// Events not supported yet are registered as eventMappingDummys:
|
|
219
|
+
|
|
220
|
+
this.eventMappingDummys[Event.UNLOAD] = 'LoaderInfo:Event.UNLOAD';
|
|
221
|
+
//this.eventMappingDummys[IOErrorEvent.IO_ERROR]="LoaderInfo:IOErrorEvent.IO_ERROR";
|
|
222
|
+
//this.eventMappingDummys[HTTPStatusEvent.IO_ERROR]="HTTPStatusEvent.IO_ERROR";
|
|
223
|
+
this.eventMappingDummys[Event.OPEN] = 'LoaderInfo:Event.OPEN';
|
|
224
|
+
this.eventMappingDummys[Event.INIT] = 'LoaderInfo:Event.INIT';
|
|
225
|
+
|
|
226
|
+
this._onLoaderStartDelegate = (event: AwayLoaderEvent) => this._onLoaderStart(event);
|
|
227
|
+
this._onLoadProgressDelegate = (event: URLLoaderEvent) => this._onLoadProgress(event);
|
|
228
|
+
this._onLoaderCompleteDelegate = (event: AwayLoaderEvent) => this._onLoaderComplete(event);
|
|
229
|
+
this._onLoaderErrorDelegate = this._onLoadeError.bind(this);
|
|
230
|
+
|
|
231
|
+
this._loader = loader;
|
|
232
|
+
this._container = container;
|
|
233
|
+
this._container.addEventListener(AwayLoaderEvent.LOADER_START, this._onLoaderStartDelegate);
|
|
234
|
+
this._container.addEventListener(URLLoaderEvent.LOAD_PROGRESS, this._onLoadProgressDelegate);
|
|
235
|
+
this._container.addEventListener(AwayLoaderEvent.LOADER_COMPLETE, this._onLoaderCompleteDelegate);
|
|
236
|
+
this._container.addEventListener(URLLoaderEvent.LOAD_ERROR, this._onLoaderErrorDelegate);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
private _onLoadeError(event: URLLoaderEvent): void {
|
|
240
|
+
const newEvent = new (<SecurityDomain> this.sec).flash.events.IOErrorEvent(IOErrorEvent.IO_ERROR);
|
|
241
|
+
newEvent.currentTarget = this;
|
|
242
|
+
this.dispatchEvent(newEvent);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
private _onLoaderStart(event: AwayLoaderEvent): void {
|
|
246
|
+
this._bytesLoaded = 0;
|
|
247
|
+
this._bytesTotal = this._source?.length || 0;
|
|
248
|
+
|
|
249
|
+
this._setURL(new URL(event.url, document.baseURI).href);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
private _setURL(value: string): void {
|
|
253
|
+
this._url = value;
|
|
254
|
+
// read now, as the url getter strips the query string
|
|
255
|
+
this._urlParameters = parseQueryString(value);
|
|
256
|
+
this._parameters = null;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Sets the FlashVars passed to the main SWF file by the embedding page
|
|
261
|
+
*/
|
|
262
|
+
public _setFlashVars(value: Record<string, any>): void {
|
|
263
|
+
this._flashVars = {};
|
|
264
|
+
for (const key in value) {
|
|
265
|
+
this._flashVars[key] = String(value[key]);
|
|
266
|
+
}
|
|
267
|
+
this._parameters = null;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
private _onLoadProgress(event: URLLoaderEvent): void {
|
|
271
|
+
this._bytesLoaded = event.urlLoader.bytesLoaded;
|
|
272
|
+
this._bytesTotal = event.urlLoader.bytesTotal;
|
|
273
|
+
|
|
274
|
+
const newEvent = new (<SecurityDomain> this.sec).flash.events.ProgressEvent(
|
|
275
|
+
ProgressEvent.PROGRESS, null, null, event.urlLoader.bytesLoaded, event.urlLoader.bytesTotal);
|
|
276
|
+
newEvent.currentTarget = this;
|
|
277
|
+
this.dispatchEvent(newEvent);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
private _onLoaderComplete(event: AwayLoaderEvent): void {
|
|
281
|
+
if (this._source) {
|
|
282
|
+
this._bytesTotal = this._bytesLoaded = this._source.length;
|
|
283
|
+
} else if (event.assets && event.assets.length) {
|
|
284
|
+
// use count of assets instead real bytes
|
|
285
|
+
this._bytesLoaded = event.assets.length;
|
|
286
|
+
this._bytesTotal = event.assets.length;
|
|
287
|
+
} else {
|
|
288
|
+
this._bytesTotal = this._bytesLoaded = this._bytesTotal || 1; //avoid devide on 0
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
this._url = new URL(event.url, document.baseURI).href;
|
|
292
|
+
|
|
293
|
+
LoaderInfoCompleteQueue.addQueue(this);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* When an external SWF file is loaded, all ActionScript 3.0 definitions
|
|
298
|
+
* contained in the loaded class are stored in the
|
|
299
|
+
* `applicationDomain` property.
|
|
300
|
+
*
|
|
301
|
+
* All code in a SWF file is defined to exist in an application domain.
|
|
302
|
+
* The current application domain is where your main application runs. The
|
|
303
|
+
* system domain contains all application domains, including the current
|
|
304
|
+
* domain and all classes used by Flash Player or Adobe AIR.
|
|
305
|
+
*
|
|
306
|
+
* All application domains, except the system domain, have an associated
|
|
307
|
+
* parent domain. The parent domain of your main application's
|
|
308
|
+
* `applicationDomain` is the system domain. Loaded classes are
|
|
309
|
+
* defined only when their parent doesn't already define them. You cannot
|
|
310
|
+
* override a loaded class definition with a newer definition.
|
|
311
|
+
*
|
|
312
|
+
* For usage examples of application domains, see the "Client System
|
|
313
|
+
* Environment" chapter in the _ActionScript 3.0 Developer's Guide_.
|
|
314
|
+
*
|
|
315
|
+
* @throws SecurityError This security sandbox of the caller is not allowed
|
|
316
|
+
* to access this ApplicationDomain.
|
|
317
|
+
*/
|
|
318
|
+
public get applicationDomain(): ApplicationDomain {
|
|
319
|
+
return this._applicationDomain;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* The bytes associated with a LoaderInfo object.
|
|
324
|
+
*
|
|
325
|
+
* @throws SecurityError If the object accessing this API is prevented from
|
|
326
|
+
* accessing the loaded object due to security
|
|
327
|
+
* restrictions. This situation can occur, for
|
|
328
|
+
* instance, when a Loader object attempts to access
|
|
329
|
+
* the `contentLoaderInfo.content` property
|
|
330
|
+
* and it is not granted security permission to access
|
|
331
|
+
* the loaded content.
|
|
332
|
+
*
|
|
333
|
+
* For more information related to security, see the
|
|
334
|
+
* Flash Player Developer Center Topic:
|
|
335
|
+
* [Security](http://www.adobe.com/go/devnet_security_en).
|
|
336
|
+
*/
|
|
337
|
+
public get bytes(): ByteArray {
|
|
338
|
+
// @todo
|
|
339
|
+
Debug.throwPIR('playerglobals/display/LoaderInfo', 'get bytes', '');
|
|
340
|
+
return null;
|
|
341
|
+
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* The number of bytes that are loaded for the media. When this number equals
|
|
346
|
+
* the value of `bytesTotal`, all of the bytes are loaded.
|
|
347
|
+
*/
|
|
348
|
+
public get bytesLoaded(): number {
|
|
349
|
+
return this._bytesLoaded;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
* The number of compressed bytes in the entire media file.
|
|
354
|
+
*
|
|
355
|
+
* Before the first `progress` event is dispatched by this
|
|
356
|
+
* LoaderInfo object's corresponding Loader object, `bytesTotal`
|
|
357
|
+
* is 0. After the first `progress` event from the Loader object,
|
|
358
|
+
* `bytesTotal` reflects the actual number of bytes to be
|
|
359
|
+
* downloaded.
|
|
360
|
+
*/
|
|
361
|
+
public get bytesTotal(): number {
|
|
362
|
+
return this._bytesTotal;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Expresses the trust relationship from content (child) to the Loader (parent).
|
|
367
|
+
* If the child has allowed the parent access, true; otherwise, false. This
|
|
368
|
+
* property is set to true if the child object has called the `allowDomain()`
|
|
369
|
+
* method to grant permission to the parent domain or if a URL policy is loaded
|
|
370
|
+
* at the child domain that grants permission to the parent domain. If child
|
|
371
|
+
* and parent are in the same domain, this property is set to true.
|
|
372
|
+
*
|
|
373
|
+
* For more information related to security, see the Flash Player Developer
|
|
374
|
+
* Center Topic: [Security](http://www.adobe.com/go/devnet_security_en).
|
|
375
|
+
*
|
|
376
|
+
* @throws Error Thrown if the file is not downloaded sufficiently to retrieve
|
|
377
|
+
* the requested information.
|
|
378
|
+
*/
|
|
379
|
+
public get childAllowsParent(): boolean {
|
|
380
|
+
// @todo
|
|
381
|
+
Debug.throwPIR('playerglobals/display/LoaderInfo', 'get childAllowsParent', '');
|
|
382
|
+
return false;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* A object that can be set by the loaded content's code to expose properties
|
|
387
|
+
* and methods that can be accessed by code in the Loader object's sandbox.
|
|
388
|
+
* This _sandbox bridge_ lets content from a non-application domain have
|
|
389
|
+
* controlled access to scripts in the AIR application sandbox, and vice versa.
|
|
390
|
+
* The sandbox bridge serves as a gateway between the sandboxes, providing
|
|
391
|
+
* explicit interaction between application and non-application security
|
|
392
|
+
* sandboxes.
|
|
393
|
+
*
|
|
394
|
+
* @throws SecurityError Only content in the loaded content's sandbox can set
|
|
395
|
+
* this property.
|
|
396
|
+
*/
|
|
397
|
+
public get childSandboxBridge(): any {
|
|
398
|
+
// @todo
|
|
399
|
+
Debug.throwPIR('playerglobals/display/LoaderInfo', 'get childSandboxBridge', '');
|
|
400
|
+
return null;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
public set childSandboxBridge(door: any) {
|
|
404
|
+
// @todo
|
|
405
|
+
Debug.throwPIR('playerglobals/display/LoaderInfo', 'set childSandboxBridge', '');
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
* The loaded object associated with this LoaderInfo object.
|
|
410
|
+
*
|
|
411
|
+
* @throws SecurityError If the object accessing this API is prevented from
|
|
412
|
+
* accessing the loaded object due to security
|
|
413
|
+
* restrictions. This situation can occur, for
|
|
414
|
+
* instance, when a Loader object attempts to access
|
|
415
|
+
* the `contentLoaderInfo.content` property
|
|
416
|
+
* and it is not granted security permission to access
|
|
417
|
+
* the loaded content.
|
|
418
|
+
*
|
|
419
|
+
* For more information related to security, see the
|
|
420
|
+
* Flash Player Developer Center Topic:
|
|
421
|
+
* [Security](http://www.adobe.com/go/devnet_security_en).
|
|
422
|
+
*/
|
|
423
|
+
public get content(): DisplayObject {
|
|
424
|
+
return this._loader.content;
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* The MIME type of the loaded file. The value is `null` if not
|
|
429
|
+
* enough of the file has loaded in order to determine the type. The
|
|
430
|
+
* following list gives the possible values:
|
|
431
|
+
*
|
|
432
|
+
* * `"application/x-shockwave-flash"`
|
|
433
|
+
* * `"image/jpeg"`
|
|
434
|
+
* * `"image/gif"`
|
|
435
|
+
* * `"image/png"`
|
|
436
|
+
*/
|
|
437
|
+
public get contentType(): string {
|
|
438
|
+
// @todo
|
|
439
|
+
Debug.throwPIR('playerglobals/display/LoaderInfo', 'get contentType', '');
|
|
440
|
+
return null;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* The nominal frame rate, in frames per second, of the loaded SWF file. This
|
|
445
|
+
* number is often an integer, but need not be.
|
|
446
|
+
*
|
|
447
|
+
* This value may differ from the actual frame rate in use. Flash Player
|
|
448
|
+
* or Adobe AIR only uses a single frame rate for all loaded SWF files at any
|
|
449
|
+
* one time, and this frame rate is determined by the nominal frame rate of
|
|
450
|
+
* the main SWF file. Also, the main frame rate may not be able to be
|
|
451
|
+
* achieved, depending on hardware, sound synchronization, and other
|
|
452
|
+
* factors.
|
|
453
|
+
*
|
|
454
|
+
* @throws Error If the file is not downloaded sufficiently to retrieve the
|
|
455
|
+
* requested information.
|
|
456
|
+
* @throws Error If the file is not a SWF file.
|
|
457
|
+
*/
|
|
458
|
+
public get frameRate(): number {
|
|
459
|
+
return AVMStage.instance().frameRate;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* The nominal height of the loaded file. This value might differ from the
|
|
464
|
+
* actual height at which the content is displayed, since the loaded content
|
|
465
|
+
* or its parent display objects might be scaled.
|
|
466
|
+
*
|
|
467
|
+
* @throws Error If the file is not downloaded sufficiently to retrieve the
|
|
468
|
+
* requested information.
|
|
469
|
+
*/
|
|
470
|
+
public get height(): number {
|
|
471
|
+
const node = AVMStage.instance().view.getNode(this._container);
|
|
472
|
+
const box: Box = PickGroup.getInstance().getBoundsPicker(node).getBoxBounds(node);
|
|
473
|
+
|
|
474
|
+
return (box == null) ? 0 : box.height;
|
|
475
|
+
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* Indicates if the `LoaderInfo.url` property has been truncated.
|
|
480
|
+
*
|
|
481
|
+
* When the `isURLInaccessible` value is true the `LoaderInfo.url` value is only
|
|
482
|
+
* the domain of the final URL from which the content loaded. For example, the
|
|
483
|
+
* property is truncated if the content is loaded from
|
|
484
|
+
* `http://www.adobe.com/assets/hello.swf`, and the `LoaderInfo.url` property
|
|
485
|
+
* has the value `http://www.adobe.com`. The `isURLInaccessible`
|
|
486
|
+
* value is true only when all of the following are also true:
|
|
487
|
+
*
|
|
488
|
+
* * An HTTP redirect occurred while loading the content.
|
|
489
|
+
* * The SWF file calling `Loader.load()` is from a different domain than the
|
|
490
|
+
* content's final URL.
|
|
491
|
+
* * The SWF file calling `Loader.load()` does not have permission to access
|
|
492
|
+
* the content. Permission is granted to access the content the same way
|
|
493
|
+
* permission is granted for `BitmapData.draw()`: call `Security.allowDomain()`
|
|
494
|
+
* to access a SWF file (or for non-SWF file content, establish a policy
|
|
495
|
+
* file and use the `LoaderContext.checkPolicyFile` property).
|
|
496
|
+
*
|
|
497
|
+
* **Note:** The `isURLInaccessible` property was added for Flash Player 10.1 and
|
|
498
|
+
* AIR 2.0. However, this property is made available to SWF files of all
|
|
499
|
+
* versions when the Flash runtime supports it. So, using some authoring tools
|
|
500
|
+
* in "strict mode" causes a compilation error. To work around the error use
|
|
501
|
+
* the indirect syntax `myLoaderInfo["isURLInaccessible"]`, or disable strict
|
|
502
|
+
* mode. If you are using Flash Professional CS5 or Flex SDK 4.1, you can use
|
|
503
|
+
* and compile this API for runtimes released before Flash Player 10.1 and AIR 2.
|
|
504
|
+
*
|
|
505
|
+
* For application content in AIR, the value of this property is always false.
|
|
506
|
+
*/
|
|
507
|
+
public get isURLInaccessible(): boolean {
|
|
508
|
+
// @todo
|
|
509
|
+
Debug.throwPIR('playerglobals/display/LoaderInfo', 'get isURLInaccessible', '');
|
|
510
|
+
return false;
|
|
511
|
+
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* The Loader object associated with this LoaderInfo object. If this
|
|
516
|
+
* LoaderInfo object is the `loaderInfo` property of the instance
|
|
517
|
+
* of the main export class of the SWF file, no Loader object is associated.
|
|
518
|
+
*
|
|
519
|
+
* @throws SecurityError If the object accessing this API is prevented from
|
|
520
|
+
* accessing the Loader object because of security
|
|
521
|
+
* restrictions. This can occur, for instance, when a
|
|
522
|
+
* loaded SWF file attempts to access its
|
|
523
|
+
* `loaderInfo.loader` property and it is
|
|
524
|
+
* not granted security permission to access the
|
|
525
|
+
* loading SWF file.
|
|
526
|
+
*
|
|
527
|
+
* For more information related to security, see the
|
|
528
|
+
* Flash Player Developer Center Topic:
|
|
529
|
+
* [Security](http://www.adobe.com/go/devnet_security_en).
|
|
530
|
+
*/
|
|
531
|
+
public get loader(): Loader {
|
|
532
|
+
return (this._loader instanceof Loader) ? this._loader : null;
|
|
533
|
+
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* The URL of the SWF file that initiated the loading of the media described
|
|
538
|
+
* by this LoaderInfo object. For the instance of the main class of the SWF
|
|
539
|
+
* file, this URL is the same as the SWF file's own URL.
|
|
540
|
+
*/
|
|
541
|
+
public get loaderURL(): string {
|
|
542
|
+
return this._loader.activeStage.getChildAt(0).loaderInfo.url;
|
|
543
|
+
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* An object that contains name-value pairs that represent the parameters
|
|
548
|
+
* provided to the loaded SWF file.
|
|
549
|
+
*
|
|
550
|
+
* You can use a `for-in` loop to extract all the names and
|
|
551
|
+
* values from the `parameters` object.
|
|
552
|
+
*
|
|
553
|
+
* The two sources of parameters are: the query string in the URL of the
|
|
554
|
+
* main SWF file, and the value of the `FlashVars` HTML parameter
|
|
555
|
+
* (this affects only the main SWF file).
|
|
556
|
+
*
|
|
557
|
+
* The `parameters` property replaces the ActionScript 1.0 and
|
|
558
|
+
* 2.0 technique of providing SWF file parameters as properties of the main
|
|
559
|
+
* timeline.
|
|
560
|
+
*
|
|
561
|
+
* The value of the `parameters` property is null for Loader
|
|
562
|
+
* objects that contain SWF files that use ActionScript 1.0 or 2.0. It is
|
|
563
|
+
* only non-null for Loader objects that contain SWF files that use
|
|
564
|
+
* ActionScript 3.0.
|
|
565
|
+
*/
|
|
566
|
+
public get parameters(): any {
|
|
567
|
+
if (!this._parameters) {
|
|
568
|
+
this._parameters = this.sec.createObjectFromJS(
|
|
569
|
+
Object.assign({}, this._urlParameters, this._flashVars));
|
|
570
|
+
}
|
|
571
|
+
return this._parameters;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* Expresses the trust relationship from Loader(parent) to the content
|
|
576
|
+
* (child). If the parent has allowed the child access, `true`;
|
|
577
|
+
* otherwise, `false`. This property is set to `true`
|
|
578
|
+
* if the parent object called the `allowDomain()` method to grant
|
|
579
|
+
* permission to the child domain or if a URL policy file is loaded at the
|
|
580
|
+
* parent domain granting permission to the child domain. If child and parent
|
|
581
|
+
* are in the same domain, this property is set to `true`.
|
|
582
|
+
*
|
|
583
|
+
* For more information related to security, see the Flash Player
|
|
584
|
+
* Developer Center Topic: [Security](http://www.adobe.com/go/devnet_security_en).
|
|
585
|
+
*
|
|
586
|
+
* @throws Error Thrown if the file is not downloaded sufficiently to
|
|
587
|
+
* retrieve the requested information.
|
|
588
|
+
*/
|
|
589
|
+
public get parentAllowsChild(): boolean {
|
|
590
|
+
// @todo
|
|
591
|
+
Debug.throwPIR('playerglobals/display/LoaderInfo', 'get parentAllowsChild', '');
|
|
592
|
+
return false;
|
|
593
|
+
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
/**
|
|
597
|
+
* A object that can be set by code in the Loader object's sandbox to expose
|
|
598
|
+
* properties and methods that can be accessed by the loaded content's code.
|
|
599
|
+
* This _sandbox bridge_ lets content from a non-application domain have
|
|
600
|
+
* controlled access to scripts in the AIR application sandbox, and vice versa.
|
|
601
|
+
* The sandbox bridge serves as a gateway between the sandboxes, providing
|
|
602
|
+
* explicit interaction between application and non-application security
|
|
603
|
+
* sandboxes.
|
|
604
|
+
*
|
|
605
|
+
* @throws SecurityError Only content in the Loader object's sandbox can set
|
|
606
|
+
* this property.
|
|
607
|
+
*/
|
|
608
|
+
public get parentSandboxBridge(): any {
|
|
609
|
+
// @todo
|
|
610
|
+
Debug.throwPIR('playerglobals/display/LoaderInfo', 'get parentSandboxBridge', '');
|
|
611
|
+
return null;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
public set parentSandboxBridge(door: any) {
|
|
615
|
+
// @todo
|
|
616
|
+
Debug.throwPIR('playerglobals/display/LoaderInfo', 'set parentSandboxBridge', '');
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
/**
|
|
620
|
+
* Expresses the domain relationship between the loader and the content:
|
|
621
|
+
* `true` if they have the same origin domain; `false`
|
|
622
|
+
* otherwise.
|
|
623
|
+
*
|
|
624
|
+
* @throws Error Thrown if the file is not downloaded sufficiently to
|
|
625
|
+
* retrieve the requested information.
|
|
626
|
+
*/
|
|
627
|
+
public get sameDomain(): boolean {
|
|
628
|
+
// @todo
|
|
629
|
+
Debug.throwPIR('playerglobals/display/LoaderInfo', 'get sameDomain', '');
|
|
630
|
+
return false;
|
|
631
|
+
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* An EventDispatcher instance that can be used to exchange events across
|
|
636
|
+
* security boundaries. Even when the Loader object and the loaded content
|
|
637
|
+
* originate from security domains that do not trust one another, both can
|
|
638
|
+
* access `sharedEvents` and send and receive events via this
|
|
639
|
+
* object.
|
|
640
|
+
*/
|
|
641
|
+
public get sharedEvents(): EventDispatcher {
|
|
642
|
+
// @todo
|
|
643
|
+
Debug.throwPIR('playerglobals/display/LoaderInfo', 'get sharedEvents', '');
|
|
644
|
+
return null;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* The file format version of the loaded SWF file. The file format is
|
|
649
|
+
* specified using the enumerations in the SWFVersion class, such as
|
|
650
|
+
* `SWFVersion.FLASH7` and `SWFVersion.FLASH9`.
|
|
651
|
+
*
|
|
652
|
+
* @throws Error If the file is not downloaded sufficiently to retrieve
|
|
653
|
+
* the requested information.
|
|
654
|
+
* @throws Error If the file is not a SWF file.
|
|
655
|
+
*/
|
|
656
|
+
public get swfVersion(): number {
|
|
657
|
+
return this._swfVersion;
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* An object that dispatches an `uncaughtError` event when an
|
|
662
|
+
* unhandled error occurs in code in this LoaderInfo object's SWF file. An
|
|
663
|
+
* uncaught error happens when an error is thrown outside of any
|
|
664
|
+
* `try..catch` blocks or when an ErrorEvent object is dispatched
|
|
665
|
+
* with no registered listeners.
|
|
666
|
+
*
|
|
667
|
+
* This property is created when the SWF associated with this LoaderInfo
|
|
668
|
+
* has finished loading. Until then the `uncaughtErrorEvents`
|
|
669
|
+
* property is `null`. In an ActionScript-only project, you can
|
|
670
|
+
* access this property during or after the execution of the constructor
|
|
671
|
+
* function of the main class of the SWF file. For a Flex project, the
|
|
672
|
+
* `uncaughtErrorEvents` property is available after the
|
|
673
|
+
* `applicationComplete` event is dispatched.
|
|
674
|
+
*/
|
|
675
|
+
public get uncaughtErrorEvents(): UncaughtErrorEvents {
|
|
676
|
+
return this._loader.uncaughtErrorEvents;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* The URL of the media being loaded.
|
|
681
|
+
*
|
|
682
|
+
* Before the first `progress` event is dispatched by this
|
|
683
|
+
* LoaderInfo object's corresponding Loader object, the value of the
|
|
684
|
+
* `url` property might reflect only the initial URL specified in
|
|
685
|
+
* the call to the `load()` method of the Loader object. After the
|
|
686
|
+
* first `progress` event, the `url` property reflects
|
|
687
|
+
* the media's final URL, after any redirects and relative URLs are
|
|
688
|
+
* resolved.
|
|
689
|
+
*
|
|
690
|
+
* In some cases, the value of the `url` property is truncated;
|
|
691
|
+
* see the `isURLInaccessible` property for details.
|
|
692
|
+
*/
|
|
693
|
+
public get url(): string {
|
|
694
|
+
if (this._url.includes('?')) {
|
|
695
|
+
this._url = this._url.substr(0, this._url.indexOf('?'));
|
|
696
|
+
}
|
|
697
|
+
return this._url;
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
public set url(value: string) {
|
|
701
|
+
this._setURL(value);
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
* The nominal width of the loaded content. This value might differ from the
|
|
706
|
+
* actual width at which the content is displayed, since the loaded content
|
|
707
|
+
* or its parent display objects might be scaled.
|
|
708
|
+
*
|
|
709
|
+
* @throws Error If the file is not downloaded sufficiently to retrieve the
|
|
710
|
+
* requested information.
|
|
711
|
+
*/
|
|
712
|
+
public get width(): number {
|
|
713
|
+
const node = AVMStage.instance().view.getNode(this._container);
|
|
714
|
+
const box: Box = PickGroup.getInstance().getBoundsPicker(node).getBoxBounds(node);
|
|
715
|
+
|
|
716
|
+
return (box == null) ? 0 : box.width;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* Returns the LoaderInfo object associated with a SWF file defined as an
|
|
721
|
+
* object.
|
|
722
|
+
*
|
|
723
|
+
* @param object The object for which you want to get an associated
|
|
724
|
+
* LoaderInfo object.
|
|
725
|
+
* @return The associated LoaderInfo object. Returns null when called
|
|
726
|
+
* in non-debugger builds (or when debugging is not enabled) or if
|
|
727
|
+
* the referenced object does not have an associated LoaderInfo
|
|
728
|
+
* object (such as some objects used by the AIR runtime).
|
|
729
|
+
* @throws SecurityError The caller is not running in the local trusted
|
|
730
|
+
* sandbox.
|
|
731
|
+
*/
|
|
732
|
+
public static getLoaderInfoByDefinition(object: any): LoaderInfo {
|
|
733
|
+
// @todo
|
|
734
|
+
Debug.throwPIR('playerglobals/display/LoaderInfo', 'static getLoaderInfoByDefinition', '');
|
|
735
|
+
return null;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
public _setApplicationDomain(value: ApplicationDomain) {
|
|
739
|
+
this._applicationDomain = value
|
|
740
|
+
|| new (<SecurityDomain> this.sec).flash.system.ApplicationDomain(ApplicationDomain.currentDomain);
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
}
|