@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,394 @@
|
|
|
1
|
+
import { Debug } from '@awayjs/core';
|
|
2
|
+
import { ASObject } from '@awayfl/avm2';
|
|
3
|
+
import { EventDispatcher } from '../events/EventDispatcher';
|
|
4
|
+
import { KeyboardEvent } from '../events/KeyboardEvent';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Dispatches AS3 keyboard events to the focus event dispatcher.
|
|
8
|
+
*/
|
|
9
|
+
export class KeyboardEventDispatcher {
|
|
10
|
+
private _lastKeyCode = 0;
|
|
11
|
+
private _captureKeyPress = false;
|
|
12
|
+
private _charCodeMap: any [] = [];
|
|
13
|
+
target: EventDispatcher;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Converts DOM keyboard event data into AS3 keyboard events.
|
|
17
|
+
*/
|
|
18
|
+
public dispatchKeyboardEvent(event: KeyboardEventData) {
|
|
19
|
+
let keyCode = event.keyCode;
|
|
20
|
+
if (event.type === 'keydown') {
|
|
21
|
+
this._lastKeyCode = keyCode;
|
|
22
|
+
// Trying to capture charCode for ASCII keys.
|
|
23
|
+
this._captureKeyPress = keyCode === 8 || keyCode === 9 ||
|
|
24
|
+
keyCode === 13 || keyCode === 32 || (keyCode >= 48 && keyCode <= 90) ||
|
|
25
|
+
keyCode > 145;
|
|
26
|
+
if (this._captureKeyPress) {
|
|
27
|
+
return; // skipping keydown, waiting for keypress
|
|
28
|
+
}
|
|
29
|
+
this._charCodeMap[keyCode] = 0;
|
|
30
|
+
} else if (event.type === 'keypress') {
|
|
31
|
+
if (this._captureKeyPress) {
|
|
32
|
+
keyCode = this._lastKeyCode;
|
|
33
|
+
this._charCodeMap[keyCode] = event.charCode;
|
|
34
|
+
} else {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
if (this.target) {
|
|
40
|
+
const isKeyUp = event.type === 'keyup';
|
|
41
|
+
this.target.dispatchEvent(new KeyboardEvent(
|
|
42
|
+
isKeyUp ? 'keyUp' : 'keyDown',
|
|
43
|
+
true,
|
|
44
|
+
false,
|
|
45
|
+
isKeyUp ? this._charCodeMap[keyCode] : event.charCode,
|
|
46
|
+
isKeyUp ? event.keyCode : this._lastKeyCode,
|
|
47
|
+
event.location,
|
|
48
|
+
event.ctrlKey,
|
|
49
|
+
event.altKey,
|
|
50
|
+
event.shiftKey
|
|
51
|
+
));
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface KeyboardEventData {
|
|
57
|
+
type: string;
|
|
58
|
+
keyCode: number;
|
|
59
|
+
charCode: number;
|
|
60
|
+
location: number;
|
|
61
|
+
ctrlKey: boolean;
|
|
62
|
+
altKey: boolean;
|
|
63
|
+
shiftKey: boolean;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export class Keyboard extends ASObject {
|
|
67
|
+
|
|
68
|
+
// Called whenever the class is initialized.
|
|
69
|
+
static classInitializer: any = null;
|
|
70
|
+
|
|
71
|
+
// List of static symbols to link.
|
|
72
|
+
static classSymbols: string [] = null; // [];
|
|
73
|
+
|
|
74
|
+
// List of instance symbols to link.
|
|
75
|
+
static instanceSymbols: string [] = null; // [];
|
|
76
|
+
|
|
77
|
+
constructor () {
|
|
78
|
+
super();
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// JS -> AS Bindings
|
|
82
|
+
//static KEYNAME_UPARROW: string = "Up";
|
|
83
|
+
//static KEYNAME_DOWNARROW: string = "Down";
|
|
84
|
+
//static KEYNAME_LEFTARROW: string = "Left";
|
|
85
|
+
//static KEYNAME_RIGHTARROW: string = "Right";
|
|
86
|
+
//static KEYNAME_F1: string = "F1";
|
|
87
|
+
//static KEYNAME_F2: string = "F2";
|
|
88
|
+
//static KEYNAME_F3: string = "F3";
|
|
89
|
+
//static KEYNAME_F4: string = "F4";
|
|
90
|
+
//static KEYNAME_F5: string = "F5";
|
|
91
|
+
//static KEYNAME_F6: string = "F6";
|
|
92
|
+
//static KEYNAME_F7: string = "F7";
|
|
93
|
+
//static KEYNAME_F8: string = "F8";
|
|
94
|
+
//static KEYNAME_F9: string = "F9";
|
|
95
|
+
//static KEYNAME_F10: string = "F10";
|
|
96
|
+
//static KEYNAME_F11: string = "F11";
|
|
97
|
+
//static KEYNAME_F12: string = "F12";
|
|
98
|
+
//static KEYNAME_F13: string = "F13";
|
|
99
|
+
//static KEYNAME_F14: string = "F14";
|
|
100
|
+
//static KEYNAME_F15: string = "F15";
|
|
101
|
+
//static KEYNAME_F16: string = "F16";
|
|
102
|
+
//static KEYNAME_F17: string = "F17";
|
|
103
|
+
//static KEYNAME_F18: string = "F18";
|
|
104
|
+
//static KEYNAME_F19: string = "F19";
|
|
105
|
+
//static KEYNAME_F20: string = "F20";
|
|
106
|
+
//static KEYNAME_F21: string = "F21";
|
|
107
|
+
//static KEYNAME_F22: string = "F22";
|
|
108
|
+
//static KEYNAME_F23: string = "F23";
|
|
109
|
+
//static KEYNAME_F24: string = "F24";
|
|
110
|
+
//static KEYNAME_F25: string = "F25";
|
|
111
|
+
//static KEYNAME_F26: string = "F26";
|
|
112
|
+
//static KEYNAME_F27: string = "F27";
|
|
113
|
+
//static KEYNAME_F28: string = "F28";
|
|
114
|
+
//static KEYNAME_F29: string = "F29";
|
|
115
|
+
//static KEYNAME_F30: string = "F30";
|
|
116
|
+
//static KEYNAME_F31: string = "F31";
|
|
117
|
+
//static KEYNAME_F32: string = "F32";
|
|
118
|
+
//static KEYNAME_F33: string = "F33";
|
|
119
|
+
//static KEYNAME_F34: string = "F34";
|
|
120
|
+
//static KEYNAME_F35: string = "F35";
|
|
121
|
+
//static KEYNAME_INSERT: string = "Insert";
|
|
122
|
+
//static KEYNAME_DELETE: string = "Delete";
|
|
123
|
+
//static KEYNAME_HOME: string = "Home";
|
|
124
|
+
//static KEYNAME_BEGIN: string = "Begin";
|
|
125
|
+
//static KEYNAME_END: string = "End";
|
|
126
|
+
//static KEYNAME_PAGEUP: string = "PgUp";
|
|
127
|
+
//static KEYNAME_PAGEDOWN: string = "PgDn";
|
|
128
|
+
//static KEYNAME_PRINTSCREEN: string = "PrntScrn";
|
|
129
|
+
//static KEYNAME_SCROLLLOCK: string = "ScrlLck";
|
|
130
|
+
//static KEYNAME_PAUSE: string = "Pause";
|
|
131
|
+
//static KEYNAME_SYSREQ: string = "SysReq";
|
|
132
|
+
//static KEYNAME_BREAK: string = "Break";
|
|
133
|
+
//static KEYNAME_RESET: string = "Reset";
|
|
134
|
+
//static KEYNAME_STOP: string = "Stop";
|
|
135
|
+
//static KEYNAME_MENU: string = "Menu";
|
|
136
|
+
//static KEYNAME_USER: string = "User";
|
|
137
|
+
//static KEYNAME_SYSTEM: string = "Sys";
|
|
138
|
+
//static KEYNAME_PRINT: string = "Print";
|
|
139
|
+
//static KEYNAME_CLEARLINE: string = "ClrLn";
|
|
140
|
+
//static KEYNAME_CLEARDISPLAY: string = "ClrDsp";
|
|
141
|
+
//static KEYNAME_INSERTLINE: string = "InsLn";
|
|
142
|
+
//static KEYNAME_DELETELINE: string = "DelLn";
|
|
143
|
+
//static KEYNAME_INSERTCHAR: string = "InsChr";
|
|
144
|
+
//static KEYNAME_DELETECHAR: string = "DelChr";
|
|
145
|
+
//static KEYNAME_PREV: string = "Prev";
|
|
146
|
+
//static KEYNAME_NEXT: string = "Next";
|
|
147
|
+
//static KEYNAME_SELECT: string = "Select";
|
|
148
|
+
//static KEYNAME_EXECUTE: string = "Exec";
|
|
149
|
+
//static KEYNAME_UNDO: string = "Undo";
|
|
150
|
+
//static KEYNAME_REDO: string = "Redo";
|
|
151
|
+
//static KEYNAME_FIND: string = "Find";
|
|
152
|
+
//static KEYNAME_HELP: string = "Help";
|
|
153
|
+
//static KEYNAME_MODESWITCH: string = "ModeSw";
|
|
154
|
+
//static STRING_UPARROW: string = "";
|
|
155
|
+
//static STRING_DOWNARROW: string = "";
|
|
156
|
+
//static STRING_LEFTARROW: string = "";
|
|
157
|
+
//static STRING_RIGHTARROW: string = "";
|
|
158
|
+
//static STRING_F1: string = "";
|
|
159
|
+
//static STRING_F2: string = "";
|
|
160
|
+
//static STRING_F3: string = "";
|
|
161
|
+
//static STRING_F4: string = "";
|
|
162
|
+
//static STRING_F5: string = "";
|
|
163
|
+
//static STRING_F6: string = "";
|
|
164
|
+
//static STRING_F7: string = "";
|
|
165
|
+
//static STRING_F8: string = "";
|
|
166
|
+
//static STRING_F9: string = "";
|
|
167
|
+
//static STRING_F10: string = "";
|
|
168
|
+
//static STRING_F11: string = "";
|
|
169
|
+
//static STRING_F12: string = "";
|
|
170
|
+
//static STRING_F13: string = "";
|
|
171
|
+
//static STRING_F14: string = "";
|
|
172
|
+
//static STRING_F15: string = "";
|
|
173
|
+
//static STRING_F16: string = "";
|
|
174
|
+
//static STRING_F17: string = "";
|
|
175
|
+
//static STRING_F18: string = "";
|
|
176
|
+
//static STRING_F19: string = "";
|
|
177
|
+
//static STRING_F20: string = "";
|
|
178
|
+
//static STRING_F21: string = "";
|
|
179
|
+
//static STRING_F22: string = "";
|
|
180
|
+
//static STRING_F23: string = "";
|
|
181
|
+
//static STRING_F24: string = "";
|
|
182
|
+
//static STRING_F25: string = "";
|
|
183
|
+
//static STRING_F26: string = "";
|
|
184
|
+
//static STRING_F27: string = "";
|
|
185
|
+
//static STRING_F28: string = "";
|
|
186
|
+
//static STRING_F29: string = "";
|
|
187
|
+
//static STRING_F30: string = "";
|
|
188
|
+
//static STRING_F31: string = "";
|
|
189
|
+
//static STRING_F32: string = "";
|
|
190
|
+
//static STRING_F33: string = "";
|
|
191
|
+
//static STRING_F34: string = "";
|
|
192
|
+
//static STRING_F35: string = "";
|
|
193
|
+
//static STRING_INSERT: string = "";
|
|
194
|
+
//static STRING_DELETE: string = "";
|
|
195
|
+
//static STRING_HOME: string = "";
|
|
196
|
+
//static STRING_BEGIN: string = "";
|
|
197
|
+
//static STRING_END: string = "";
|
|
198
|
+
//static STRING_PAGEUP: string = "";
|
|
199
|
+
//static STRING_PAGEDOWN: string = "";
|
|
200
|
+
//static STRING_PRINTSCREEN: string = "";
|
|
201
|
+
//static STRING_SCROLLLOCK: string = "";
|
|
202
|
+
//static STRING_PAUSE: string = "";
|
|
203
|
+
//static STRING_SYSREQ: string = "";
|
|
204
|
+
//static STRING_BREAK: string = "";
|
|
205
|
+
//static STRING_RESET: string = "";
|
|
206
|
+
//static STRING_STOP: string = "";
|
|
207
|
+
//static STRING_MENU: string = "";
|
|
208
|
+
//static STRING_USER: string = "";
|
|
209
|
+
//static STRING_SYSTEM: string = "";
|
|
210
|
+
//static STRING_PRINT: string = "";
|
|
211
|
+
//static STRING_CLEARLINE: string = "";
|
|
212
|
+
//static STRING_CLEARDISPLAY: string = "";
|
|
213
|
+
//static STRING_INSERTLINE: string = "";
|
|
214
|
+
//static STRING_DELETELINE: string = "";
|
|
215
|
+
//static STRING_INSERTCHAR: string = "";
|
|
216
|
+
//static STRING_DELETECHAR: string = "";
|
|
217
|
+
//static STRING_PREV: string = "";
|
|
218
|
+
//static STRING_NEXT: string = "";
|
|
219
|
+
//static STRING_SELECT: string = "";
|
|
220
|
+
//static STRING_EXECUTE: string = "";
|
|
221
|
+
//static STRING_UNDO: string = "";
|
|
222
|
+
//static STRING_REDO: string = "";
|
|
223
|
+
//static STRING_FIND: string = "";
|
|
224
|
+
//static STRING_HELP: string = "";
|
|
225
|
+
//static STRING_MODESWITCH: string = "";
|
|
226
|
+
//static CharCodeStrings: any [] = undefined;
|
|
227
|
+
//static NUMBER_0: number /*uint*/ = 48;
|
|
228
|
+
//static NUMBER_1: number /*uint*/ = 49;
|
|
229
|
+
//static NUMBER_2: number /*uint*/ = 50;
|
|
230
|
+
//static NUMBER_3: number /*uint*/ = 51;
|
|
231
|
+
//static NUMBER_4: number /*uint*/ = 52;
|
|
232
|
+
//static NUMBER_5: number /*uint*/ = 53;
|
|
233
|
+
//static NUMBER_6: number /*uint*/ = 54;
|
|
234
|
+
//static NUMBER_7: number /*uint*/ = 55;
|
|
235
|
+
//static NUMBER_8: number /*uint*/ = 56;
|
|
236
|
+
//static NUMBER_9: number /*uint*/ = 57;
|
|
237
|
+
//static A: number /*uint*/ = 65;
|
|
238
|
+
//static B: number /*uint*/ = 66;
|
|
239
|
+
//static C: number /*uint*/ = 67;
|
|
240
|
+
//static D: number /*uint*/ = 68;
|
|
241
|
+
//static E: number /*uint*/ = 69;
|
|
242
|
+
//static F: number /*uint*/ = 70;
|
|
243
|
+
//static G: number /*uint*/ = 71;
|
|
244
|
+
//static H: number /*uint*/ = 72;
|
|
245
|
+
//static I: number /*uint*/ = 73;
|
|
246
|
+
//static J: number /*uint*/ = 74;
|
|
247
|
+
//static K: number /*uint*/ = 75;
|
|
248
|
+
//static L: number /*uint*/ = 76;
|
|
249
|
+
//static M: number /*uint*/ = 77;
|
|
250
|
+
//static N: number /*uint*/ = 78;
|
|
251
|
+
//static O: number /*uint*/ = 79;
|
|
252
|
+
//static P: number /*uint*/ = 80;
|
|
253
|
+
//static Q: number /*uint*/ = 81;
|
|
254
|
+
//static R: number /*uint*/ = 82;
|
|
255
|
+
//static S: number /*uint*/ = 83;
|
|
256
|
+
//static T: number /*uint*/ = 84;
|
|
257
|
+
//static U: number /*uint*/ = 85;
|
|
258
|
+
//static V: number /*uint*/ = 86;
|
|
259
|
+
//static W: number /*uint*/ = 87;
|
|
260
|
+
//static X: number /*uint*/ = 88;
|
|
261
|
+
//static Y: number /*uint*/ = 89;
|
|
262
|
+
//static Z: number /*uint*/ = 90;
|
|
263
|
+
//static SEMICOLON: number /*uint*/ = 186;
|
|
264
|
+
//static EQUAL: number /*uint*/ = 187;
|
|
265
|
+
//static COMMA: number /*uint*/ = 188;
|
|
266
|
+
//static MINUS: number /*uint*/ = 189;
|
|
267
|
+
//static PERIOD: number /*uint*/ = 190;
|
|
268
|
+
//static SLASH: number /*uint*/ = 191;
|
|
269
|
+
//static BACKQUOTE: number /*uint*/ = 192;
|
|
270
|
+
//static LEFTBRACKET: number /*uint*/ = 219;
|
|
271
|
+
//static BACKSLASH: number /*uint*/ = 220;
|
|
272
|
+
//static RIGHTBRACKET: number /*uint*/ = 221;
|
|
273
|
+
//static QUOTE: number /*uint*/ = 222;
|
|
274
|
+
//static ALTERNATE: number /*uint*/ = 18;
|
|
275
|
+
//static BACKSPACE: number /*uint*/ = 8;
|
|
276
|
+
//static CAPS_LOCK: number /*uint*/ = 20;
|
|
277
|
+
//static COMMAND: number /*uint*/ = 15;
|
|
278
|
+
//static CONTROL: number /*uint*/ = 17;
|
|
279
|
+
//static DELETE: number /*uint*/ = 46;
|
|
280
|
+
//static DOWN: number /*uint*/ = 40;
|
|
281
|
+
//static END: number /*uint*/ = 35;
|
|
282
|
+
//static ENTER: number /*uint*/ = 13;
|
|
283
|
+
//static ESCAPE: number /*uint*/ = 27;
|
|
284
|
+
//static F1: number /*uint*/ = 112;
|
|
285
|
+
//static F2: number /*uint*/ = 113;
|
|
286
|
+
//static F3: number /*uint*/ = 114;
|
|
287
|
+
//static F4: number /*uint*/ = 115;
|
|
288
|
+
//static F5: number /*uint*/ = 116;
|
|
289
|
+
//static F6: number /*uint*/ = 117;
|
|
290
|
+
//static F7: number /*uint*/ = 118;
|
|
291
|
+
//static F8: number /*uint*/ = 119;
|
|
292
|
+
//static F9: number /*uint*/ = 120;
|
|
293
|
+
//static F10: number /*uint*/ = 121;
|
|
294
|
+
//static F11: number /*uint*/ = 122;
|
|
295
|
+
//static F12: number /*uint*/ = 123;
|
|
296
|
+
//static F13: number /*uint*/ = 124;
|
|
297
|
+
//static F14: number /*uint*/ = 125;
|
|
298
|
+
//static F15: number /*uint*/ = 126;
|
|
299
|
+
//static HOME: number /*uint*/ = 36;
|
|
300
|
+
//static INSERT: number /*uint*/ = 45;
|
|
301
|
+
//static LEFT: number /*uint*/ = 37;
|
|
302
|
+
//static NUMPAD: number /*uint*/ = 21;
|
|
303
|
+
//static NUMPAD_0: number /*uint*/ = 96;
|
|
304
|
+
//static NUMPAD_1: number /*uint*/ = 97;
|
|
305
|
+
//static NUMPAD_2: number /*uint*/ = 98;
|
|
306
|
+
//static NUMPAD_3: number /*uint*/ = 99;
|
|
307
|
+
//static NUMPAD_4: number /*uint*/ = 100;
|
|
308
|
+
//static NUMPAD_5: number /*uint*/ = 101;
|
|
309
|
+
//static NUMPAD_6: number /*uint*/ = 102;
|
|
310
|
+
//static NUMPAD_7: number /*uint*/ = 103;
|
|
311
|
+
//static NUMPAD_8: number /*uint*/ = 104;
|
|
312
|
+
//static NUMPAD_9: number /*uint*/ = 105;
|
|
313
|
+
//static NUMPAD_ADD: number /*uint*/ = 107;
|
|
314
|
+
//static NUMPAD_DECIMAL: number /*uint*/ = 110;
|
|
315
|
+
//static NUMPAD_DIVIDE: number /*uint*/ = 111;
|
|
316
|
+
//static NUMPAD_ENTER: number /*uint*/ = 108;
|
|
317
|
+
//static NUMPAD_MULTIPLY: number /*uint*/ = 106;
|
|
318
|
+
//static NUMPAD_SUBTRACT: number /*uint*/ = 109;
|
|
319
|
+
//static PAGE_DOWN: number /*uint*/ = 34;
|
|
320
|
+
//static PAGE_UP: number /*uint*/ = 33;
|
|
321
|
+
//static RIGHT: number /*uint*/ = 39;
|
|
322
|
+
//static SHIFT: number /*uint*/ = 16;
|
|
323
|
+
//static SPACE: number /*uint*/ = 32;
|
|
324
|
+
//static TAB: number /*uint*/ = 9;
|
|
325
|
+
//static UP: number /*uint*/ = 38;
|
|
326
|
+
//static RED: number /*uint*/ = 16777216;
|
|
327
|
+
//static GREEN: number /*uint*/ = 16777217;
|
|
328
|
+
//static YELLOW: number /*uint*/ = 16777218;
|
|
329
|
+
//static BLUE: number /*uint*/ = 16777219;
|
|
330
|
+
//static CHANNEL_UP: number /*uint*/ = 16777220;
|
|
331
|
+
//static CHANNEL_DOWN: number /*uint*/ = 16777221;
|
|
332
|
+
//static RECORD: number /*uint*/ = 16777222;
|
|
333
|
+
//static PLAY: number /*uint*/ = 16777223;
|
|
334
|
+
//static PAUSE: number /*uint*/ = 16777224;
|
|
335
|
+
//static STOP: number /*uint*/ = 16777225;
|
|
336
|
+
//static FAST_FORWARD: number /*uint*/ = 16777226;
|
|
337
|
+
//static REWIND: number /*uint*/ = 16777227;
|
|
338
|
+
//static SKIP_FORWARD: number /*uint*/ = 16777228;
|
|
339
|
+
//static SKIP_BACKWARD: number /*uint*/ = 16777229;
|
|
340
|
+
//static NEXT: number /*uint*/ = 16777230;
|
|
341
|
+
//static PREVIOUS: number /*uint*/ = 16777231;
|
|
342
|
+
//static LIVE: number /*uint*/ = 16777232;
|
|
343
|
+
//static LAST: number /*uint*/ = 16777233;
|
|
344
|
+
//static MENU: number /*uint*/ = 16777234;
|
|
345
|
+
//static INFO: number /*uint*/ = 16777235;
|
|
346
|
+
//static GUIDE: number /*uint*/ = 16777236;
|
|
347
|
+
//static EXIT: number /*uint*/ = 16777237;
|
|
348
|
+
//static BACK: number /*uint*/ = 16777238;
|
|
349
|
+
//static AUDIO: number /*uint*/ = 16777239;
|
|
350
|
+
//static SUBTITLE: number /*uint*/ = 16777240;
|
|
351
|
+
//static DVR: number /*uint*/ = 16777241;
|
|
352
|
+
//static VOD: number /*uint*/ = 16777242;
|
|
353
|
+
//static INPUT: number /*uint*/ = 16777243;
|
|
354
|
+
//static SETUP: number /*uint*/ = 16777244;
|
|
355
|
+
//static HELP: number /*uint*/ = 16777245;
|
|
356
|
+
//static MASTER_SHELL: number /*uint*/ = 16777246;
|
|
357
|
+
//static SEARCH: number /*uint*/ = 16777247;
|
|
358
|
+
|
|
359
|
+
// AS -> JS Bindings
|
|
360
|
+
// static _capsLock: boolean;
|
|
361
|
+
// static _numLock: boolean;
|
|
362
|
+
// static _hasVirtualKeyboard: boolean;
|
|
363
|
+
// static _physicalKeyboardType: string;
|
|
364
|
+
static get capsLock(): boolean {
|
|
365
|
+
// @todo
|
|
366
|
+
Debug.throwPIR('playerglobals/ui/Keyboard', 'static get capsLock', '');
|
|
367
|
+
return false;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
static get numLock(): boolean {
|
|
371
|
+
// @todo
|
|
372
|
+
Debug.throwPIR('playerglobals/ui/Keyboard', 'static get numLock', '');
|
|
373
|
+
return false;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
static get hasVirtualKeyboard(): boolean {
|
|
377
|
+
// @todo
|
|
378
|
+
Debug.throwPIR('playerglobals/ui/Keyboard', 'static get hasVirtualKeyboard', '');
|
|
379
|
+
return false;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
static get physicalKeyboardType(): string {
|
|
383
|
+
// @todo
|
|
384
|
+
Debug.throwPIR('playerglobals/ui/Keyboard', 'static get physicalKeyboardType', '');
|
|
385
|
+
return '';
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
static isAccessible(): boolean {
|
|
389
|
+
// @todo
|
|
390
|
+
Debug.throwPIR('playerglobals/ui/Keyboard', 'static isAccessiblek', '');
|
|
391
|
+
return true;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
}
|
package/lib/ui/Mouse.ts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { ASObject } from '@awayfl/avm2';
|
|
2
|
+
import { Debug } from '@awayjs/core';
|
|
3
|
+
|
|
4
|
+
export class Mouse extends ASObject {
|
|
5
|
+
|
|
6
|
+
static axClass: typeof Mouse;
|
|
7
|
+
private static _cursor: string;
|
|
8
|
+
/*
|
|
9
|
+
The name of the native cursor.
|
|
10
|
+
*/
|
|
11
|
+
public static get cursor(): string {
|
|
12
|
+
return Mouse._cursor;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
public static set cursor(value: string) {
|
|
16
|
+
Mouse._cursor = value;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/*
|
|
20
|
+
[read-only] Indicates whether the computer or device displays a persistent cursor.
|
|
21
|
+
*/
|
|
22
|
+
public static get supportsCursor(): boolean {
|
|
23
|
+
// @todo
|
|
24
|
+
Debug.throwPIR('playerglobals/ui/Mouse', 'static get supportsCursor', '');
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/*
|
|
29
|
+
[read-only] Indicates whether the current configuration supports native cursors.
|
|
30
|
+
*/
|
|
31
|
+
public static get supportsNativeCursor(): boolean {
|
|
32
|
+
// @todo
|
|
33
|
+
Debug.throwPIR('playerglobals/ui/Mouse', 'static get supportsNativeCursor', '');
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/*
|
|
38
|
+
Hides the pointer.
|
|
39
|
+
*/
|
|
40
|
+
public static hide() {
|
|
41
|
+
this.sec.player.mouseManager.showCursor = false;
|
|
42
|
+
// @todo
|
|
43
|
+
// Debug.throwPIR('playerglobals/ui/Mouse', 'static hide', '');
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/*
|
|
47
|
+
Displays the pointer.
|
|
48
|
+
*/
|
|
49
|
+
public static show() {
|
|
50
|
+
this.sec.player.mouseManager.showCursor = true;
|
|
51
|
+
// @todo
|
|
52
|
+
// Debug.throwPIR('playerglobals/ui/Mouse', 'static show', '');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/*
|
|
56
|
+
Registers a native cursor under the given name, with the given data.
|
|
57
|
+
*/
|
|
58
|
+
public static registerCursor(name: string, cursor: any) {
|
|
59
|
+
// @todo
|
|
60
|
+
Debug.throwPIR('playerglobals/ui/Mouse', 'static registerCursor', '');
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/*
|
|
64
|
+
Unregisters a native cursor under the given name, with the given data.
|
|
65
|
+
*/
|
|
66
|
+
public static unregisterCursor(name: string) {
|
|
67
|
+
// @todo
|
|
68
|
+
Debug.throwPIR('playerglobals/ui/Mouse', 'static unregisterCursor', '');
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ASObject } from '@awayfl/avm2';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* flash.ui.MouseCursorData — data holder for Mouse.registerCursor().
|
|
5
|
+
*
|
|
6
|
+
* Custom native mouse cursors are not rendered by AwayFL (Mouse.registerCursor is a
|
|
7
|
+
* no-op), but content that constructs this class must not hit
|
|
8
|
+
* "Class native is not defined: flash.ui.MouseCursorData", so a working data holder
|
|
9
|
+
* is linked. (A fresh implementation: the _shumway_flash version has stale imports.)
|
|
10
|
+
*/
|
|
11
|
+
export class MouseCursorData extends ASObject {
|
|
12
|
+
|
|
13
|
+
static classInitializer: any = null;
|
|
14
|
+
static classSymbols: string[] = null;
|
|
15
|
+
static instanceSymbols: string[] = null;
|
|
16
|
+
|
|
17
|
+
private _data: any = null;
|
|
18
|
+
private _hotSpot: any = null;
|
|
19
|
+
private _frameRate: number = 0;
|
|
20
|
+
|
|
21
|
+
get data(): any {
|
|
22
|
+
return this._data;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
set data(value: any) {
|
|
26
|
+
this._data = value;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
get hotSpot(): any {
|
|
30
|
+
return this._hotSpot;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
set hotSpot(value: any) {
|
|
34
|
+
this._hotSpot = value;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
get frameRate(): number {
|
|
38
|
+
return this._frameRate;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
set frameRate(value: number) {
|
|
42
|
+
this._frameRate = +value;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { Debug } from '@awayjs/core';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The Multitouch class manages and provides information about the current environment's support for handling
|
|
5
|
+
* contact from user input devices, including contact that has two or more touch points
|
|
6
|
+
* (such as a user's fingers on a touch screen).
|
|
7
|
+
* When a user interacts with a device such as a mobile phone or tablet with a touch screen, the user typically
|
|
8
|
+
* touches the screen with his or her fingers or a pointing device. While there is a broad range of pointing devices,
|
|
9
|
+
* such as a mouse or a stylus, many of these devices only have a single point of contact with an application.
|
|
10
|
+
* For pointing
|
|
11
|
+
* devices with a single point of contact,
|
|
12
|
+
* user interaction events can be handled as a mouse event, or using a basic set of touch events
|
|
13
|
+
* (called "touch point" events).
|
|
14
|
+
* However, for pointing devices that have several
|
|
15
|
+
* points of contact and perform complex movement, such as the human hand,
|
|
16
|
+
* Flash runtimes support an additional set of event handling API called gesture events. The API
|
|
17
|
+
* for handling user interaction with these gesture events includes the following classes:
|
|
18
|
+
* <p class="- topic/p "><ul class="- topic/ul "><li class="- topic/li ">flash.events.TouchEvent</li>
|
|
19
|
+
* <li class="- topic/li ">flash.events.GestureEvent</li><li class="- topic/li ">flash.events.GesturePhase</li>
|
|
20
|
+
* <li class="- topic/li ">flash.events.TransformGestureEvent</li>
|
|
21
|
+
* <li class="- topic/li ">flash.events.PressAndTapGestureEvent</li>
|
|
22
|
+
* </ul></p>
|
|
23
|
+
* <p class="- topic/p ">Use the listed classes to write code that handles touch events.
|
|
24
|
+
* Use the Multitouch class to determine the
|
|
25
|
+
* current environment's support for touch interaction, and to manage the support of touch interaction if
|
|
26
|
+
* the current environment supports touch input.</p><p class="- topic/p ">
|
|
27
|
+
* You cannot create a Multitouch object directly from ActionScript code.
|
|
28
|
+
* If you call <codeph class="+ topic/ph pr-d/codeph ">new Multitouch()</codeph>,
|
|
29
|
+
* an exception is thrown.</p><p class="- topic/p "><b class="+ topic/ph hi-d/b ">Note:</b>
|
|
30
|
+
* The Multitouch feature is not supported for SWF files embedded in HTML running on Mac OS.</p>
|
|
31
|
+
*
|
|
32
|
+
*/
|
|
33
|
+
export class Multitouch {
|
|
34
|
+
/**
|
|
35
|
+
* Identifies the multi-touch mode for touch and gesture event handling. Use this property to manage
|
|
36
|
+
* whether or not events are dispatched as touch events with multiple points of contact and specific events
|
|
37
|
+
* for different gestures (such as rotation and pan), or only a single point of contact (such as tap), or
|
|
38
|
+
* none at all (contact is handled as a mouse event).
|
|
39
|
+
* To set this property, use values from the flash.ui.MultitouchInputMode class.
|
|
40
|
+
*/
|
|
41
|
+
public static get inputMode (): string {
|
|
42
|
+
// @todo
|
|
43
|
+
Debug.throwPIR('playerglobals/ui/Multitouch', 'static get inputMode', '');
|
|
44
|
+
return '';
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public static set inputMode (value: string) {
|
|
48
|
+
// @todo
|
|
49
|
+
Debug.throwPIR('playerglobals/ui/Multitouch', 'static set inputMode', '');
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
public static get mapTouchToMouse (): boolean {
|
|
53
|
+
// @todo
|
|
54
|
+
Debug.throwPIR('playerglobals/ui/Multitouch', 'static get mapTouchToMouse', '');
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
public static set mapTouchToMouse (value: boolean) {
|
|
59
|
+
// @todo
|
|
60
|
+
Debug.throwPIR('playerglobals/ui/Multitouch', 'static set mapTouchToMouse', '');
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The maximum number of concurrent touch points supported by the current environment.
|
|
65
|
+
*/
|
|
66
|
+
public static get maxTouchPoints (): number {
|
|
67
|
+
// @todo
|
|
68
|
+
Debug.throwPIR('playerglobals/ui/Multitouch', 'static get maxTouchPoints', '');
|
|
69
|
+
return 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* A Vector array (a typed array of string values) of multi-touch contact
|
|
74
|
+
* types supported in the current environment.
|
|
75
|
+
* The array of strings
|
|
76
|
+
* can be used as event types to register event listeners.
|
|
77
|
+
* Possible values are constants from the GestureEvent, PressAndTapGestureEvent, and
|
|
78
|
+
* TransformGestureEvent classes (such as GESTURE_PAN).
|
|
79
|
+
* If the Flash runtime is in an environment that does not support any multi-touch gestures,
|
|
80
|
+
* the value is null.Note: For Mac OS 10.5.3 and later, Multitouch.supportedGestures returns
|
|
81
|
+
* non-null values (possibly indicating incorrectly that gesture events are supported)
|
|
82
|
+
* even if the current hardware does not support gesture input.Use this property
|
|
83
|
+
* to test for multi-touch gesture support. Then, use event handlers for the available multi-touch
|
|
84
|
+
* gestures. For those gestures that are not supported in the current evironment, you'll need to create alternative
|
|
85
|
+
* event handling.
|
|
86
|
+
*/
|
|
87
|
+
public static get supportedGestures (): string[] {
|
|
88
|
+
// @todo
|
|
89
|
+
Debug.throwPIR('playerglobals/ui/Multitouch', 'static get supportedGestures', '');
|
|
90
|
+
return [];
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Indicates whether the current environment supports gesture input, such as rotating two fingers
|
|
95
|
+
* around a touch screen. Gesture events are listed in the TransformGestureEvent,
|
|
96
|
+
* PressAndTapGestureEvent, and GestureEvent classes.
|
|
97
|
+
* Note: For Mac OS 10.5.3 and later, this value is always true. Multitouch.supportsGestureEvent returns
|
|
98
|
+
* true even if the hardware does not support gesture events.
|
|
99
|
+
*/
|
|
100
|
+
public static get supportsGestureEvents (): boolean {
|
|
101
|
+
// @todo
|
|
102
|
+
Debug.throwPIR('playerglobals/ui/Multitouch', 'static get supportsGestureEvents', '');
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Indicates whether the current environment supports basic touch input, such as a single finger tap.
|
|
108
|
+
* Touch events are listed in the TouchEvent class.
|
|
109
|
+
*/
|
|
110
|
+
public static get supportsTouchEvents (): boolean {
|
|
111
|
+
// @todo
|
|
112
|
+
Debug.throwPIR('playerglobals/ui/Multitouch', 'static get supportsTouchEvents', '');
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
constructor () {}
|
|
117
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The MultitouchInputMode class provides values for the
|
|
3
|
+
* <codeph class="+ topic/ph pr-d/codeph ">inputMode</codeph> property in the flash.ui.Multitouch class.
|
|
4
|
+
* These values set the type of touch events the Flash runtime dispatches
|
|
5
|
+
* when the user interacts with a touch-enabled device.
|
|
6
|
+
*/
|
|
7
|
+
export class MultitouchInputMode {
|
|
8
|
+
/**
|
|
9
|
+
* Specifies that TransformGestureEvent, PressAndTapGestureEvent,
|
|
10
|
+
* and GestureEvent events are dispatched for the related user interaction supported by the current environment,
|
|
11
|
+
* and other touch events (such as a simple tap) are interpreted as mouse events.
|
|
12
|
+
*/
|
|
13
|
+
public static GESTURE: string = 'gesture';
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Specifies that all user contact with a touch-enabled device is interpreted as a type of mouse event.
|
|
17
|
+
*/
|
|
18
|
+
public static NONE: string = 'none';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Specifies that events are dispatched only for basic touch events,
|
|
22
|
+
* such as a single finger tap. When you use this setting,
|
|
23
|
+
* events listed in the TouchEvent class are dispatched; events listed in the TransformGestureEvent,
|
|
24
|
+
* PressAndTapGestureEvent, and GestureEvent classes are not dispatched.
|
|
25
|
+
*/
|
|
26
|
+
public static TOUCH_POINT: string = 'touchPoint';
|
|
27
|
+
}
|