@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.
Files changed (1076) hide show
  1. package/.eslintrc +101 -0
  2. package/.gitattributes +1 -0
  3. package/.github/ISSUE_TEMPLATE/bug_report.md +29 -0
  4. package/.prettierrc +8 -0
  5. package/LICENSE +201 -0
  6. package/README.md +1 -3
  7. package/bundle/awayfl-playerglobal.umd.js +2 -0
  8. package/bundle/awayfl-playerglobal.umd.js.map +1 -0
  9. package/copyVersionToIndex.js +24 -0
  10. package/dist/index.d.ts +15 -0
  11. package/dist/index.d.ts.map +1 -0
  12. package/dist/index.js +15 -0
  13. package/dist/lib/ILoader.d.ts +10 -0
  14. package/dist/lib/ILoader.d.ts.map +1 -0
  15. package/dist/lib/ILoader.js +1 -0
  16. package/dist/lib/PlayerGlobal.d.ts +28 -0
  17. package/dist/lib/PlayerGlobal.d.ts.map +1 -0
  18. package/dist/lib/PlayerGlobal.js +223 -0
  19. package/dist/lib/SecurityDomain.d.ts +195 -0
  20. package/dist/lib/SecurityDomain.d.ts.map +1 -0
  21. package/dist/lib/SecurityDomain.js +205 -0
  22. package/dist/lib/Settings.d.ts +5 -0
  23. package/dist/lib/Settings.d.ts.map +1 -0
  24. package/dist/lib/Settings.js +7 -0
  25. package/dist/lib/desktop/Clipboard.d.ts +251 -0
  26. package/dist/lib/desktop/Clipboard.d.ts.map +1 -0
  27. package/dist/lib/desktop/Clipboard.js +289 -0
  28. package/dist/lib/desktop/ClipboardFormats.d.ts +43 -0
  29. package/dist/lib/desktop/ClipboardFormats.d.ts.map +1 -0
  30. package/dist/lib/desktop/ClipboardFormats.js +45 -0
  31. package/dist/lib/display/Bitmap.d.ts +91 -0
  32. package/dist/lib/display/Bitmap.d.ts.map +1 -0
  33. package/dist/lib/display/Bitmap.js +168 -0
  34. package/dist/lib/display/BitmapData.d.ts +63 -0
  35. package/dist/lib/display/BitmapData.d.ts.map +1 -0
  36. package/dist/lib/display/BitmapData.js +315 -0
  37. package/dist/lib/display/BitmapDataChannel.d.ts +12 -0
  38. package/dist/lib/display/BitmapDataChannel.d.ts.map +1 -0
  39. package/dist/lib/display/BitmapDataChannel.js +21 -0
  40. package/dist/lib/display/DisplayObject.d.ts +986 -0
  41. package/dist/lib/display/DisplayObject.d.ts.map +1 -0
  42. package/dist/lib/display/DisplayObject.js +1553 -0
  43. package/dist/lib/display/DisplayObjectContainer.d.ts +327 -0
  44. package/dist/lib/display/DisplayObjectContainer.d.ts.map +1 -0
  45. package/dist/lib/display/DisplayObjectContainer.js +599 -0
  46. package/dist/lib/display/FrameLabel.d.ts +11 -0
  47. package/dist/lib/display/FrameLabel.d.ts.map +1 -0
  48. package/dist/lib/display/FrameLabel.js +34 -0
  49. package/dist/lib/display/Graphics.d.ts +94 -0
  50. package/dist/lib/display/Graphics.d.ts.map +1 -0
  51. package/dist/lib/display/Graphics.js +473 -0
  52. package/dist/lib/display/GraphicsBitmapFill.d.ts +13 -0
  53. package/dist/lib/display/GraphicsBitmapFill.d.ts.map +1 -0
  54. package/dist/lib/display/GraphicsBitmapFill.js +36 -0
  55. package/dist/lib/display/GraphicsEndFill.d.ts +7 -0
  56. package/dist/lib/display/GraphicsEndFill.d.ts.map +1 -0
  57. package/dist/lib/display/GraphicsEndFill.js +11 -0
  58. package/dist/lib/display/GraphicsGradientFill.d.ts +16 -0
  59. package/dist/lib/display/GraphicsGradientFill.d.ts.map +1 -0
  60. package/dist/lib/display/GraphicsGradientFill.js +28 -0
  61. package/dist/lib/display/GraphicsPath.d.ts +22 -0
  62. package/dist/lib/display/GraphicsPath.d.ts.map +1 -0
  63. package/dist/lib/display/GraphicsPath.js +63 -0
  64. package/dist/lib/display/GraphicsSolidFill.d.ts +9 -0
  65. package/dist/lib/display/GraphicsSolidFill.d.ts.map +1 -0
  66. package/dist/lib/display/GraphicsSolidFill.js +16 -0
  67. package/dist/lib/display/GraphicsStroke.d.ts +14 -0
  68. package/dist/lib/display/GraphicsStroke.d.ts.map +1 -0
  69. package/dist/lib/display/GraphicsStroke.js +26 -0
  70. package/dist/lib/display/GraphicsTrianglePath.d.ts +11 -0
  71. package/dist/lib/display/GraphicsTrianglePath.d.ts.map +1 -0
  72. package/dist/lib/display/GraphicsTrianglePath.js +20 -0
  73. package/dist/lib/display/IBitmapDataOwner.d.ts +6 -0
  74. package/dist/lib/display/IBitmapDataOwner.d.ts.map +1 -0
  75. package/dist/lib/display/IBitmapDataOwner.js +1 -0
  76. package/dist/lib/display/IBitmapDrawable.d.ts +10 -0
  77. package/dist/lib/display/IBitmapDrawable.d.ts.map +1 -0
  78. package/dist/lib/display/IBitmapDrawable.js +1 -0
  79. package/dist/lib/display/IGraphicsData.d.ts +13 -0
  80. package/dist/lib/display/IGraphicsData.d.ts.map +1 -0
  81. package/dist/lib/display/IGraphicsData.js +1 -0
  82. package/dist/lib/display/IVirtualSceneGraphItem.d.ts +9 -0
  83. package/dist/lib/display/IVirtualSceneGraphItem.d.ts.map +1 -0
  84. package/dist/lib/display/IVirtualSceneGraphItem.js +1 -0
  85. package/dist/lib/display/InteractiveObject.d.ts +502 -0
  86. package/dist/lib/display/InteractiveObject.d.ts.map +1 -0
  87. package/dist/lib/display/InteractiveObject.js +927 -0
  88. package/dist/lib/display/Loader.d.ts +492 -0
  89. package/dist/lib/display/Loader.d.ts.map +1 -0
  90. package/dist/lib/display/Loader.js +704 -0
  91. package/dist/lib/display/LoaderInfo.d.ts +480 -0
  92. package/dist/lib/display/LoaderInfo.d.ts.map +1 -0
  93. package/dist/lib/display/LoaderInfo.js +765 -0
  94. package/dist/lib/display/MovieClip.d.ts +201 -0
  95. package/dist/lib/display/MovieClip.d.ts.map +1 -0
  96. package/dist/lib/display/MovieClip.js +540 -0
  97. package/dist/lib/display/NativeMenu.d.ts +8 -0
  98. package/dist/lib/display/NativeMenu.d.ts.map +1 -0
  99. package/dist/lib/display/NativeMenu.js +13 -0
  100. package/dist/lib/display/NativeMenuItem.d.ts +11 -0
  101. package/dist/lib/display/NativeMenuItem.d.ts.map +1 -0
  102. package/dist/lib/display/NativeMenuItem.js +35 -0
  103. package/dist/lib/display/Scene.d.ts +23 -0
  104. package/dist/lib/display/Scene.d.ts.map +1 -0
  105. package/dist/lib/display/Scene.js +70 -0
  106. package/dist/lib/display/Shape.d.ts +38 -0
  107. package/dist/lib/display/Shape.d.ts.map +1 -0
  108. package/dist/lib/display/Shape.js +80 -0
  109. package/dist/lib/display/SimpleButton.d.ts +175 -0
  110. package/dist/lib/display/SimpleButton.d.ts.map +1 -0
  111. package/dist/lib/display/SimpleButton.js +522 -0
  112. package/dist/lib/display/Sprite.d.ts +204 -0
  113. package/dist/lib/display/Sprite.d.ts.map +1 -0
  114. package/dist/lib/display/Sprite.js +671 -0
  115. package/dist/lib/display/Stage.d.ts +723 -0
  116. package/dist/lib/display/Stage.d.ts.map +1 -0
  117. package/dist/lib/display/Stage.js +1298 -0
  118. package/dist/lib/errors/EOFError.d.ts +8 -0
  119. package/dist/lib/errors/EOFError.d.ts.map +1 -0
  120. package/dist/lib/errors/EOFError.js +18 -0
  121. package/dist/lib/errors/IOError.d.ts +8 -0
  122. package/dist/lib/errors/IOError.d.ts.map +1 -0
  123. package/dist/lib/errors/IOError.js +18 -0
  124. package/dist/lib/errors/IllegalOperationError.d.ts +8 -0
  125. package/dist/lib/errors/IllegalOperationError.d.ts.map +1 -0
  126. package/dist/lib/errors/IllegalOperationError.js +18 -0
  127. package/dist/lib/errors/InvalidSWFError.d.ts +8 -0
  128. package/dist/lib/errors/InvalidSWFError.d.ts.map +1 -0
  129. package/dist/lib/errors/InvalidSWFError.js +18 -0
  130. package/dist/lib/errors/MemoryError.d.ts +8 -0
  131. package/dist/lib/errors/MemoryError.d.ts.map +1 -0
  132. package/dist/lib/errors/MemoryError.js +18 -0
  133. package/dist/lib/errors/ScriptTimeoutError.d.ts +8 -0
  134. package/dist/lib/errors/ScriptTimeoutError.d.ts.map +1 -0
  135. package/dist/lib/errors/ScriptTimeoutError.js +18 -0
  136. package/dist/lib/errors/StackOverflowError.d.ts +8 -0
  137. package/dist/lib/errors/StackOverflowError.d.ts.map +1 -0
  138. package/dist/lib/errors/StackOverflowError.js +18 -0
  139. package/dist/lib/events/AccelerometerEvent.d.ts +13 -0
  140. package/dist/lib/events/AccelerometerEvent.d.ts.map +1 -0
  141. package/dist/lib/events/AccelerometerEvent.js +26 -0
  142. package/dist/lib/events/ActivityEvent.d.ts +10 -0
  143. package/dist/lib/events/ActivityEvent.d.ts.map +1 -0
  144. package/dist/lib/events/ActivityEvent.js +20 -0
  145. package/dist/lib/events/AsyncErrorEvent.d.ts +13 -0
  146. package/dist/lib/events/AsyncErrorEvent.d.ts.map +1 -0
  147. package/dist/lib/events/AsyncErrorEvent.js +31 -0
  148. package/dist/lib/events/ContextMenuEvent.d.ts +13 -0
  149. package/dist/lib/events/ContextMenuEvent.d.ts.map +1 -0
  150. package/dist/lib/events/ContextMenuEvent.js +24 -0
  151. package/dist/lib/events/DataEvent.d.ts +10 -0
  152. package/dist/lib/events/DataEvent.d.ts.map +1 -0
  153. package/dist/lib/events/DataEvent.js +19 -0
  154. package/dist/lib/events/ErrorEvent.d.ts +30 -0
  155. package/dist/lib/events/ErrorEvent.d.ts.map +1 -0
  156. package/dist/lib/events/ErrorEvent.js +53 -0
  157. package/dist/lib/events/Event.d.ts +87 -0
  158. package/dist/lib/events/Event.d.ts.map +1 -0
  159. package/dist/lib/events/Event.js +213 -0
  160. package/dist/lib/events/EventDispatcher.d.ts +57 -0
  161. package/dist/lib/events/EventDispatcher.d.ts.map +1 -0
  162. package/dist/lib/events/EventDispatcher.js +233 -0
  163. package/dist/lib/events/EventDispatcherBase.d.ts +61 -0
  164. package/dist/lib/events/EventDispatcherBase.d.ts.map +1 -0
  165. package/dist/lib/events/EventDispatcherBase.js +258 -0
  166. package/dist/lib/events/EventPhase.d.ts +26 -0
  167. package/dist/lib/events/EventPhase.d.ts.map +1 -0
  168. package/dist/lib/events/EventPhase.js +33 -0
  169. package/dist/lib/events/FocusEvent.d.ts +50 -0
  170. package/dist/lib/events/FocusEvent.d.ts.map +1 -0
  171. package/dist/lib/events/FocusEvent.js +102 -0
  172. package/dist/lib/events/FullScreenEvent.d.ts +12 -0
  173. package/dist/lib/events/FullScreenEvent.d.ts.map +1 -0
  174. package/dist/lib/events/FullScreenEvent.js +23 -0
  175. package/dist/lib/events/GameInputEvent.d.ts +27 -0
  176. package/dist/lib/events/GameInputEvent.d.ts.map +1 -0
  177. package/dist/lib/events/GameInputEvent.js +38 -0
  178. package/dist/lib/events/GeolocationEvent.d.ts +9 -0
  179. package/dist/lib/events/GeolocationEvent.d.ts.map +1 -0
  180. package/dist/lib/events/GeolocationEvent.js +25 -0
  181. package/dist/lib/events/GestureEvent.d.ts +33 -0
  182. package/dist/lib/events/GestureEvent.d.ts.map +1 -0
  183. package/dist/lib/events/GestureEvent.js +121 -0
  184. package/dist/lib/events/GesturePhase.d.ts +12 -0
  185. package/dist/lib/events/GesturePhase.d.ts.map +1 -0
  186. package/dist/lib/events/GesturePhase.js +18 -0
  187. package/dist/lib/events/HTTPStatusEvent.d.ts +40 -0
  188. package/dist/lib/events/HTTPStatusEvent.d.ts.map +1 -0
  189. package/dist/lib/events/HTTPStatusEvent.js +88 -0
  190. package/dist/lib/events/IEventMapper.d.ts +7 -0
  191. package/dist/lib/events/IEventMapper.d.ts.map +1 -0
  192. package/dist/lib/events/IEventMapper.js +1 -0
  193. package/dist/lib/events/IMEEvent.d.ts +11 -0
  194. package/dist/lib/events/IMEEvent.d.ts.map +1 -0
  195. package/dist/lib/events/IMEEvent.js +23 -0
  196. package/dist/lib/events/IOErrorEvent.d.ts +30 -0
  197. package/dist/lib/events/IOErrorEvent.d.ts.map +1 -0
  198. package/dist/lib/events/IOErrorEvent.js +46 -0
  199. package/dist/lib/events/KeyboardEvent.d.ts +46 -0
  200. package/dist/lib/events/KeyboardEvent.d.ts.map +1 -0
  201. package/dist/lib/events/KeyboardEvent.js +115 -0
  202. package/dist/lib/events/MouseEvent.d.ts +88 -0
  203. package/dist/lib/events/MouseEvent.d.ts.map +1 -0
  204. package/dist/lib/events/MouseEvent.js +267 -0
  205. package/dist/lib/events/NetDataEvent.d.ts +12 -0
  206. package/dist/lib/events/NetDataEvent.d.ts.map +1 -0
  207. package/dist/lib/events/NetDataEvent.js +22 -0
  208. package/dist/lib/events/NetStatusEvent.d.ts +29 -0
  209. package/dist/lib/events/NetStatusEvent.d.ts.map +1 -0
  210. package/dist/lib/events/NetStatusEvent.js +52 -0
  211. package/dist/lib/events/OutputProgressEvent.d.ts +11 -0
  212. package/dist/lib/events/OutputProgressEvent.d.ts.map +1 -0
  213. package/dist/lib/events/OutputProgressEvent.js +22 -0
  214. package/dist/lib/events/PressAndTapGestureEvent.d.ts +11 -0
  215. package/dist/lib/events/PressAndTapGestureEvent.d.ts.map +1 -0
  216. package/dist/lib/events/PressAndTapGestureEvent.js +28 -0
  217. package/dist/lib/events/ProgressEvent.d.ts +33 -0
  218. package/dist/lib/events/ProgressEvent.d.ts.map +1 -0
  219. package/dist/lib/events/ProgressEvent.js +65 -0
  220. package/dist/lib/events/SampleDataEvent.d.ts +108 -0
  221. package/dist/lib/events/SampleDataEvent.d.ts.map +1 -0
  222. package/dist/lib/events/SampleDataEvent.js +140 -0
  223. package/dist/lib/events/ShaderEvent.d.ts +11 -0
  224. package/dist/lib/events/ShaderEvent.d.ts.map +1 -0
  225. package/dist/lib/events/ShaderEvent.js +20 -0
  226. package/dist/lib/events/SoftKeyboardEvent.d.ts +12 -0
  227. package/dist/lib/events/SoftKeyboardEvent.d.ts.map +1 -0
  228. package/dist/lib/events/SoftKeyboardEvent.js +17 -0
  229. package/dist/lib/events/SoftKeyboardTrigger.d.ts +10 -0
  230. package/dist/lib/events/SoftKeyboardTrigger.d.ts.map +1 -0
  231. package/dist/lib/events/SoftKeyboardTrigger.js +16 -0
  232. package/dist/lib/events/StageVideoAvailabilityEvent.d.ts +10 -0
  233. package/dist/lib/events/StageVideoAvailabilityEvent.d.ts.map +1 -0
  234. package/dist/lib/events/StageVideoAvailabilityEvent.js +21 -0
  235. package/dist/lib/events/StageVideoEvent.d.ts +14 -0
  236. package/dist/lib/events/StageVideoEvent.d.ts.map +1 -0
  237. package/dist/lib/events/StageVideoEvent.js +26 -0
  238. package/dist/lib/events/StaticEvents.d.ts +4 -0
  239. package/dist/lib/events/StaticEvents.d.ts.map +1 -0
  240. package/dist/lib/events/StaticEvents.js +7 -0
  241. package/dist/lib/events/StatusEvent.d.ts +15 -0
  242. package/dist/lib/events/StatusEvent.d.ts.map +1 -0
  243. package/dist/lib/events/StatusEvent.js +46 -0
  244. package/dist/lib/events/SyncEvent.d.ts +10 -0
  245. package/dist/lib/events/SyncEvent.d.ts.map +1 -0
  246. package/dist/lib/events/SyncEvent.js +21 -0
  247. package/dist/lib/events/TextEvent.d.ts +31 -0
  248. package/dist/lib/events/TextEvent.d.ts.map +1 -0
  249. package/dist/lib/events/TextEvent.js +55 -0
  250. package/dist/lib/events/ThrottleEvent.d.ts +11 -0
  251. package/dist/lib/events/ThrottleEvent.d.ts.map +1 -0
  252. package/dist/lib/events/ThrottleEvent.js +23 -0
  253. package/dist/lib/events/ThrottleType.d.ts +11 -0
  254. package/dist/lib/events/ThrottleType.d.ts.map +1 -0
  255. package/dist/lib/events/ThrottleType.js +17 -0
  256. package/dist/lib/events/TimerEvent.d.ts +13 -0
  257. package/dist/lib/events/TimerEvent.d.ts.map +1 -0
  258. package/dist/lib/events/TimerEvent.js +26 -0
  259. package/dist/lib/events/TouchEvent.d.ts +430 -0
  260. package/dist/lib/events/TouchEvent.d.ts.map +1 -0
  261. package/dist/lib/events/TouchEvent.js +550 -0
  262. package/dist/lib/events/TransformGestureEvent.d.ts +12 -0
  263. package/dist/lib/events/TransformGestureEvent.d.ts.map +1 -0
  264. package/dist/lib/events/TransformGestureEvent.js +31 -0
  265. package/dist/lib/events/UncaughtErrorEvent.d.ts +9 -0
  266. package/dist/lib/events/UncaughtErrorEvent.d.ts.map +1 -0
  267. package/dist/lib/events/UncaughtErrorEvent.js +19 -0
  268. package/dist/lib/events/UncaughtErrorEvents.d.ts +23 -0
  269. package/dist/lib/events/UncaughtErrorEvents.d.ts.map +1 -0
  270. package/dist/lib/events/UncaughtErrorEvents.js +29 -0
  271. package/dist/lib/events/VideoEvent.d.ts +13 -0
  272. package/dist/lib/events/VideoEvent.d.ts.map +1 -0
  273. package/dist/lib/events/VideoEvent.js +24 -0
  274. package/dist/lib/external/ExternalInterface.d.ts +27 -0
  275. package/dist/lib/external/ExternalInterface.d.ts.map +1 -0
  276. package/dist/lib/external/ExternalInterface.js +298 -0
  277. package/dist/lib/factories/FlashSceneGraphFactory.d.ts +33 -0
  278. package/dist/lib/factories/FlashSceneGraphFactory.d.ts.map +1 -0
  279. package/dist/lib/factories/FlashSceneGraphFactory.js +175 -0
  280. package/dist/lib/filters/BevelFilter.d.ts +66 -0
  281. package/dist/lib/filters/BevelFilter.d.ts.map +1 -0
  282. package/dist/lib/filters/BevelFilter.js +207 -0
  283. package/dist/lib/filters/BitmapFilter.d.ts +27 -0
  284. package/dist/lib/filters/BitmapFilter.d.ts.map +1 -0
  285. package/dist/lib/filters/BitmapFilter.js +116 -0
  286. package/dist/lib/filters/BitmapFilterType.d.ts +26 -0
  287. package/dist/lib/filters/BitmapFilterType.d.ts.map +1 -0
  288. package/dist/lib/filters/BitmapFilterType.js +36 -0
  289. package/dist/lib/filters/BlurFilter.d.ts +23 -0
  290. package/dist/lib/filters/BlurFilter.d.ts.map +1 -0
  291. package/dist/lib/filters/BlurFilter.js +64 -0
  292. package/dist/lib/filters/ColorMatrixFilter.d.ts +39 -0
  293. package/dist/lib/filters/ColorMatrixFilter.d.ts.map +1 -0
  294. package/dist/lib/filters/ColorMatrixFilter.js +69 -0
  295. package/dist/lib/filters/ConvolutionFilter.d.ts +54 -0
  296. package/dist/lib/filters/ConvolutionFilter.d.ts.map +1 -0
  297. package/dist/lib/filters/ConvolutionFilter.js +180 -0
  298. package/dist/lib/filters/DisplacementMapFilter.d.ts +57 -0
  299. package/dist/lib/filters/DisplacementMapFilter.d.ts.map +1 -0
  300. package/dist/lib/filters/DisplacementMapFilter.js +159 -0
  301. package/dist/lib/filters/DropShadowFilter.d.ts +63 -0
  302. package/dist/lib/filters/DropShadowFilter.d.ts.map +1 -0
  303. package/dist/lib/filters/DropShadowFilter.js +185 -0
  304. package/dist/lib/filters/FilterBuilder.d.ts +6 -0
  305. package/dist/lib/filters/FilterBuilder.d.ts.map +1 -0
  306. package/dist/lib/filters/FilterBuilder.js +33 -0
  307. package/dist/lib/filters/GlowFilter.d.ts +53 -0
  308. package/dist/lib/filters/GlowFilter.d.ts.map +1 -0
  309. package/dist/lib/filters/GlowFilter.js +145 -0
  310. package/dist/lib/filters/GradientBevelFilter.d.ts +68 -0
  311. package/dist/lib/filters/GradientBevelFilter.d.ts.map +1 -0
  312. package/dist/lib/filters/GradientBevelFilter.js +228 -0
  313. package/dist/lib/filters/GradientGlowFilter.d.ts +59 -0
  314. package/dist/lib/filters/GradientGlowFilter.d.ts.map +1 -0
  315. package/dist/lib/filters/GradientGlowFilter.js +223 -0
  316. package/dist/lib/geom/ColorTransform.d.ts +91 -0
  317. package/dist/lib/geom/ColorTransform.d.ts.map +1 -0
  318. package/dist/lib/geom/ColorTransform.js +259 -0
  319. package/dist/lib/geom/Matrix.d.ts +288 -0
  320. package/dist/lib/geom/Matrix.d.ts.map +1 -0
  321. package/dist/lib/geom/Matrix.js +414 -0
  322. package/dist/lib/geom/Matrix3D.d.ts +45 -0
  323. package/dist/lib/geom/Matrix3D.d.ts.map +1 -0
  324. package/dist/lib/geom/Matrix3D.js +213 -0
  325. package/dist/lib/geom/PerspectiveProjection.d.ts +2 -0
  326. package/dist/lib/geom/PerspectiveProjection.d.ts.map +1 -0
  327. package/dist/lib/geom/PerspectiveProjection.js +1 -0
  328. package/dist/lib/geom/Point.d.ts +123 -0
  329. package/dist/lib/geom/Point.d.ts.map +1 -0
  330. package/dist/lib/geom/Point.js +196 -0
  331. package/dist/lib/geom/Rectangle.d.ts +310 -0
  332. package/dist/lib/geom/Rectangle.d.ts.map +1 -0
  333. package/dist/lib/geom/Rectangle.js +478 -0
  334. package/dist/lib/geom/Transform.d.ts +42 -0
  335. package/dist/lib/geom/Transform.d.ts.map +1 -0
  336. package/dist/lib/geom/Transform.js +112 -0
  337. package/dist/lib/geom/Vector3D.d.ts +324 -0
  338. package/dist/lib/geom/Vector3D.d.ts.map +1 -0
  339. package/dist/lib/geom/Vector3D.js +434 -0
  340. package/dist/lib/globalization/LocaleID.d.ts +38 -0
  341. package/dist/lib/globalization/LocaleID.d.ts.map +1 -0
  342. package/dist/lib/globalization/LocaleID.js +92 -0
  343. package/dist/lib/globalization/NumberFormatter.d.ts +391 -0
  344. package/dist/lib/globalization/NumberFormatter.d.ts.map +1 -0
  345. package/dist/lib/globalization/NumberFormatter.js +555 -0
  346. package/dist/lib/link.d.ts +2 -0
  347. package/dist/lib/link.d.ts.map +1 -0
  348. package/dist/lib/link.js +619 -0
  349. package/dist/lib/media/ID3Info.d.ts +60 -0
  350. package/dist/lib/media/ID3Info.d.ts.map +1 -0
  351. package/dist/lib/media/ID3Info.js +13 -0
  352. package/dist/lib/media/Sound.d.ts +353 -0
  353. package/dist/lib/media/Sound.d.ts.map +1 -0
  354. package/dist/lib/media/Sound.js +496 -0
  355. package/dist/lib/media/SoundChannel.d.ts +65 -0
  356. package/dist/lib/media/SoundChannel.d.ts.map +1 -0
  357. package/dist/lib/media/SoundChannel.js +152 -0
  358. package/dist/lib/media/SoundLoaderContext.d.ts +99 -0
  359. package/dist/lib/media/SoundLoaderContext.d.ts.map +1 -0
  360. package/dist/lib/media/SoundLoaderContext.js +21 -0
  361. package/dist/lib/media/SoundMixer.d.ts +49 -0
  362. package/dist/lib/media/SoundMixer.d.ts.map +1 -0
  363. package/dist/lib/media/SoundMixer.js +126 -0
  364. package/dist/lib/media/SoundTransform.d.ts +64 -0
  365. package/dist/lib/media/SoundTransform.d.ts.map +1 -0
  366. package/dist/lib/media/SoundTransform.js +146 -0
  367. package/dist/lib/net/FileFilter.d.ts +13 -0
  368. package/dist/lib/net/FileFilter.d.ts.map +1 -0
  369. package/dist/lib/net/FileFilter.js +40 -0
  370. package/dist/lib/net/FileReference.d.ts +49 -0
  371. package/dist/lib/net/FileReference.d.ts.map +1 -0
  372. package/dist/lib/net/FileReference.js +271 -0
  373. package/dist/lib/net/LocalConnection.d.ts +26 -0
  374. package/dist/lib/net/LocalConnection.d.ts.map +1 -0
  375. package/dist/lib/net/LocalConnection.js +251 -0
  376. package/dist/lib/net/NetConnection.d.ts +80 -0
  377. package/dist/lib/net/NetConnection.d.ts.map +1 -0
  378. package/dist/lib/net/NetConnection.js +447 -0
  379. package/dist/lib/net/Responder.d.ts +30 -0
  380. package/dist/lib/net/Responder.d.ts.map +1 -0
  381. package/dist/lib/net/Responder.js +49 -0
  382. package/dist/lib/net/SharedObject.d.ts +66 -0
  383. package/dist/lib/net/SharedObject.d.ts.map +1 -0
  384. package/dist/lib/net/SharedObject.js +323 -0
  385. package/dist/lib/net/Socket.d.ts +66 -0
  386. package/dist/lib/net/Socket.d.ts.map +1 -0
  387. package/dist/lib/net/Socket.js +248 -0
  388. package/dist/lib/net/URLLoader.d.ts +26 -0
  389. package/dist/lib/net/URLLoader.d.ts.map +1 -0
  390. package/dist/lib/net/URLLoader.js +116 -0
  391. package/dist/lib/net/URLLoaderDataFormat.d.ts +2 -0
  392. package/dist/lib/net/URLLoaderDataFormat.d.ts.map +1 -0
  393. package/dist/lib/net/URLLoaderDataFormat.js +1 -0
  394. package/dist/lib/net/URLRequest.d.ts +43 -0
  395. package/dist/lib/net/URLRequest.d.ts.map +1 -0
  396. package/dist/lib/net/URLRequest.js +141 -0
  397. package/dist/lib/net/URLVariables.d.ts +12 -0
  398. package/dist/lib/net/URLVariables.d.ts.map +1 -0
  399. package/dist/lib/net/URLVariables.js +67 -0
  400. package/dist/lib/system/ApplicationDomain.d.ts +104 -0
  401. package/dist/lib/system/ApplicationDomain.d.ts.map +1 -0
  402. package/dist/lib/system/ApplicationDomain.js +269 -0
  403. package/dist/lib/system/Capabilities.d.ts +58 -0
  404. package/dist/lib/system/Capabilities.d.ts.map +1 -0
  405. package/dist/lib/system/Capabilities.js +361 -0
  406. package/dist/lib/system/FSCommand.d.ts +5 -0
  407. package/dist/lib/system/FSCommand.d.ts.map +1 -0
  408. package/dist/lib/system/FSCommand.js +14 -0
  409. package/dist/lib/system/IME.d.ts +125 -0
  410. package/dist/lib/system/IME.d.ts.map +1 -0
  411. package/dist/lib/system/IME.js +163 -0
  412. package/dist/lib/system/LoaderContext.d.ts +421 -0
  413. package/dist/lib/system/LoaderContext.d.ts.map +1 -0
  414. package/dist/lib/system/LoaderContext.js +62 -0
  415. package/dist/lib/system/Security.d.ts +45 -0
  416. package/dist/lib/system/Security.d.ts.map +1 -0
  417. package/dist/lib/system/Security.js +107 -0
  418. package/dist/lib/system/SecurityDomain.d.ts +5 -0
  419. package/dist/lib/system/SecurityDomain.d.ts.map +1 -0
  420. package/dist/lib/system/SecurityDomain.js +18 -0
  421. package/dist/lib/system/System.d.ts +150 -0
  422. package/dist/lib/system/System.d.ts.map +1 -0
  423. package/dist/lib/system/System.js +238 -0
  424. package/dist/lib/system/TouchscreenType.d.ts +26 -0
  425. package/dist/lib/system/TouchscreenType.d.ts.map +1 -0
  426. package/dist/lib/system/TouchscreenType.js +35 -0
  427. package/dist/lib/text/CSMSettings.d.ts +11 -0
  428. package/dist/lib/text/CSMSettings.d.ts.map +1 -0
  429. package/dist/lib/text/CSMSettings.js +20 -0
  430. package/dist/lib/text/Font.d.ts +18 -0
  431. package/dist/lib/text/Font.d.ts.map +1 -0
  432. package/dist/lib/text/Font.js +70 -0
  433. package/dist/lib/text/FontType.d.ts +11 -0
  434. package/dist/lib/text/FontType.d.ts.map +1 -0
  435. package/dist/lib/text/FontType.js +17 -0
  436. package/dist/lib/text/StaticText.d.ts +13 -0
  437. package/dist/lib/text/StaticText.d.ts.map +1 -0
  438. package/dist/lib/text/StaticText.js +41 -0
  439. package/dist/lib/text/StyleSheet.d.ts +168 -0
  440. package/dist/lib/text/StyleSheet.d.ts.map +1 -0
  441. package/dist/lib/text/StyleSheet.js +198 -0
  442. package/dist/lib/text/TextColorType.d.ts +10 -0
  443. package/dist/lib/text/TextColorType.d.ts.map +1 -0
  444. package/dist/lib/text/TextColorType.js +15 -0
  445. package/dist/lib/text/TextDisplayMode.d.ts +11 -0
  446. package/dist/lib/text/TextDisplayMode.d.ts.map +1 -0
  447. package/dist/lib/text/TextDisplayMode.js +16 -0
  448. package/dist/lib/text/TextExtent.d.ts +11 -0
  449. package/dist/lib/text/TextExtent.d.ts.map +1 -0
  450. package/dist/lib/text/TextExtent.js +20 -0
  451. package/dist/lib/text/TextField.d.ts +911 -0
  452. package/dist/lib/text/TextField.d.ts.map +1 -0
  453. package/dist/lib/text/TextField.js +1398 -0
  454. package/dist/lib/text/TextFormat.d.ts +61 -0
  455. package/dist/lib/text/TextFormat.d.ts.map +1 -0
  456. package/dist/lib/text/TextFormat.js +266 -0
  457. package/dist/lib/text/TextFormatDisplay.d.ts +10 -0
  458. package/dist/lib/text/TextFormatDisplay.d.ts.map +1 -0
  459. package/dist/lib/text/TextFormatDisplay.js +19 -0
  460. package/dist/lib/text/TextLineMetrics.d.ts +57 -0
  461. package/dist/lib/text/TextLineMetrics.d.ts.map +1 -0
  462. package/dist/lib/text/TextLineMetrics.js +38 -0
  463. package/dist/lib/text/TextRenderer.d.ts +15 -0
  464. package/dist/lib/text/TextRenderer.d.ts.map +1 -0
  465. package/dist/lib/text/TextRenderer.js +71 -0
  466. package/dist/lib/text/TextRun.d.ts +19 -0
  467. package/dist/lib/text/TextRun.d.ts.map +1 -0
  468. package/dist/lib/text/TextRun.js +54 -0
  469. package/dist/lib/text/TextSnapshot.d.ts +15 -0
  470. package/dist/lib/text/TextSnapshot.d.ts.map +1 -0
  471. package/dist/lib/text/TextSnapshot.js +83 -0
  472. package/dist/lib/text/engine/BreakOpportunity.d.ts +11 -0
  473. package/dist/lib/text/engine/BreakOpportunity.d.ts.map +1 -0
  474. package/dist/lib/text/engine/BreakOpportunity.js +16 -0
  475. package/dist/lib/text/engine/CFFHinting.d.ts +9 -0
  476. package/dist/lib/text/engine/CFFHinting.d.ts.map +1 -0
  477. package/dist/lib/text/engine/CFFHinting.js +14 -0
  478. package/dist/lib/text/engine/ContentElement.d.ts +37 -0
  479. package/dist/lib/text/engine/ContentElement.d.ts.map +1 -0
  480. package/dist/lib/text/engine/ContentElement.js +123 -0
  481. package/dist/lib/text/engine/DigitCase.d.ts +10 -0
  482. package/dist/lib/text/engine/DigitCase.d.ts.map +1 -0
  483. package/dist/lib/text/engine/DigitCase.js +16 -0
  484. package/dist/lib/text/engine/DigitWidth.d.ts +10 -0
  485. package/dist/lib/text/engine/DigitWidth.d.ts.map +1 -0
  486. package/dist/lib/text/engine/DigitWidth.js +16 -0
  487. package/dist/lib/text/engine/EastAsianJustifier.d.ts +12 -0
  488. package/dist/lib/text/engine/EastAsianJustifier.d.ts.map +1 -0
  489. package/dist/lib/text/engine/EastAsianJustifier.js +50 -0
  490. package/dist/lib/text/engine/ElementFormat.d.ts +69 -0
  491. package/dist/lib/text/engine/ElementFormat.d.ts.map +1 -0
  492. package/dist/lib/text/engine/ElementFormat.js +291 -0
  493. package/dist/lib/text/engine/FontDescription.d.ts +31 -0
  494. package/dist/lib/text/engine/FontDescription.d.ts.map +1 -0
  495. package/dist/lib/text/engine/FontDescription.js +113 -0
  496. package/dist/lib/text/engine/FontLookup.d.ts +9 -0
  497. package/dist/lib/text/engine/FontLookup.d.ts.map +1 -0
  498. package/dist/lib/text/engine/FontLookup.js +15 -0
  499. package/dist/lib/text/engine/FontMetrics.d.ts +18 -0
  500. package/dist/lib/text/engine/FontMetrics.d.ts.map +1 -0
  501. package/dist/lib/text/engine/FontMetrics.js +24 -0
  502. package/dist/lib/text/engine/FontPosture.d.ts +9 -0
  503. package/dist/lib/text/engine/FontPosture.d.ts.map +1 -0
  504. package/dist/lib/text/engine/FontPosture.js +15 -0
  505. package/dist/lib/text/engine/FontWeight.d.ts +9 -0
  506. package/dist/lib/text/engine/FontWeight.d.ts.map +1 -0
  507. package/dist/lib/text/engine/FontWeight.js +15 -0
  508. package/dist/lib/text/engine/GraphicElement.d.ts +16 -0
  509. package/dist/lib/text/engine/GraphicElement.d.ts.map +1 -0
  510. package/dist/lib/text/engine/GraphicElement.js +72 -0
  511. package/dist/lib/text/engine/GroupElement.d.ts +23 -0
  512. package/dist/lib/text/engine/GroupElement.d.ts.map +1 -0
  513. package/dist/lib/text/engine/GroupElement.js +102 -0
  514. package/dist/lib/text/engine/JustificationStyle.d.ts +10 -0
  515. package/dist/lib/text/engine/JustificationStyle.d.ts.map +1 -0
  516. package/dist/lib/text/engine/JustificationStyle.js +16 -0
  517. package/dist/lib/text/engine/Kerning.d.ts +10 -0
  518. package/dist/lib/text/engine/Kerning.d.ts.map +1 -0
  519. package/dist/lib/text/engine/Kerning.js +16 -0
  520. package/dist/lib/text/engine/LigatureLevel.d.ts +12 -0
  521. package/dist/lib/text/engine/LigatureLevel.d.ts.map +1 -0
  522. package/dist/lib/text/engine/LigatureLevel.js +18 -0
  523. package/dist/lib/text/engine/LineJustification.d.ts +11 -0
  524. package/dist/lib/text/engine/LineJustification.d.ts.map +1 -0
  525. package/dist/lib/text/engine/LineJustification.js +17 -0
  526. package/dist/lib/text/engine/NativehacksForTLF.d.ts +22 -0
  527. package/dist/lib/text/engine/NativehacksForTLF.d.ts.map +1 -0
  528. package/dist/lib/text/engine/NativehacksForTLF.js +70 -0
  529. package/dist/lib/text/engine/RenderingMode.d.ts +9 -0
  530. package/dist/lib/text/engine/RenderingMode.d.ts.map +1 -0
  531. package/dist/lib/text/engine/RenderingMode.js +15 -0
  532. package/dist/lib/text/engine/SpaceJustifier.d.ts +20 -0
  533. package/dist/lib/text/engine/SpaceJustifier.d.ts.map +1 -0
  534. package/dist/lib/text/engine/SpaceJustifier.js +58 -0
  535. package/dist/lib/text/engine/TabAlignment.d.ts +11 -0
  536. package/dist/lib/text/engine/TabAlignment.d.ts.map +1 -0
  537. package/dist/lib/text/engine/TabAlignment.js +17 -0
  538. package/dist/lib/text/engine/TabStop.d.ts +13 -0
  539. package/dist/lib/text/engine/TabStop.d.ts.map +1 -0
  540. package/dist/lib/text/engine/TabStop.js +66 -0
  541. package/dist/lib/text/engine/TextBaseline.d.ts +14 -0
  542. package/dist/lib/text/engine/TextBaseline.d.ts.map +1 -0
  543. package/dist/lib/text/engine/TextBaseline.js +20 -0
  544. package/dist/lib/text/engine/TextBlock.d.ts +76 -0
  545. package/dist/lib/text/engine/TextBlock.d.ts.map +1 -0
  546. package/dist/lib/text/engine/TextBlock.js +500 -0
  547. package/dist/lib/text/engine/TextElement.d.ts +12 -0
  548. package/dist/lib/text/engine/TextElement.d.ts.map +1 -0
  549. package/dist/lib/text/engine/TextElement.js +45 -0
  550. package/dist/lib/text/engine/TextJustifier.d.ts +15 -0
  551. package/dist/lib/text/engine/TextJustifier.d.ts.map +1 -0
  552. package/dist/lib/text/engine/TextJustifier.js +46 -0
  553. package/dist/lib/text/engine/TextLine.d.ts +86 -0
  554. package/dist/lib/text/engine/TextLine.d.ts.map +1 -0
  555. package/dist/lib/text/engine/TextLine.js +381 -0
  556. package/dist/lib/text/engine/TextLineCreationResult.d.ts +11 -0
  557. package/dist/lib/text/engine/TextLineCreationResult.d.ts.map +1 -0
  558. package/dist/lib/text/engine/TextLineCreationResult.js +17 -0
  559. package/dist/lib/text/engine/TextLineMirrorRegion.d.ts +17 -0
  560. package/dist/lib/text/engine/TextLineMirrorRegion.d.ts.map +1 -0
  561. package/dist/lib/text/engine/TextLineMirrorRegion.js +75 -0
  562. package/dist/lib/text/engine/TextLineValidity.d.ts +11 -0
  563. package/dist/lib/text/engine/TextLineValidity.d.ts.map +1 -0
  564. package/dist/lib/text/engine/TextLineValidity.js +17 -0
  565. package/dist/lib/text/engine/TextRotation.d.ts +12 -0
  566. package/dist/lib/text/engine/TextRotation.d.ts.map +1 -0
  567. package/dist/lib/text/engine/TextRotation.js +18 -0
  568. package/dist/lib/text/engine/TypographicCase.d.ts +14 -0
  569. package/dist/lib/text/engine/TypographicCase.d.ts.map +1 -0
  570. package/dist/lib/text/engine/TypographicCase.js +20 -0
  571. package/dist/lib/text/ime/CompositionAttributeRange.d.ts +12 -0
  572. package/dist/lib/text/ime/CompositionAttributeRange.d.ts.map +1 -0
  573. package/dist/lib/text/ime/CompositionAttributeRange.js +20 -0
  574. package/dist/lib/ui/ContextMenu.d.ts +29 -0
  575. package/dist/lib/ui/ContextMenu.d.ts.map +1 -0
  576. package/dist/lib/ui/ContextMenu.js +128 -0
  577. package/dist/lib/ui/ContextMenuBuiltInItems.d.ts +31 -0
  578. package/dist/lib/ui/ContextMenuBuiltInItems.d.ts.map +1 -0
  579. package/dist/lib/ui/ContextMenuBuiltInItems.js +112 -0
  580. package/dist/lib/ui/ContextMenuClipboardItems.d.ts +24 -0
  581. package/dist/lib/ui/ContextMenuClipboardItems.d.ts.map +1 -0
  582. package/dist/lib/ui/ContextMenuClipboardItems.js +99 -0
  583. package/dist/lib/ui/ContextMenuItem.d.ts +19 -0
  584. package/dist/lib/ui/ContextMenuItem.d.ts.map +1 -0
  585. package/dist/lib/ui/ContextMenuItem.js +62 -0
  586. package/dist/lib/ui/GameInput.d.ts +12 -0
  587. package/dist/lib/ui/GameInput.d.ts.map +1 -0
  588. package/dist/lib/ui/GameInput.js +49 -0
  589. package/dist/lib/ui/GameInputControl.d.ts +17 -0
  590. package/dist/lib/ui/GameInputControl.d.ts.map +1 -0
  591. package/dist/lib/ui/GameInputControl.js +95 -0
  592. package/dist/lib/ui/GameInputControlType.d.ts +14 -0
  593. package/dist/lib/ui/GameInputControlType.d.ts.map +1 -0
  594. package/dist/lib/ui/GameInputControlType.js +23 -0
  595. package/dist/lib/ui/GameInputDevice.d.ts +21 -0
  596. package/dist/lib/ui/GameInputDevice.d.ts.map +1 -0
  597. package/dist/lib/ui/GameInputDevice.js +105 -0
  598. package/dist/lib/ui/GameInputFinger.d.ts +12 -0
  599. package/dist/lib/ui/GameInputFinger.d.ts.map +1 -0
  600. package/dist/lib/ui/GameInputFinger.js +21 -0
  601. package/dist/lib/ui/GameInputHand.d.ts +11 -0
  602. package/dist/lib/ui/GameInputHand.d.ts.map +1 -0
  603. package/dist/lib/ui/GameInputHand.js +20 -0
  604. package/dist/lib/ui/Keyboard.d.ts +36 -0
  605. package/dist/lib/ui/Keyboard.d.ts.map +1 -0
  606. package/dist/lib/ui/Keyboard.js +383 -0
  607. package/dist/lib/ui/Mouse.d.ts +14 -0
  608. package/dist/lib/ui/Mouse.d.ts.map +1 -0
  609. package/dist/lib/ui/Mouse.js +78 -0
  610. package/dist/lib/ui/MouseCursorData.d.ts +24 -0
  611. package/dist/lib/ui/MouseCursorData.d.ts.map +1 -0
  612. package/dist/lib/ui/MouseCursorData.js +55 -0
  613. package/dist/lib/ui/Multitouch.d.ts +78 -0
  614. package/dist/lib/ui/Multitouch.d.ts.map +1 -0
  615. package/dist/lib/ui/Multitouch.js +135 -0
  616. package/dist/lib/ui/MultitouchInputMode.d.ts +26 -0
  617. package/dist/lib/ui/MultitouchInputMode.d.ts.map +1 -0
  618. package/dist/lib/ui/MultitouchInputMode.js +29 -0
  619. package/dist/lib/utils/ByteArray.d.ts +2 -0
  620. package/dist/lib/utils/ByteArray.d.ts.map +1 -0
  621. package/dist/lib/utils/ByteArray.js +1 -0
  622. package/dist/lib/utils/CompressionAlgorithm.d.ts +7 -0
  623. package/dist/lib/utils/CompressionAlgorithm.d.ts.map +1 -0
  624. package/dist/lib/utils/CompressionAlgorithm.js +13 -0
  625. package/dist/lib/utils/IDataInput.d.ts +175 -0
  626. package/dist/lib/utils/IDataInput.d.ts.map +1 -0
  627. package/dist/lib/utils/IDataInput.js +1 -0
  628. package/dist/lib/utils/IDataOutput.d.ts +131 -0
  629. package/dist/lib/utils/IDataOutput.d.ts.map +1 -0
  630. package/dist/lib/utils/IDataOutput.js +1 -0
  631. package/dist/lib/utils/IExternalizable.d.ts +35 -0
  632. package/dist/lib/utils/IExternalizable.d.ts.map +1 -0
  633. package/dist/lib/utils/IExternalizable.js +1 -0
  634. package/dist/lib/utils/Timer.d.ts +28 -0
  635. package/dist/lib/utils/Timer.d.ts.map +1 -0
  636. package/dist/lib/utils/Timer.js +115 -0
  637. package/index.ts +21 -0
  638. package/lib/ILoader.ts +14 -0
  639. package/lib/PlayerGlobal.ts +278 -0
  640. package/lib/RegisterCode.ts +10 -0
  641. package/lib/SecurityDomain.ts +194 -0
  642. package/lib/Settings.ts +15 -0
  643. package/lib/_shumway_flash/accessibility/Accessibility.ts +40 -0
  644. package/lib/_shumway_flash/accessibility/AccessibilityImplementation.ts +40 -0
  645. package/lib/_shumway_flash/accessibility/AccessibilityProperties.ts +29 -0
  646. package/lib/_shumway_flash/accessibility/ISearchableText.ts +4 -0
  647. package/lib/_shumway_flash/accessibility/ISimpleTextSelection.ts +4 -0
  648. package/lib/_shumway_flash/automation/ActionGenerator.ts +14 -0
  649. package/lib/_shumway_flash/automation/AutomationAction.ts +14 -0
  650. package/lib/_shumway_flash/automation/Configuration.ts +23 -0
  651. package/lib/_shumway_flash/automation/KeyboardAutomationAction.ts +16 -0
  652. package/lib/_shumway_flash/automation/MouseAutomationAction.ts +20 -0
  653. package/lib/_shumway_flash/automation/StageCapture.ts +50 -0
  654. package/lib/_shumway_flash/automation/StageCaptureEvent.ts +21 -0
  655. package/lib/_shumway_flash/desktop/ClipboardTransferMode.ts +24 -0
  656. package/lib/_shumway_flash/display/AVM1Movie.ts +157 -0
  657. package/lib/_shumway_flash/display/ActionScriptVersion.ts +21 -0
  658. package/lib/_shumway_flash/display/BitmapEncodingColorSpace.ts +24 -0
  659. package/lib/_shumway_flash/display/ColorCorrection.ts +50 -0
  660. package/lib/_shumway_flash/display/ColorCorrectionSupport.ts +50 -0
  661. package/lib/_shumway_flash/display/FocusDirection.ts +23 -0
  662. package/lib/_shumway_flash/display/GraphicsBitmapFill.ts +35 -0
  663. package/lib/_shumway_flash/display/GraphicsEndFill.ts +23 -0
  664. package/lib/_shumway_flash/display/GraphicsGradientFill.ts +31 -0
  665. package/lib/_shumway_flash/display/GraphicsShaderFill.ts +30 -0
  666. package/lib/_shumway_flash/display/GraphicsSolidFill.ts +28 -0
  667. package/lib/_shumway_flash/display/GraphicsStroke.ts +48 -0
  668. package/lib/_shumway_flash/display/GraphicsTrianglePath.ts +38 -0
  669. package/lib/_shumway_flash/display/JPEGEncoderOptions.ts +25 -0
  670. package/lib/_shumway_flash/display/JPEGXREncoderOptions.ts +24 -0
  671. package/lib/_shumway_flash/display/MorphShape.ts +70 -0
  672. package/lib/_shumway_flash/display/PNGEncoderOptions.ts +25 -0
  673. package/lib/_shumway_flash/display/SWFVersion.ts +34 -0
  674. package/lib/_shumway_flash/display/Shader.ts +46 -0
  675. package/lib/_shumway_flash/display/ShaderData.ts +20 -0
  676. package/lib/_shumway_flash/display/ShaderInput.ts +63 -0
  677. package/lib/_shumway_flash/display/ShaderJob.ts +81 -0
  678. package/lib/_shumway_flash/display/ShaderParameter.ts +43 -0
  679. package/lib/_shumway_flash/display/ShaderParameterType.ts +37 -0
  680. package/lib/_shumway_flash/display/ShaderPrecision.ts +24 -0
  681. package/lib/_shumway_flash/display/Stage3D.ts +64 -0
  682. package/lib/_shumway_flash/display/StageAlign.ts +69 -0
  683. package/lib/_shumway_flash/display/StageDisplayState.ts +50 -0
  684. package/lib/_shumway_flash/display/StageQuality.ts +75 -0
  685. package/lib/_shumway_flash/display/StageScaleMode.ts +66 -0
  686. package/lib/_shumway_flash/display/interfaces.ts +6 -0
  687. package/lib/_shumway_flash/display3D/Context3DBlendFactor.ts +50 -0
  688. package/lib/_shumway_flash/display3D/Context3DCompareMode.ts +48 -0
  689. package/lib/_shumway_flash/display3D/Context3DProfile.ts +42 -0
  690. package/lib/_shumway_flash/display3D/Context3DRenderMode.ts +42 -0
  691. package/lib/_shumway_flash/display3D/Context3DStencilAction.ts +48 -0
  692. package/lib/_shumway_flash/display3D/Context3DTextureFormat.ts +43 -0
  693. package/lib/_shumway_flash/display3D/Context3DTriangleFace.ts +44 -0
  694. package/lib/_shumway_flash/display3D/Context3DVertexBufferFormat.ts +45 -0
  695. package/lib/_shumway_flash/display3D/IndexBuffer3D.ts +53 -0
  696. package/lib/_shumway_flash/display3D/Program3D.ts +48 -0
  697. package/lib/_shumway_flash/display3D/VertexBuffer3D.ts +35 -0
  698. package/lib/_shumway_flash/display3D/textures/CubeTexture.ts +50 -0
  699. package/lib/_shumway_flash/display3D/textures/TextureBase.ts +39 -0
  700. package/lib/_shumway_flash/filters/BitmapFilterQuality.ts +25 -0
  701. package/lib/_shumway_flash/filters/DisplacementMapFilterMode.ts +25 -0
  702. package/lib/_shumway_flash/filters/ShaderFilter.ts +43 -0
  703. package/lib/_shumway_flash/globalization/Collator.ts +148 -0
  704. package/lib/_shumway_flash/globalization/CollatorMode.ts +37 -0
  705. package/lib/_shumway_flash/globalization/CurrencyFormatter.ts +232 -0
  706. package/lib/_shumway_flash/globalization/CurrencyParseResult.ts +57 -0
  707. package/lib/_shumway_flash/globalization/DateTimeFormatter.ts +110 -0
  708. package/lib/_shumway_flash/globalization/DateTimeNameContext.ts +42 -0
  709. package/lib/_shumway_flash/globalization/DateTimeNameStyle.ts +43 -0
  710. package/lib/_shumway_flash/globalization/DateTimeStyle.ts +45 -0
  711. package/lib/_shumway_flash/globalization/LastOperationStatus.ts +57 -0
  712. package/lib/_shumway_flash/globalization/LocaleID.ts +86 -0
  713. package/lib/_shumway_flash/globalization/NationalDigitsType.ts +72 -0
  714. package/lib/_shumway_flash/globalization/NumberParseResult.ts +63 -0
  715. package/lib/_shumway_flash/media/AudioDecoder.ts +44 -0
  716. package/lib/_shumway_flash/media/Camera.ts +167 -0
  717. package/lib/_shumway_flash/media/H264Level.ts +54 -0
  718. package/lib/_shumway_flash/media/H264Profile.ts +40 -0
  719. package/lib/_shumway_flash/media/H264VideoStreamSettings.ts +48 -0
  720. package/lib/_shumway_flash/media/Microphone.ts +217 -0
  721. package/lib/_shumway_flash/media/MicrophoneEnhancedMode.ts +43 -0
  722. package/lib/_shumway_flash/media/MicrophoneEnhancedOptions.ts +49 -0
  723. package/lib/_shumway_flash/media/SoundCodec.ts +42 -0
  724. package/lib/_shumway_flash/media/StageVideo.ts +119 -0
  725. package/lib/_shumway_flash/media/StageVideoAvailability.ts +40 -0
  726. package/lib/_shumway_flash/media/Video.ts +151 -0
  727. package/lib/_shumway_flash/media/VideoCodec.ts +41 -0
  728. package/lib/_shumway_flash/media/VideoStatus.ts +41 -0
  729. package/lib/_shumway_flash/media/VideoStreamSettings.ts +56 -0
  730. package/lib/_shumway_flash/net/DynamicPropertyOutput.ts +45 -0
  731. package/lib/_shumway_flash/net/FileFilter.ts +66 -0
  732. package/lib/_shumway_flash/net/FileReferenceList.ts +39 -0
  733. package/lib/_shumway_flash/net/GroupSpecifier.ts +67 -0
  734. package/lib/_shumway_flash/net/IDynamicPropertyOutput.ts +25 -0
  735. package/lib/_shumway_flash/net/IDynamicPropertyWriter.ts +28 -0
  736. package/lib/_shumway_flash/net/LocalConnection.ts +249 -0
  737. package/lib/_shumway_flash/net/NetConnection.ts +268 -0
  738. package/lib/_shumway_flash/net/NetGroup.ts +88 -0
  739. package/lib/_shumway_flash/net/NetGroupInfo.ts +54 -0
  740. package/lib/_shumway_flash/net/NetGroupReceiveMode.ts +37 -0
  741. package/lib/_shumway_flash/net/NetGroupReplicationStrategy.ts +40 -0
  742. package/lib/_shumway_flash/net/NetGroupSendMode.ts +37 -0
  743. package/lib/_shumway_flash/net/NetGroupSendResult.ts +38 -0
  744. package/lib/_shumway_flash/net/NetMonitor.ts +38 -0
  745. package/lib/_shumway_flash/net/NetStream.ts +1078 -0
  746. package/lib/_shumway_flash/net/NetStreamAppendBytesAction.ts +38 -0
  747. package/lib/_shumway_flash/net/NetStreamInfo.ts +119 -0
  748. package/lib/_shumway_flash/net/NetStreamMulticastInfo.ts +103 -0
  749. package/lib/_shumway_flash/net/NetStreamPlayOptions.ts +45 -0
  750. package/lib/_shumway_flash/net/NetStreamPlayTransitions.ts +45 -0
  751. package/lib/_shumway_flash/net/Responder.ts +40 -0
  752. package/lib/_shumway_flash/net/SecureSocket.ts +60 -0
  753. package/lib/_shumway_flash/net/SharedObjectFlushStatus.ts +37 -0
  754. package/lib/_shumway_flash/net/Socket.ts +230 -0
  755. package/lib/_shumway_flash/net/URLRequestHeader.ts +22 -0
  756. package/lib/_shumway_flash/net/URLStream.ts +206 -0
  757. package/lib/_shumway_flash/net/XMLSocket.ts +32 -0
  758. package/lib/_shumway_flash/printing/PrintJob.ts +42 -0
  759. package/lib/_shumway_flash/printing/PrintJobOptions.ts +25 -0
  760. package/lib/_shumway_flash/printing/PrintJobOrientation.ts +24 -0
  761. package/lib/_shumway_flash/profiler/Telemetry.ts +48 -0
  762. package/lib/_shumway_flash/sampler/ClassFactory.ts +22 -0
  763. package/lib/_shumway_flash/sampler/DeleteObjectSample.ts +20 -0
  764. package/lib/_shumway_flash/sampler/StackFrame.ts +22 -0
  765. package/lib/_shumway_flash/security/CertificateStatus.ts +28 -0
  766. package/lib/_shumway_flash/security/X500DistinguishedName.ts +56 -0
  767. package/lib/_shumway_flash/security/X509Certificate.ts +87 -0
  768. package/lib/_shumway_flash/sensors/Accelerometer.ts +35 -0
  769. package/lib/_shumway_flash/sensors/Geolocation.ts +33 -0
  770. package/lib/_shumway_flash/system/ApplicationInstaller.ts +57 -0
  771. package/lib/_shumway_flash/system/AuthorizedFeatures.ts +58 -0
  772. package/lib/_shumway_flash/system/AuthorizedFeaturesLoader.ts +49 -0
  773. package/lib/_shumway_flash/system/DomainMemoryWithStage3D.ts +33 -0
  774. package/lib/_shumway_flash/system/IMEConversionMode.ts +43 -0
  775. package/lib/_shumway_flash/system/ImageDecodingPolicy.ts +36 -0
  776. package/lib/_shumway_flash/system/JPEGLoaderContext.ts +42 -0
  777. package/lib/_shumway_flash/system/MessageChannel.ts +65 -0
  778. package/lib/_shumway_flash/system/MessageChannelState.ts +38 -0
  779. package/lib/_shumway_flash/system/SecurityPanel.ts +42 -0
  780. package/lib/_shumway_flash/system/SystemUpdater.ts +36 -0
  781. package/lib/_shumway_flash/system/SystemUpdaterType.ts +37 -0
  782. package/lib/_shumway_flash/ui/KeyLocation.ts +39 -0
  783. package/lib/_shumway_flash/ui/KeyboardType.ts +37 -0
  784. package/lib/_shumway_flash/ui/MouseCursor.ts +75 -0
  785. package/lib/_shumway_flash/ui/MouseCursorData.ts +72 -0
  786. package/lib/_shumway_flash/utils/CompressionAlgorithm.ts +20 -0
  787. package/lib/_shumway_flash/utils/IDataInput2.ts +9 -0
  788. package/lib/_shumway_flash/utils/IDataOutput2.ts +9 -0
  789. package/lib/_shumway_flash/utils/IExternalizable.ts +13 -0
  790. package/lib/_shumway_flash/utils/SetIntervalTimer.ts +20 -0
  791. package/lib/_shumway_flash/utils/Timer.ts +111 -0
  792. package/lib/desktop/Clipboard.ts +292 -0
  793. package/lib/desktop/ClipboardFormats.ts +51 -0
  794. package/lib/display/Bitmap.ts +189 -0
  795. package/lib/display/BitmapData.ts +496 -0
  796. package/lib/display/BitmapDataChannel.ts +24 -0
  797. package/lib/display/BlendMode.ts +1 -0
  798. package/lib/display/CapsStyle.ts +1 -0
  799. package/lib/display/DisplayObject.ts +1601 -0
  800. package/lib/display/DisplayObjectContainer.ts +640 -0
  801. package/lib/display/FrameLabel.ts +30 -0
  802. package/lib/display/GradientType.ts +1 -0
  803. package/lib/display/Graphics.ts +609 -0
  804. package/lib/display/GraphicsBitmapFill.ts +39 -0
  805. package/lib/display/GraphicsEndFill.ts +11 -0
  806. package/lib/display/GraphicsGradientFill.ts +31 -0
  807. package/lib/display/GraphicsPath.ts +75 -0
  808. package/lib/display/GraphicsPathCommand.ts +1 -0
  809. package/lib/display/GraphicsPathWinding.ts +1 -0
  810. package/lib/display/GraphicsSolidFill.ts +16 -0
  811. package/lib/display/GraphicsStroke.ts +33 -0
  812. package/lib/display/GraphicsTrianglePath.ts +24 -0
  813. package/lib/display/IBitmapDataOwner.ts +7 -0
  814. package/lib/display/IBitmapDrawable.ts +11 -0
  815. package/lib/display/IGraphicsData.ts +15 -0
  816. package/lib/display/IVirtualSceneGraphItem.ts +9 -0
  817. package/lib/display/InteractiveObject.ts +986 -0
  818. package/lib/display/InterpolationMethod.ts +1 -0
  819. package/lib/display/JointStyle.ts +1 -0
  820. package/lib/display/LineScaleMode.ts +1 -0
  821. package/lib/display/Loader.ts +777 -0
  822. package/lib/display/LoaderInfo.ts +743 -0
  823. package/lib/display/MovieClip.ts +570 -0
  824. package/lib/display/NativeMenu.ts +11 -0
  825. package/lib/display/NativeMenuItem.ts +34 -0
  826. package/lib/display/PixelSnapping.ts +1 -0
  827. package/lib/display/Scene.ts +69 -0
  828. package/lib/display/Shape.ts +89 -0
  829. package/lib/display/SimpleButton.ts +555 -0
  830. package/lib/display/SpreadMethod.ts +1 -0
  831. package/lib/display/Sprite.ts +774 -0
  832. package/lib/display/Stage.ts +1143 -0
  833. package/lib/display/TriangleCulling.ts +1 -0
  834. package/lib/display3D/Context3D.ts +1 -0
  835. package/lib/display3D/Context3DClearMask.ts +1 -0
  836. package/lib/display3D/Context3DProgramType.ts +1 -0
  837. package/lib/display3D/Texture.ts +29 -0
  838. package/lib/errors/EOFError.ts +17 -0
  839. package/lib/errors/IOError.ts +16 -0
  840. package/lib/errors/IllegalOperationError.ts +17 -0
  841. package/lib/errors/InvalidSWFError.ts +16 -0
  842. package/lib/errors/MemoryError.ts +16 -0
  843. package/lib/errors/ScriptTimeoutError.ts +16 -0
  844. package/lib/errors/StackOverflowError.ts +16 -0
  845. package/lib/events/AccelerometerEvent.ts +26 -0
  846. package/lib/events/ActivityEvent.ts +19 -0
  847. package/lib/events/AsyncErrorEvent.ts +31 -0
  848. package/lib/events/ContextMenuEvent.ts +26 -0
  849. package/lib/events/DataEvent.ts +17 -0
  850. package/lib/events/ErrorEvent.ts +54 -0
  851. package/lib/events/Event.ts +229 -0
  852. package/lib/events/EventDispatcher.ts +283 -0
  853. package/lib/events/EventDispatcherBase.ts +289 -0
  854. package/lib/events/EventPhase.ts +34 -0
  855. package/lib/events/FocusEvent.ts +97 -0
  856. package/lib/events/FullScreenEvent.ts +22 -0
  857. package/lib/events/GameInputEvent.ts +38 -0
  858. package/lib/events/GeolocationEvent.ts +18 -0
  859. package/lib/events/GestureEvent.ts +113 -0
  860. package/lib/events/GesturePhase.ts +18 -0
  861. package/lib/events/HTTPStatusEvent.ts +81 -0
  862. package/lib/events/IEventDispatcher.ts +1 -0
  863. package/lib/events/IEventMapper.ts +7 -0
  864. package/lib/events/IMEEvent.ts +21 -0
  865. package/lib/events/IOErrorEvent.ts +49 -0
  866. package/lib/events/KeyboardEvent.ts +114 -0
  867. package/lib/events/MouseEvent.ts +279 -0
  868. package/lib/events/NetDataEvent.ts +22 -0
  869. package/lib/events/NetFilterEvent.ts +20 -0
  870. package/lib/events/NetMonitorEvent.ts +20 -0
  871. package/lib/events/NetStatusEvent.ts +53 -0
  872. package/lib/events/OutputProgressEvent.ts +20 -0
  873. package/lib/events/PressAndTapGestureEvent.ts +24 -0
  874. package/lib/events/ProgressEvent.ts +66 -0
  875. package/lib/events/SampleDataEvent.ts +140 -0
  876. package/lib/events/SecurityErrorEvent.ts +16 -0
  877. package/lib/events/ShaderEvent.ts +19 -0
  878. package/lib/events/SoftKeyboardEvent.ts +19 -0
  879. package/lib/events/SoftKeyboardTrigger.ts +16 -0
  880. package/lib/events/StageVideoAvailabilityEvent.ts +20 -0
  881. package/lib/events/StageVideoEvent.ts +26 -0
  882. package/lib/events/StaticEvents.ts +5 -0
  883. package/lib/events/StatusEvent.ts +45 -0
  884. package/lib/events/SyncEvent.ts +19 -0
  885. package/lib/events/TextEvent.ts +60 -0
  886. package/lib/events/ThrottleEvent.ts +23 -0
  887. package/lib/events/ThrottleType.ts +18 -0
  888. package/lib/events/TimerEvent.ts +31 -0
  889. package/lib/events/TouchEvent.ts +548 -0
  890. package/lib/events/TransformGestureEvent.ts +21 -0
  891. package/lib/events/UncaughtErrorEvent.ts +17 -0
  892. package/lib/events/UncaughtErrorEvents.ts +29 -0
  893. package/lib/events/VideoEvent.ts +24 -0
  894. package/lib/external/ExternalInterface.ts +304 -0
  895. package/lib/factories/FlashSceneGraphFactory.ts +205 -0
  896. package/lib/filters/BevelFilter.ts +247 -0
  897. package/lib/filters/BitmapFilter.ts +123 -0
  898. package/lib/filters/BitmapFilterType.ts +43 -0
  899. package/lib/filters/BlurFilter.ts +69 -0
  900. package/lib/filters/ColorMatrixFilter.ts +96 -0
  901. package/lib/filters/ConvolutionFilter.ts +187 -0
  902. package/lib/filters/DisplacementMapFilter.ts +191 -0
  903. package/lib/filters/DropShadowFilter.ts +203 -0
  904. package/lib/filters/FilterBuilder.ts +34 -0
  905. package/lib/filters/GlowFilter.ts +162 -0
  906. package/lib/filters/GradientBevelFilter.ts +276 -0
  907. package/lib/filters/GradientGlowFilter.ts +239 -0
  908. package/lib/geom/ColorTransform.ts +294 -0
  909. package/lib/geom/Matrix.ts +428 -0
  910. package/lib/geom/Matrix3D.ts +228 -0
  911. package/lib/geom/Orientation3D.ts +43 -0
  912. package/lib/geom/PerspectiveProjection.ts +1 -0
  913. package/lib/geom/Point.ts +201 -0
  914. package/lib/geom/Rectangle.ts +477 -0
  915. package/lib/geom/Transform.ts +105 -0
  916. package/lib/geom/Utils3D.ts +36 -0
  917. package/lib/geom/Vector3D.ts +438 -0
  918. package/lib/globalization/LocaleID.ts +96 -0
  919. package/lib/globalization/NumberFormatter.ts +551 -0
  920. package/lib/globalization/StringTools.ts +147 -0
  921. package/lib/greensock/TweenLite.ts +14 -0
  922. package/lib/greensock/easing/Linear.ts +4 -0
  923. package/lib/greensock/easing/Power.ts +3 -0
  924. package/lib/greensock/easing/Power1.ts +2 -0
  925. package/lib/greensock/easing/Power2.ts +2 -0
  926. package/lib/greensock/easing/Power3.ts +2 -0
  927. package/lib/greensock/easing/Power4.ts +2 -0
  928. package/lib/greensock/motionPaths/RectanglePath2D.ts +1 -0
  929. package/lib/greensock/plugins/RoundPropsPlugin.ts +1 -0
  930. package/lib/link.ts +669 -0
  931. package/lib/media/ID3Info.ts +69 -0
  932. package/lib/media/Sound.ts +532 -0
  933. package/lib/media/SoundChannel.ts +160 -0
  934. package/lib/media/SoundLoaderContext.ts +104 -0
  935. package/lib/media/SoundMixer.ts +152 -0
  936. package/lib/media/SoundTransform.ts +137 -0
  937. package/lib/net/FileFilter.ts +32 -0
  938. package/lib/net/FileReference.ts +293 -0
  939. package/lib/net/LocalConnection.ts +267 -0
  940. package/lib/net/NetConnection.ts +435 -0
  941. package/lib/net/Responder.ts +57 -0
  942. package/lib/net/SharedObject.ts +365 -0
  943. package/lib/net/Socket.ts +251 -0
  944. package/lib/net/URLLoader.ts +144 -0
  945. package/lib/net/URLLoaderDataFormat.ts +1 -0
  946. package/lib/net/URLRequest.ts +135 -0
  947. package/lib/net/URLRequestMethod.ts +1 -0
  948. package/lib/net/URLVariables.ts +84 -0
  949. package/lib/net/navigateToURL.ts +5 -0
  950. package/lib/sampler/NewObjectSample.ts +40 -0
  951. package/lib/sampler/Sample.ts +23 -0
  952. package/lib/starling/core/Starling.ts +613 -0
  953. package/lib/starling/display/DisplayObject.ts +1 -0
  954. package/lib/starling/display/Image.ts +1 -0
  955. package/lib/starling/display/Quad.ts +7 -0
  956. package/lib/starling/display/Sprite.ts +1 -0
  957. package/lib/starling/display/Stage.ts +4 -0
  958. package/lib/starling/events/Event.ts +1 -0
  959. package/lib/starling/events/ResizeEvent.ts +5 -0
  960. package/lib/starling/events/Touch.ts +1 -0
  961. package/lib/starling/events/TouchEvent.ts +1 -0
  962. package/lib/starling/events/TouchPhase.ts +1 -0
  963. package/lib/starling/textures/RenderTexture.ts +3 -0
  964. package/lib/starling/textures/Texture.ts +1 -0
  965. package/lib/starling/utils/SystemUtil.ts +3 -0
  966. package/lib/system/ApplicationDomain.ts +279 -0
  967. package/lib/system/Capabilities.ts +265 -0
  968. package/lib/system/FSCommand.ts +20 -0
  969. package/lib/system/IME.ts +157 -0
  970. package/lib/system/LoaderContext.ts +449 -0
  971. package/lib/system/Security.ts +119 -0
  972. package/lib/system/SecurityDomain.ts +9 -0
  973. package/lib/system/System.ts +225 -0
  974. package/lib/system/TouchscreenType.ts +37 -0
  975. package/lib/text/AntiAliasType.ts +1 -0
  976. package/lib/text/CSMSettings.ts +25 -0
  977. package/lib/text/Font.ts +60 -0
  978. package/lib/text/FontStyle.ts +18 -0
  979. package/lib/text/FontType.ts +18 -0
  980. package/lib/text/GridFitType.ts +1 -0
  981. package/lib/text/StaticText.ts +41 -0
  982. package/lib/text/StyleSheet.ts +201 -0
  983. package/lib/text/TextColorType.ts +15 -0
  984. package/lib/text/TextDisplayMode.ts +16 -0
  985. package/lib/text/TextExtent.ts +25 -0
  986. package/lib/text/TextField.ts +1358 -0
  987. package/lib/text/TextFieldAutoSize.ts +1 -0
  988. package/lib/text/TextFieldType.ts +1 -0
  989. package/lib/text/TextFormat.ts +222 -0
  990. package/lib/text/TextFormatAlign.ts +1 -0
  991. package/lib/text/TextFormatDisplay.ts +19 -0
  992. package/lib/text/TextInteractionMode.ts +1 -0
  993. package/lib/text/TextLineMetrics.ts +72 -0
  994. package/lib/text/TextRenderer.ts +70 -0
  995. package/lib/text/TextRun.ts +56 -0
  996. package/lib/text/TextSnapshot.ts +73 -0
  997. package/lib/text/engine/BreakOpportunity.ts +17 -0
  998. package/lib/text/engine/CFFHinting.ts +15 -0
  999. package/lib/text/engine/ContentElement.ts +123 -0
  1000. package/lib/text/engine/DigitCase.ts +19 -0
  1001. package/lib/text/engine/DigitWidth.ts +19 -0
  1002. package/lib/text/engine/EastAsianJustifier.ts +50 -0
  1003. package/lib/text/engine/ElementFormat.ts +323 -0
  1004. package/lib/text/engine/FontDescription.ts +114 -0
  1005. package/lib/text/engine/FontLookup.ts +18 -0
  1006. package/lib/text/engine/FontMetrics.ts +47 -0
  1007. package/lib/text/engine/FontPosture.ts +18 -0
  1008. package/lib/text/engine/FontWeight.ts +18 -0
  1009. package/lib/text/engine/GraphicElement.ts +69 -0
  1010. package/lib/text/engine/GroupElement.ts +123 -0
  1011. package/lib/text/engine/JustificationStyle.ts +19 -0
  1012. package/lib/text/engine/Kerning.ts +19 -0
  1013. package/lib/text/engine/LigatureLevel.ts +21 -0
  1014. package/lib/text/engine/LineJustification.ts +20 -0
  1015. package/lib/text/engine/NativehacksForTLF.ts +58 -0
  1016. package/lib/text/engine/RenderingMode.ts +18 -0
  1017. package/lib/text/engine/SpaceJustifier.ts +57 -0
  1018. package/lib/text/engine/TabAlignment.ts +20 -0
  1019. package/lib/text/engine/TabStop.ts +61 -0
  1020. package/lib/text/engine/TextBaseline.ts +23 -0
  1021. package/lib/text/engine/TextBlock.ts +583 -0
  1022. package/lib/text/engine/TextElement.ts +49 -0
  1023. package/lib/text/engine/TextJustifier.ts +46 -0
  1024. package/lib/text/engine/TextLine.ts +434 -0
  1025. package/lib/text/engine/TextLineCreationResult.ts +20 -0
  1026. package/lib/text/engine/TextLineMirrorRegion.ts +62 -0
  1027. package/lib/text/engine/TextLineValidity.ts +20 -0
  1028. package/lib/text/engine/TextRotation.ts +21 -0
  1029. package/lib/text/engine/TypographicCase.ts +22 -0
  1030. package/lib/text/ime/CompositionAttributeRange.ts +29 -0
  1031. package/lib/text/ime/IIMEClient.ts +31 -0
  1032. package/lib/ui/ContextMenu.ts +128 -0
  1033. package/lib/ui/ContextMenuBuiltInItems.ts +104 -0
  1034. package/lib/ui/ContextMenuClipboardItems.ts +93 -0
  1035. package/lib/ui/ContextMenuItem.ts +60 -0
  1036. package/lib/ui/GameInput.ts +49 -0
  1037. package/lib/ui/GameInputControl.ts +76 -0
  1038. package/lib/ui/GameInputControlType.ts +25 -0
  1039. package/lib/ui/GameInputDevice.ts +103 -0
  1040. package/lib/ui/GameInputFinger.ts +23 -0
  1041. package/lib/ui/GameInputHand.ts +22 -0
  1042. package/lib/ui/Keyboard.ts +394 -0
  1043. package/lib/ui/Mouse.ts +70 -0
  1044. package/lib/ui/MouseCursorData.ts +44 -0
  1045. package/lib/ui/Multitouch.ts +117 -0
  1046. package/lib/ui/MultitouchInputMode.ts +27 -0
  1047. package/lib/utils/AwayDate.ts +64 -0
  1048. package/lib/utils/ByteArray.ts +1 -0
  1049. package/lib/utils/CompressionAlgorithm.ts +7 -0
  1050. package/lib/utils/Dictionary.ts +1 -0
  1051. package/lib/utils/Endian.ts +15 -0
  1052. package/lib/utils/IDataInput.ts +194 -0
  1053. package/lib/utils/IDataOutput.ts +147 -0
  1054. package/lib/utils/IExternalizable.ts +37 -0
  1055. package/lib/utils/Timer.ts +115 -0
  1056. package/lib/utils/Trace.ts +33 -0
  1057. package/lib/utils/clearInterval.ts +8 -0
  1058. package/lib/utils/clearTimeout.ts +8 -0
  1059. package/lib/utils/describeType.ts +82 -0
  1060. package/lib/utils/escapeMultiByte.ts +29 -0
  1061. package/lib/utils/getAliasName.ts +7 -0
  1062. package/lib/utils/getDefinitionByName.ts +13 -0
  1063. package/lib/utils/getQualifiedClassName.ts +14 -0
  1064. package/lib/utils/getQualifiedSuperclassName.ts +26 -0
  1065. package/lib/utils/getTimer.ts +20 -0
  1066. package/lib/utils/setInterval.ts +20 -0
  1067. package/lib/utils/setTimeout.ts +20 -0
  1068. package/lib/utils/unescapeMultiByte.ts +27 -0
  1069. package/lib/xml/XML.ts +115 -0
  1070. package/lib/xml/XMLDocumentAway.ts +142 -0
  1071. package/lib/xml/XMLList.ts +449 -0
  1072. package/lib/xml/XMLNode.ts +326 -0
  1073. package/lib/xml/XMLNodeType.ts +48 -0
  1074. package/package.json +78 -4
  1075. package/rollup.config.js +40 -0
  1076. package/tsconfig.json +18 -0
@@ -0,0 +1,1298 @@
1
+ import { __extends } from "tslib";
2
+ import { AVMStage } from '@awayfl/swf-loader';
3
+ import { Event } from '../events/Event';
4
+ import { DisplayObjectContainer } from './DisplayObjectContainer';
5
+ import { DisplayObject } from './DisplayObject';
6
+ import { FrameScriptManager } from '@awayjs/scene';
7
+ import { OrphanManager } from '@awayfl/avm2';
8
+ import { Loader as PlayerGlobalLoader } from './Loader';
9
+ import { LoaderInfoCompleteQueue } from './LoaderInfo';
10
+ import { Debug } from '@awayjs/core';
11
+ /**
12
+ * Dispatched by the Stage object when the state of the stageVideos property changes.
13
+ * @eventType flash.events.StageVideoAvailabilityEvent.STAGE_VIDEO_AVAILABILITY
14
+ [Event(name="stageVideoAvailability", type="flash.events.StageVideoAvailabilityEvent")]
15
+
16
+ * Dispatched by the Stage object when the stage orientation changes.
17
+ * @eventType flash.events.StageOrientationEvent.ORIENTATION_CHANGE
18
+ [Event(name="orientationChange", type="flash.events.StageOrientationEvent")]
19
+
20
+ * Dispatched by the Stage object when the stage orientation begins changing.
21
+ * @eventType flash.events.StageOrientationEvent.ORIENTATION_CHANGING
22
+ [Event(name="orientationChanging", type="flash.events.StageOrientationEvent")]
23
+
24
+ * Dispatched when the Stage object enters, or leaves, full-screen mode.
25
+ * @eventType flash.events.FullScreenEvent.FULL_SCREEN
26
+ [Event(name="fullScreen", type="flash.events.FullScreenEvent")]
27
+
28
+ * Dispatched when the scaleMode property of the Stage object is set to
29
+ * StageScaleMode.NO_SCALE and the SWF file is resized.
30
+ * @eventType flash.events.Event.RESIZE
31
+ [Event(name="resize", type="flash.events.Event")]
32
+
33
+ * Dispatched by the Stage object when the pointer moves out of the
34
+ * stage area.
35
+ * @eventType flash.events.Event.MOUSE_LEAVE
36
+ [Event(name="mouseLeave", type="flash.events.Event")]
37
+
38
+ * The Stage class represents the main drawing area.
39
+ *
40
+ * <p class="- topic/p ">For SWF content running in the browser (in
41
+ * Flash<sup class="+ topic/ph hi-d/sup ">®</sup> Player), the Stage represents the entire area where Flash
42
+ * content is shown. For content running in AIR on desktop operating systems,
43
+ * each NativeWindow object has a corresponding
44
+ * Stage object.</p><p class="- topic/p ">The Stage object is not globally accessible.
45
+ * You need to access it through the
46
+ * <codeph class="+ topic/ph pr-d/codeph ">stage</codeph> property of a DisplayObject instance.
47
+ * </p><p class="- topic/p ">The Stage class has several ancestor classes — DisplayObjectContainer, InteractiveObject,
48
+ * DisplayObject, and EventDispatcher — from which it inherits properties and methods.
49
+ * Many of these properties and methods are either inapplicable to Stage objects,
50
+ * or require security checks when called on a Stage object. The properties and methods that
51
+ * require security checks are documented as part of the Stage class.</p><p class="- topic/p ">
52
+ * In addition, the following inherited properties are inapplicable to Stage objects. If you
53
+ * try to set them, an IllegalOperationError is thrown. These properties may always be read, but
54
+ * since they cannot be set, they will always contain default values.</p><ul class="- topic/ul ">
55
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">accessibilityProperties</codeph></li>
56
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">alpha</codeph></li>
57
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">blendMode</codeph></li>
58
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">cacheAsBitmap</codeph></li>
59
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">contextMenu</codeph></li>
60
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">filters</codeph></li>
61
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">focusRect</codeph></li>
62
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">loaderInfo</codeph></li>
63
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">mask</codeph></li>
64
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">mouseEnabled</codeph></li>
65
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">name</codeph></li>
66
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">opaqueBackground</codeph></li>
67
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">rotation</codeph></li>
68
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">scale9Grid</codeph></li>
69
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">scaleX</codeph></li>
70
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">scaleY</codeph></li>
71
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">scrollRect</codeph></li>
72
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">tabEnabled</codeph></li>
73
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">tabIndex</codeph></li>
74
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">transform</codeph></li>
75
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">visible</codeph></li>
76
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">x</codeph></li>
77
+ * <li class="- topic/li "><codeph class="+ topic/ph pr-d/codeph ">y</codeph></li>
78
+ * </ul>
79
+ * <p class="- topic/p ">Some events that you might expect to be a part of the Stage class,
80
+ * such as <codeph class="+ topic/ph pr-d/codeph ">enterFrame</codeph>,
81
+ * <codeph class="+ topic/ph pr-d/codeph ">exitFrame</codeph>,
82
+ * <codeph class="+ topic/ph pr-d/codeph ">frameConstructed</codeph>,
83
+ * and <codeph class="+ topic/ph pr-d/codeph ">render</codeph>,
84
+ * cannot be Stage events because a reference to the Stage object
85
+ * cannot be guaranteed to exist in every situation where these events
86
+ * are used. Because these events cannot be dispatched by the Stage
87
+ * object, they are instead dispatched by every DisplayObject instance,
88
+ * which means that you can add an event listener to
89
+ * any DisplayObject instance to listen for these events.
90
+ * These events, which are part of the DisplayObject class,
91
+ * are called broadcast events to differentiate them from events
92
+ * that target a specific DisplayObject instance.
93
+ * Two other broadcast events, <codeph class="+ topic/ph pr-d/codeph ">activate</codeph>
94
+ * and <codeph class="+ topic/ph pr-d/codeph ">deactivate</codeph>,
95
+ * belong to DisplayObject's superclass, EventDispatcher.
96
+ * The <codeph class="+ topic/ph pr-d/codeph ">activate</codeph>
97
+ * and <codeph class="+ topic/ph pr-d/codeph ">deactivate</codeph> events
98
+ * behave similarly to the DisplayObject broadcast events, except
99
+ * that these two events are dispatched not only by all DisplayObject
100
+ * instances, but also by all EventDispatcher instances and instances
101
+ * of other EventDispatcher subclasses.
102
+ * For more information on broadcast events, see the DisplayObject class.</p>
103
+ *
104
+ * EXAMPLE:
105
+ *
106
+ * The following example uses the <codeph class="+ topic/ph pr-d/codeph ">StageExample</codeph> class to dispatch
107
+ * events whenever the stage is activated or resized. This is accomplished by performing the following steps:
108
+ * <ol class="- topic/ol "><li class="- topic/li ">
109
+ * The class constructor first sets the Flash application to be fixed, regardless of the size of
110
+ * the Flash Player window and then adds two event listeners with the
111
+ * <codeph class="+ topic/ph pr-d/codeph ">activateHandler()</codeph>
112
+ * and <codeph class="+ topic/ph pr-d/codeph ">resizeHandler()</codeph> methods.</li>
113
+ * <li class="- topic/li ">The <codeph class="+ topic/ph pr-d/codeph ">activateHandler()
114
+ * </codeph> method runs when the left mouse button is clicked.</li><li class="- topic/li ">
115
+ * The <codeph class="+ topic/ph pr-d/codeph ">resizeHandler()</codeph> method runs when the stage is resized.</li>
116
+ * </ol><codeblock xml:space="preserve" class="+ topic/pre pr-d/codeblock ">
117
+ * package {
118
+ * import flash.display.Sprite;
119
+ * import flash.display.StageAlign;
120
+ * import flash.display.StageScaleMode;
121
+ * import flash.events.Event;
122
+ *
123
+ * public class StageExample extends Sprite {
124
+ *
125
+ * public StageExample() {
126
+ * stage.scaleMode = StageScaleMode.NO_SCALE;
127
+ * stage.align = StageAlign.TOP_LEFT;
128
+ * stage.addEventListener(Event.ACTIVATE, activateHandler);
129
+ * stage.addEventListener(Event.RESIZE, resizeHandler);
130
+ * }
131
+ *
132
+ * private activateHandler(event:Event):void {
133
+ * trace("activateHandler: " + event);
134
+ * }
135
+ *
136
+ * private resizeHandler(event:Event):void {
137
+ * trace("resizeHandler: " + event);
138
+ * trace("stageWidth: " + stage.stageWidth + " stageHeight: " + stage.stageHeight);
139
+ * }
140
+ * }
141
+ * }
142
+ * </codeblock>
143
+ */
144
+ var Stage = /** @class */ (function (_super) {
145
+ __extends(Stage, _super);
146
+ function Stage() {
147
+ var _this = _super.call(this) || this;
148
+ _this._isStage = true;
149
+ _this._stage3Ds = [];
150
+ // resize event listens on window
151
+ _this._resizeCallbackDelegate = function (event) { return _this.resizeCallback(event); };
152
+ window.addEventListener('resize', _this._resizeCallbackDelegate);
153
+ _this.eventMapping[Event.RESIZE] = {
154
+ adaptedType: '',
155
+ addListener: _this.initResizeListener,
156
+ removeListener: _this.removeResizeListener,
157
+ callback: _this._resizeCallbackDelegate
158
+ };
159
+ // mouse leave event listens on window
160
+ _this._mouseLeaveCallbackDelegate = function (event) { return _this.mouseLeaveCallback(event); };
161
+ _this.eventMapping[Event.MOUSE_LEAVE] = {
162
+ adaptedType: '',
163
+ addListener: _this.initMouseLeaveListener,
164
+ removeListener: _this.removeMouseLeaveListener,
165
+ callback: _this._mouseLeaveCallbackDelegate
166
+ };
167
+ // set this as active stage.
168
+ // this makes sure all DisplayObject.constructor can set a reference to stage,
169
+ // befor constructors of Sprite or MovieClips are processed
170
+ _this.sec.flash.display.DisplayObject.axClass._activeStage = _this;
171
+ _this._stage = _this;
172
+ _this._resizeCallbackDelegate(null);
173
+ return _this;
174
+ }
175
+ Object.defineProperty(Stage.prototype, "view", {
176
+ get: function () {
177
+ return AVMStage.instance().view;
178
+ },
179
+ enumerable: false,
180
+ configurable: true
181
+ });
182
+ // ---------- event mapping functions Event.RESIZE
183
+ Stage.prototype.initResizeListener = function (type, callback) {
184
+ //window.addEventListener("resize", callback);
185
+ };
186
+ Stage.prototype.removeResizeListener = function (type, callback) {
187
+ //window.removeEventListener("resize", callback);
188
+ };
189
+ Stage.prototype.resizeCallback = function (event) {
190
+ if (event === void 0) { event = null; }
191
+ this.dispatchEvent(new this.sec.flash.events.Event(Event.RESIZE));
192
+ };
193
+ Stage.prototype.show = function () {
194
+ //this._view.renderer.stage.container.style.display="initial";
195
+ };
196
+ // ---------- event mapping functions Event.MOUSE_LEAVE
197
+ Stage.prototype.initMouseLeaveListener = function (type, callback) {
198
+ window.addEventListener('mouseleave', callback);
199
+ };
200
+ Stage.prototype.removeMouseLeaveListener = function (type, callback) {
201
+ window.removeEventListener('mouseleave', callback);
202
+ };
203
+ Stage.prototype.initListener = function (type, callback, listener) {
204
+ if (!this._listnersCallbacksByType[type]) {
205
+ this.adaptee.addEventListener(type, callback);
206
+ AVMStage.instance().view.stage.addEventListener(type, callback);
207
+ this._listnersCallbacksByType[type] = [listener];
208
+ return;
209
+ }
210
+ this._listnersCallbacksByType[type].push(listener);
211
+ };
212
+ Stage.prototype.removeListener = function (type, callback, listener) {
213
+ if (this._listnersCallbacksByType[type]) {
214
+ var idx = this._listnersCallbacksByType[type].indexOf(listener);
215
+ if (idx != -1) {
216
+ if (this._listnersCallbacksByType[type].length == 1) {
217
+ delete this._listnersCallbacksByType[type];
218
+ this.adaptee.removeEventListener(type, callback);
219
+ AVMStage.instance().view.stage.removeEventListener(type, callback);
220
+ return;
221
+ }
222
+ this._listnersCallbacksByType[type].splice(idx, 1);
223
+ }
224
+ }
225
+ };
226
+ Stage.prototype.mouseLeaveCallback = function (event) {
227
+ if (event === void 0) { event = null; }
228
+ this.dispatchEvent(new Event(Event.MOUSE_LEAVE));
229
+ };
230
+ Stage.prototype.enterFrame = function () {
231
+ PlayerGlobalLoader.executeQueue();
232
+ if (this._stage.adaptee.numChildren == 0) {
233
+ return;
234
+ }
235
+ /**
236
+ * todo: order of executions should look like this:
237
+ *
238
+ * - timeline-pass1:
239
+ *
240
+ * - remove Childs from timeline.
241
+ * - dispatch REMOVED and REMOVED_FROM_STAGE
242
+ * - update childs that still exists
243
+ * - declare new childs (not create them yet)
244
+ * - update currentFrame and numChildren
245
+ * - queue mcs for framescripts
246
+ *
247
+ * - dispatch ENTER_FRAME (skip on first frame when timeline is played)
248
+ *
249
+ * - timeline-pass2:
250
+ *
251
+ * - add new childs + update their properties
252
+ * - execute constructors
253
+ * - dispatch ADDED and ADDED_TO_STAGE
254
+ *
255
+ * - dispatch FRAME_CONSTRUCTED
256
+ *
257
+ * - execute framescripts
258
+ *
259
+ * - dispatch EXIT_FRAME
260
+ *
261
+ * - dispatch RENDER (only if stage.invalidate was called)
262
+ * */
263
+ OrphanManager.updateOrphans();
264
+ // run all queued framescripts
265
+ FrameScriptManager.execute_queue();
266
+ // advance the stage - this updates the timeline
267
+ // objects get removed, created and updated - framescripts get queued
268
+ this._stage.adaptee.advanceFrame();
269
+ // execute pending constructors:
270
+ FrameScriptManager.execute_as3_constructors_enterFrame(this._stage.adaptee);
271
+ // in FP, the first enterFrame after a swf-load is ignored:
272
+ var child = this._stage.adaptee.getChildAt(0);
273
+ if (child.firstFrameOnSWFStart) {
274
+ child.firstFrameOnSWFStart = false;
275
+ }
276
+ else {
277
+ this._stage.dispatchStaticBroadCastEvent(Event.ENTER_FRAME);
278
+ //FrameScriptManager.execute_as3_constructors_enterFrame(<any> this._stage.adaptee);
279
+ //FrameScriptManager.execute_queue();
280
+ }
281
+ // broadcast FRAME_CONSTRUCTED event to all objects
282
+ this._stage.dispatchStaticBroadCastEvent(Event.FRAME_CONSTRUCTED);
283
+ // run all queued framescripts
284
+ FrameScriptManager.execute_queue();
285
+ // broadcast FRAME_CONSTRUCTED event to all objects
286
+ this._stage.dispatchStaticBroadCastEvent(Event.EXIT_FRAME);
287
+ FrameScriptManager.execute_queue();
288
+ LoaderInfoCompleteQueue.executeQueue();
289
+ if (this._sendEventRender) {
290
+ this._stage.dispatchStaticBroadCastEvent(Event.RENDER);
291
+ FrameScriptManager.execute_queue();
292
+ this._sendEventRender = false;
293
+ }
294
+ };
295
+ Object.defineProperty(Stage.prototype, "mouseX", {
296
+ //---------------------------original as3 properties / methods:
297
+ get: function () {
298
+ return AVMStage.instance().getLocalMouseX(AVMStage.instance().view.getNode(this.adaptee)) | 0;
299
+ },
300
+ enumerable: false,
301
+ configurable: true
302
+ });
303
+ Object.defineProperty(Stage.prototype, "mouseY", {
304
+ /**
305
+ * Indicates the y coordinate of the mouse or user input device position, in pixels.
306
+ *
307
+ * Note: For a DisplayObject that has been rotated, the returned y coordinate will reflect the
308
+ * non-rotated any.
309
+ */
310
+ get: function () {
311
+ return AVMStage.instance().getLocalMouseY(AVMStage.instance().view.getNode(this.adaptee)) | 0;
312
+ },
313
+ enumerable: false,
314
+ configurable: true
315
+ });
316
+ Object.defineProperty(Stage.prototype, "accessibilityImplementation", {
317
+ set: function (value) {
318
+ // @todo
319
+ Debug.throwPIR('playerglobals/display/Stage', 'set accessibilityImplementation', '');
320
+ },
321
+ enumerable: false,
322
+ configurable: true
323
+ });
324
+ Object.defineProperty(Stage.prototype, "align", {
325
+ /**
326
+ * A value from the StageAlign class that specifies the alignment of the stage in
327
+ * Flash Player or the browser. The following are valid values:
328
+ *
329
+ * ValueVertical
330
+ * AlignmentHorizontalStageAlign.TOP
331
+ * TopCenterStageAlign.BOTTOM
332
+ * BottomCenterStageAlign.LEFT
333
+ * CenterLeftStageAlign.RIGHT
334
+ * CenterRightStageAlign.TOP_LEFT
335
+ * TopLeftStageAlign.TOP_RIGHT
336
+ * TopRightStageAlign.BOTTOM_LEFT
337
+ * BottomLeftStageAlign.BOTTOM_RIGHT
338
+ * BottomRight
339
+ * The align property is only available to an object that is in the same security sandbox
340
+ * as the Stage owner (the main SWF file).
341
+ * To avoid this, the Stage owner can grant permission to the domain of the
342
+ * calling object by calling the Security.allowDomain() method or the Security.alowInsecureDomain() method.
343
+ * For more information, see the "Security" chapter in the ActionScript 3.0 Developer's Guide.
344
+ */
345
+ get: function () {
346
+ return this.adaptee.align;
347
+ },
348
+ set: function (value) {
349
+ this.adaptee.align = value;
350
+ },
351
+ enumerable: false,
352
+ configurable: true
353
+ });
354
+ Object.defineProperty(Stage.prototype, "allowsFullScreen", {
355
+ /**
356
+ * Specifies whether this stage allows the use of the full screen mode
357
+ * @langversion 3.0
358
+ * @playerversion Flash 10.2
359
+ * @oldexample The following example traces the value of this read-only property:
360
+ * <pre xml:space="preserve" class="- topic/pre ">
361
+ * trace(Stage.allowsFullsreen);
362
+ * </pre>
363
+ */
364
+ get: function () {
365
+ // @todo
366
+ Debug.throwPIR('playerglobals/display/Stage', 'get allowsFullScreen', '');
367
+ return true;
368
+ },
369
+ enumerable: false,
370
+ configurable: true
371
+ });
372
+ Object.defineProperty(Stage.prototype, "allowsFullScreenInteractive", {
373
+ get: function () {
374
+ // @todo
375
+ Debug.throwPIR('playerglobals/display/Stage', 'get allowsFullScreenInteractive', '');
376
+ return null;
377
+ },
378
+ enumerable: false,
379
+ configurable: true
380
+ });
381
+ Object.defineProperty(Stage.prototype, "browserZoomFactor", {
382
+ get: function () {
383
+ // @todo
384
+ Debug.throwPIR('playerglobals/display/Stage', 'get browserZoomFactor', '');
385
+ return 0;
386
+ },
387
+ enumerable: false,
388
+ configurable: true
389
+ });
390
+ Object.defineProperty(Stage.prototype, "color", {
391
+ get: function () {
392
+ return this.adaptee.color;
393
+ },
394
+ set: function (color) {
395
+ this.adaptee.color = color;
396
+ },
397
+ enumerable: false,
398
+ configurable: true
399
+ });
400
+ Object.defineProperty(Stage.prototype, "colorCorrection", {
401
+ /**
402
+ * Controls Flash runtime color correction for displays.
403
+ * Color correction works only if the main monitor is assigned a valid ICC color profile, which specifies
404
+ * the device's particular color attributes.
405
+ * By default, the Flash runtime tries to match the color correction of its host (usually a browser).
406
+ *
407
+ * Use the Stage.colorCorrectionSupport property
408
+ * to determine if color correction is available on the current system and the default state.
409
+ * . If color correction is available, all colors on the stage are assumed to be in
410
+ * the sRGB color space, which is the most standard color space.
411
+ * Source profiles of input devices are not considered during color correction.
412
+ * No input color correction is applied; only the stage output is mapped to the main
413
+ * monitor's ICC color profile.In general, the benefits of activating color management include predictable
414
+ * and consistent color, better conversion,
415
+ * accurate proofing and more efficient cross-media output. Be aware, though, that color management does not provide
416
+ * perfect conversions due to devices having a different gamut from each other or original images.
417
+ * Nor does color management eliminate the need for custom or edited profiles.
418
+ * Color profiles are dependent on browsers, operating systems (OS), OS extensions,
419
+ * output devices, and application support.Applying color correction degrades the Flash runtime performance.
420
+ * A Flash runtime's color correction is document style color correction because
421
+ * all SWF movies are considered documents with implicit sRGB profiles.
422
+ * Use the Stage.colorCorrectionSupport property to tell the Flash runtime
423
+ * to correct colors when displaying the SWF file (document) to the display color space.
424
+ * Flash runtimes only compensates for differences between monitors, not for differences between input devices
425
+ * (camera/scanner/etc.).
426
+ * The three possible values are strings with corresponding constants in the flash.display.ColorCorrection
427
+ * class:"default": Use the same color correction as the host system."on":
428
+ * Always perform color correction."off": Never perform color correction.
429
+ */
430
+ get: function () {
431
+ // @todo
432
+ Debug.throwPIR('playerglobals/display/Stage', 'get colorCorrection', '');
433
+ return '';
434
+ },
435
+ set: function (value) {
436
+ // @todo
437
+ Debug.throwPIR('playerglobals/display/Stage', 'set colorCorrection', '');
438
+ },
439
+ enumerable: false,
440
+ configurable: true
441
+ });
442
+ Object.defineProperty(Stage.prototype, "colorCorrectionSupport", {
443
+ /**
444
+ * Specifies whether the Flash runtime is running on an operating system that supports
445
+ * color correction and whether the color profile of the main (primary)
446
+ * monitor can be read and understood by the Flash runtime. This property also returns the default state
447
+ * of color correction on the host system (usually the browser).
448
+ * Currently the return values can be:
449
+ * The three possible values are strings with corresponding constants in the
450
+ * flash.display.ColorCorrectionSupport class:"unsupported":
451
+ * Color correction is not available."defaultOn":
452
+ * Always performs color correction."defaultOff": Never performs color correction.
453
+
454
+ */
455
+ get: function () {
456
+ // @todo
457
+ Debug.throwPIR('playerglobals/display/Stage', 'get colorCorrectionSupport', '');
458
+ return '';
459
+ },
460
+ enumerable: false,
461
+ configurable: true
462
+ });
463
+ Object.defineProperty(Stage.prototype, "contentsScaleFactor", {
464
+ get: function () {
465
+ // @todo
466
+ Debug.throwPIR('playerglobals/display/Stage', 'get contentsScaleFactor', '');
467
+ return 0;
468
+ },
469
+ enumerable: false,
470
+ configurable: true
471
+ });
472
+ Object.defineProperty(Stage.prototype, "displayContextInfo", {
473
+ get: function () {
474
+ // @todo
475
+ Debug.throwPIR('playerglobals/display/Stage', 'get displayContextInfo', '');
476
+ return '';
477
+ },
478
+ enumerable: false,
479
+ configurable: true
480
+ });
481
+ Object.defineProperty(Stage.prototype, "displayState", {
482
+ /**
483
+ * A value from the StageDisplayState class that specifies which display state to use. The following
484
+ * are valid values:
485
+ *
486
+ * StageDisplayState.FULL_SCREEN Sets AIR application or Flash runtime to expand the
487
+ * stage over the user's entire screen, with keyboard input disabled.StageDisplayState.FULL_SCREEN_INTERACTIVE
488
+ * Sets the AIR application to expand the
489
+ * stage over the user's entire screen, with keyboard input allowed.
490
+ * (Not available for content running in Flash Player.)StageDisplayState.NORMAL
491
+ * Sets the Flash runtime back to the standard stage display mode.
492
+ * The scaling behavior of the movie in full-screen mode is determined by the scaleMode
493
+ * setting (set using the Stage.scaleMode property or the SWF file's embed
494
+ * tag settings in the HTML file). If the scaleMode property is set to noScale
495
+ * while the application transitions to full-screen mode, the Stage width and height
496
+ * properties are updated, and the Stage dispatches a resize event. If any other scale mode is set,
497
+ * the stage and its contents are scaled to fill the new screen dimensions. The Stage object retains its original
498
+ * width and height values and does not dispatch a resize event.
499
+ * The following restrictions apply to SWF files that play within an HTML page (not those using the stand-alone
500
+ * Flash Player or not running in the AIR runtime):To enable full-screen mode,
501
+ * add the allowFullScreen parameter to the object
502
+ * and embed tags in the HTML page that includes the SWF file, with allowFullScreen set
503
+ * to "true", as shown in the following example:
504
+ *
505
+ * <codeblock>
506
+ * <param name="allowFullScreen" value="true" />
507
+ * ...
508
+ * <embed src="example.swf" allowFullScreen="true" ... >
509
+ * </codeblock>
510
+ * An HTML page may also use a script to generate SWF-embedding tags. You need to alter the script
511
+ * so that it inserts the proper allowFullScreen settings. HTML pages generated by Flash Professional and
512
+ * Flash Builder use the AC_FL_RunContent() to embed references to SWF files, and you
513
+ * need to add the allowFullScreen parameter settings, as in the following:
514
+ * <codeblock>
515
+ * AC_FL_RunContent( ... "allowFullScreen", "true", ... )
516
+ * </codeblock>
517
+ * Full-screen mode is initiated in response to a mouse click or key press by the user; the movie cannot change
518
+ * Stage.displayState without user input. Flash runtimes restrict keyboard input in full-screen mode.
519
+ * Acceptable keys include keyboard shortcuts that terminate full-screen mode and non-printing keys such as arrows,
520
+ * space, Shift,
521
+ * and Tab keys. Keyboard shortcuts that terminate full-screen mode are:
522
+ * Escape (Windows, Linux, and Mac), Control+W (Windows),
523
+ * Command+W (Mac), and Alt+F4.
524
+ * A Flash runtime dialog box appears over the movie when users enter full-screen mode
525
+ * to inform the users they are in
526
+ * full-screen mode and that they can press the Escape key to end full-screen mode.
527
+ * Starting with Flash Player 9.0.115.0, full-screen works the same in windowless mode as it does in window mode.
528
+ * If you set the Window Mode (wmode in the HTML) to Opaque Windowless (opaque)
529
+ * or Transparent Windowless (transparent), full-screen can be initiated,
530
+ * but the full-screen window will always be opaque.
531
+ * These restrictions are not present for SWF content running in the
532
+ * stand-alone Flash Player or in AIR.
533
+ * AIR supports an interactive full-screen mode which allows keyboard input.
534
+ * For AIR content running in full-screen mode, the system screen saver
535
+ * and power saving options are disabled while video content is playing and until either the video stops
536
+ * or full-screen mode is exited.On Linux, setting displayState to StageDisplayState.FULL_SCREEN or
537
+ * StageDisplayState.FULL_SCREEN_INTERACTIVE is an asynchronous operation.
538
+ * @throws SecurityError Calling the displayState property of a Stage object throws an exception for
539
+ * any caller that is not in the same security sandbox as the Stage owner (the main SWF file).
540
+ * To avoid this, the Stage owner can grant permission to the domain of the caller by calling
541
+ * the Security.allowDomain() method or the Security.allowInsecureDomain() method.
542
+ * For more information, see the "Security" chapter in the ActionScript 3.0 Developer's Guide.
543
+ * Trying to set the displayState property while the settings dialog is displayed, without a user response, or
544
+ * if the param or embed HTML tag's allowFullScreen attribute is not set to
545
+ * true throws a security error.
546
+ */
547
+ get: function () {
548
+ return AVMStage.instance().displayState;
549
+ },
550
+ set: function (value) {
551
+ AVMStage.instance().displayState = value;
552
+ },
553
+ enumerable: false,
554
+ configurable: true
555
+ });
556
+ Object.defineProperty(Stage.prototype, "focus", {
557
+ /**
558
+ * The interactive object with keyboard focus; or null if focus is not set
559
+ * or if the focused object belongs to a security sandbox to which the calling object does not
560
+ * have access.
561
+ * @throws Error Throws an error if focus cannot be set to the target.
562
+ */
563
+ get: function () {
564
+ var _a;
565
+ return (_a = AVMStage.instance().mouseManager.getFocus()) === null || _a === void 0 ? void 0 : _a.container.adapter;
566
+ },
567
+ set: function (newFocus) {
568
+ AVMStage.instance().mouseManager.setFocus(newFocus === null || newFocus === void 0 ? void 0 : newFocus.node);
569
+ },
570
+ enumerable: false,
571
+ configurable: true
572
+ });
573
+ Object.defineProperty(Stage.prototype, "frameRate", {
574
+ /**
575
+ * Gets and sets the frame rate of the stage. The frame rate is defined as frames per second.
576
+ * By default the rate is set to the frame rate of the first SWF file loaded. Valid range for the frame rate
577
+ * is from 0.01 to 1000 frames per second.
578
+ *
579
+ * Note: An application might not be able to follow
580
+ * high frame rate settings, either because the target platform is not fast enough or the player is
581
+ * synchronized to the vertical blank timing of the display device (usually 60 Hz on LCD devices).
582
+ * In some cases, a target platform might also choose to lower the maximum frame rate if it
583
+ * anticipates high CPU usage.For content running in Adobe AIR, setting the frameRate property of one Stage
584
+ * object changes the frame rate for all Stage objects (used by different NativeWindow objects).
585
+ * @throws SecurityError Calling the frameRate property of a Stage object throws an exception for
586
+ * any caller that is not in the same security sandbox as the Stage owner (the main SWF file).
587
+ * To avoid this, the Stage owner can grant permission to the domain of the caller by calling
588
+ * the Security.allowDomain() method or the Security.allowInsecureDomain() method.
589
+ * For more information, see the "Security" chapter in the ActionScript 3.0 Developer's Guide.
590
+ */
591
+ get: function () {
592
+ return AVMStage.instance().frameRate;
593
+ },
594
+ set: function (value) {
595
+ AVMStage.instance().frameRate = value;
596
+ },
597
+ enumerable: false,
598
+ configurable: true
599
+ });
600
+ Object.defineProperty(Stage.prototype, "fullScreenHeight", {
601
+ /**
602
+ * Returns the height of the monitor that will be used when going to full screen size, if that state
603
+ * is entered immediately. If the user has multiple monitors, the monitor that's used is the
604
+ * monitor that most of the stage is on at the time.
605
+ *
606
+ * Note: If the user has the opportunity to move the browser from one
607
+ * monitor to another between retrieving the value and going to full screen
608
+ * size, the value could be incorrect. If you retrieve the value in an event handler that
609
+ * sets Stage.displayState to StageDisplayState.FULL_SCREEN, the value will be
610
+ * correct.This is the pixel height of the monitor and is the same as the
611
+ * stage height would be if Stage.align is set to StageAlign.TOP_LEFT
612
+ * and Stage.scaleMode is set to StageScaleMode.NO_SCALE.
613
+ */
614
+ get: function () {
615
+ return window.screen.height;
616
+ },
617
+ enumerable: false,
618
+ configurable: true
619
+ });
620
+ Object.defineProperty(Stage.prototype, "fullScreenSourceRect", {
621
+ /**
622
+ * Sets the Flash runtime to scale a specific region of the stage to full-screen mode.
623
+ * If available, the Flash runtime scales in hardware, which uses the graphics and video card on a user's computer,
624
+ * and generally displays content more quickly than software scaling.
625
+ *
626
+ * When this property is set to a valid rectangle and the displayState property is set to full-screen mode,
627
+ * the Flash runtime scales the specified area. The actual Stage size in pixels within ActionScript does not change.
628
+ * The Flash runtime enforces a minimum limit for the size of the rectangle to accommodate the standard
629
+ * "Press Esc to exit full-screen mode" message.
630
+ * This limit is usually around 260 by 30 pixels but can vary on platform and Flash runtime version.
631
+ * This property can only be set when the Flash runtime is not in full-screen mode.
632
+ * To use this property correctly, set this property first,
633
+ * then set the displayState property to full-screen mode, as shown in the code examples.To enable scaling,
634
+ * set the fullScreenSourceRect property to a rectangle object:
635
+ * <codeblock>
636
+ *
637
+ * // valid, will enable hardware scaling
638
+ * stage.fullScreenSourceRect = new Rectangle(0,0,320,240);
639
+ *
640
+ * </codeblock>
641
+ * To disable scaling, set the fullScreenSourceRect=null in ActionScript 3.0, and undefined in ActionScript 2.0.
642
+ * <codeblock>
643
+ *
644
+ * stage.fullScreenSourceRect = null;
645
+ *
646
+ * </codeblock>
647
+ * The end user also can select within Flash Player Display Settings to turn off hardware scaling,
648
+ * which is enabled by default.
649
+ * For more information, see www.adobe.com/go/display_settings.
650
+ */
651
+ get: function () {
652
+ // @todo
653
+ Debug.throwPIR('playerglobals/display/Stage', 'get fullScreenSourceRect', '');
654
+ return null;
655
+ },
656
+ set: function (value) {
657
+ // @todo
658
+ Debug.throwPIR('playerglobals/display/Stage', 'set fullScreenSourceRect', '');
659
+ },
660
+ enumerable: false,
661
+ configurable: true
662
+ });
663
+ Object.defineProperty(Stage.prototype, "fullScreenWidth", {
664
+ /**
665
+ * Returns the width of the monitor that will be used when going to full screen size, if that state
666
+ * is entered immediately. If the user has multiple monitors, the monitor that's used is the
667
+ * monitor that most of the stage is on at the time.
668
+ *
669
+ * Note: If the user has the opportunity to move the browser from one
670
+ * monitor to another between retrieving the value and going to full screen
671
+ * size, the value could be incorrect. If you retrieve the value in an event handler that
672
+ * sets Stage.displayState to StageDisplayState.FULL_SCREEN, the value will be
673
+ * correct.This is the pixel width of the monitor and is the same as the stage width would be if
674
+ * Stage.align is set to StageAlign.TOP_LEFT and
675
+ * Stage.scaleMode is set to StageScaleMode.NO_SCALE.
676
+ */
677
+ get: function () {
678
+ return window.screen.width;
679
+ },
680
+ enumerable: false,
681
+ configurable: true
682
+ });
683
+ Object.defineProperty(Stage.prototype, "mouseLock", {
684
+ get: function () {
685
+ // @todo
686
+ Debug.throwPIR('playerglobals/display/Stage', 'get mouseLock', '');
687
+ return false;
688
+ },
689
+ set: function (value) {
690
+ // @todo
691
+ Debug.throwPIR('playerglobals/display/Stage', 'set mouseLock', '');
692
+ },
693
+ enumerable: false,
694
+ configurable: true
695
+ });
696
+ Object.defineProperty(Stage.prototype, "quality", {
697
+ /**
698
+ * A value from the StageQuality class that specifies which rendering quality is used.
699
+ * The following are valid values:
700
+ *
701
+ * StageQuality.LOW—Low rendering quality. Graphics are not
702
+ * anti-aliased, and bitmaps are not smoothed, but runtimes still use mip-mapping.StageQuality.
703
+ * MEDIUM—Medium rendering quality. Graphics are
704
+ * anti-aliased using a 2 x 2 pixel grid, bitmap smoothing is dependent on the Bitmap.smoothing setting.
705
+ * Runtimes use mip-mapping. This setting is suitable for movies that do not contain text.
706
+ * StageQuality.HIGH—High rendering quality. Graphics are anti-aliased
707
+ * using a 4 x 4 pixel grid, and bitmap smoothing is dependent on the Bitmap.smoothing setting.
708
+ * Runtimes use mip-mapping. This is the default rendering quality setting that Flash Player uses.
709
+ * StageQuality.BEST—Very high rendering quality. Graphics are
710
+ * anti-aliased using a 4 x 4 pixel grid. If Bitmap.smoothing is true the runtime uses a high quality
711
+ * downscale algorithm that produces fewer artifacts
712
+ * (however, using StageQuality.BEST with Bitmap.smoothing set to true
713
+ * slows performance significantly and is not a recommended setting).
714
+ * Higher quality settings produce better rendering of scaled bitmaps. However, higher
715
+ * quality settings are computationally more expensive. In particular, when rendering scaled video,
716
+ * using higher quality settings can reduce the frame rate.
717
+ * In the desktop profile of Adobe AIR, quality can be set
718
+ * to StageQuality.BEST or StageQuality.HIGH (and the default value
719
+ * is StageQuality.HIGH). Attempting to set it to another value has no effect
720
+ * (and the property remains unchanged). In the moble profile of AIR, all four quality settings
721
+ * are available. The default value on mobile devices is StageQuality.MEDIUM.
722
+ * For content running in Adobe AIR, setting the quality property of one Stage
723
+ * object changes the rendering quality for all Stage objects (used by different NativeWindow objects).
724
+ * Note: The operating system draws the device fonts,
725
+ * which are therefore unaffected by the quality property.
726
+ * @throws SecurityError Calling the quality property of a Stage object throws an exception for
727
+ * any caller that is not in the same security sandbox as the Stage owner (the main SWF file).
728
+ * To avoid this, the Stage owner can grant permission to the domain of the caller by calling
729
+ * the Security.allowDomain() method or the Security.allowInsecureDomain() method.
730
+ * For more information, see the "Security" chapter in the ActionScript 3.0 Developer's Guide.
731
+ */
732
+ get: function () {
733
+ return AVMStage.instance().quality.toUpperCase();
734
+ },
735
+ set: function (value) {
736
+ AVMStage.instance().quality = value.toLowerCase();
737
+ },
738
+ enumerable: false,
739
+ configurable: true
740
+ });
741
+ Object.defineProperty(Stage.prototype, "scaleMode", {
742
+ /**
743
+ * A value from the StageScaleMode class that specifies which scale mode to use.
744
+ * The following are valid values:
745
+ *
746
+ * StageScaleMode.EXACT_FIT—The entire application is visible
747
+ * in the specified area without trying to preserve the original aspect ratio.
748
+ * Distortion can occur, and the application may appear stretched or compressed.
749
+ * StageScaleMode.SHOW_ALL—The entire application is visible
750
+ * in the specified area without distortion while maintaining the original aspect ratio of the application.
751
+ * Borders can appear on two sides of the application.
752
+ * StageScaleMode.NO_BORDER—The entire application fills the specified area,
753
+ * without distortion but possibly with some cropping, while maintaining the original aspect ratio
754
+ * of the application.
755
+ * StageScaleMode.NO_SCALE—The entire application is fixed, so that
756
+ * it remains unchanged even as the size of the player window changes. Cropping might
757
+ * occur if the player window is smaller than the content.
758
+ * @throws SecurityError Calling the scaleMode property of a Stage object throws an exception for
759
+ * any caller that is not in the same security sandbox as the Stage owner (the main SWF file).
760
+ * To avoid this, the Stage owner can grant permission to the domain of the caller by calling
761
+ * the Security.allowDomain() method or the Security.allowInsecureDomain() method.
762
+ * For more information, see the "Security" chapter in the ActionScript 3.0 Developer's Guide.
763
+ */
764
+ get: function () {
765
+ return AVMStage.instance().scaleMode;
766
+ },
767
+ set: function (value) {
768
+ AVMStage.instance().scaleMode = value;
769
+ },
770
+ enumerable: false,
771
+ configurable: true
772
+ });
773
+ Object.defineProperty(Stage.prototype, "showDefaultContextMenu", {
774
+ /**
775
+ * Specifies whether to show or hide the default items in the Flash runtime
776
+ * context menu.
777
+ *
778
+ * If the showDefaultContextMenu property is set to true (the
779
+ * default), all context menu items appear. If the showDefaultContextMenu property
780
+ * is set to false, only the Settings and About... menu items appear.
781
+ * @throws SecurityError Calling the showDefaultContextMenu property of a Stage object throws an exception for
782
+ * any caller that is not in the same security sandbox as the Stage owner (the main SWF file).
783
+ * To avoid this, the Stage owner can grant permission to the domain of the caller by calling
784
+ * the Security.allowDomain() method or the Security.allowInsecureDomain() method.
785
+ * For more information, see the "Security" chapter in the ActionScript 3.0 Developer's Guide.
786
+ */
787
+ get: function () {
788
+ // @todo
789
+ Debug.throwPIR('playerglobals/display/Stage', 'get showDefaultContextMenu', '');
790
+ return false;
791
+ },
792
+ set: function (value) {
793
+ // @todo
794
+ Debug.throwPIR('playerglobals/display/Stage', 'set showDefaultContextMenu', '');
795
+ },
796
+ enumerable: false,
797
+ configurable: true
798
+ });
799
+ Object.defineProperty(Stage.prototype, "softKeyboardRect", {
800
+ /**
801
+ * The area of the stage that is currently covered by the software keyboard.
802
+ *
803
+ * The area has a size of zero (0,0,0,0) when the soft keyboard is not visible.
804
+ * When the keyboard opens, the softKeyboardRect is set at the time the
805
+ * softKeyboardActivate event is dispatched. If the keyboard changes size while open,
806
+ * the runtime updates the softKeyboardRect property and dispatches an
807
+ * additional softKeyboardActivate event.Note: On Android, the area covered by the keyboard is estimated when
808
+ * the operating system does not provide the information necessary to determine the exact
809
+ * area. This problem occurs in fullscreen mode and also when the keyboard opens in response to
810
+ * an InteractiveObject receiving focus or invoking the requestSoftKeyboard() method.
811
+ */
812
+ get: function () {
813
+ // @todo
814
+ Debug.throwPIR('playerglobals/display/Stage', 'get softKeyboardRect', '');
815
+ return null;
816
+ },
817
+ enumerable: false,
818
+ configurable: true
819
+ });
820
+ Object.defineProperty(Stage.prototype, "stage3Ds", {
821
+ get: function () {
822
+ // @todo
823
+ Debug.throwPIR('playerglobals/display/Stage', 'get stage3Ds', '');
824
+ return this._stage3Ds;
825
+ },
826
+ enumerable: false,
827
+ configurable: true
828
+ });
829
+ Object.defineProperty(Stage.prototype, "stage", {
830
+ get: function () {
831
+ // this override only works when called from ts
832
+ // when called from avm, it will still call DisplayObject.stage,
833
+ // because abc does not know stage overrides this getter
834
+ return this;
835
+ },
836
+ set: function (value) {
837
+ this._stage = value;
838
+ },
839
+ enumerable: false,
840
+ configurable: true
841
+ });
842
+ Object.defineProperty(Stage.prototype, "stageFocusRect", {
843
+ /**
844
+ * Specifies whether or not objects display a glowing border when they have focus.
845
+ * @throws SecurityError Calling the stageFocusRect property of a Stage object throws an exception for
846
+ * any caller that is not in the same security sandbox as the Stage owner (the main SWF file).
847
+ * To avoid this, the Stage owner can grant permission to the domain of the caller by calling
848
+ * the Security.allowDomain() method or the Security.allowInsecureDomain() method.
849
+ * For more information, see the "Security" chapter in the ActionScript 3.0 Developer's Guide.
850
+ */
851
+ get: function () {
852
+ // @todo
853
+ Debug.throwPIR('playerglobals/display/Stage', 'get stageFocusRect', '');
854
+ return false;
855
+ },
856
+ set: function (on) {
857
+ // @todo
858
+ Debug.throwPIR('playerglobals/display/Stage', 'set stageFocusRect', '');
859
+ },
860
+ enumerable: false,
861
+ configurable: true
862
+ });
863
+ Object.defineProperty(Stage.prototype, "stageHeight", {
864
+ /**
865
+ * The current height, in pixels, of the Stage.
866
+ *
867
+ * If the value of the Stage.scaleMode property is set to StageScaleMode.NO_SCALE
868
+ * when the user resizes the window, the Stage content maintains its size while the
869
+ * stageHeight property changes to reflect the new height size of the screen area occupied by
870
+ * the SWF file. (In the other scale modes, the stageHeight property always reflects the original
871
+ * height of the SWF file.) You can add an event listener for the resize event and then use the
872
+ * stageHeight property of the Stage class to determine the actual pixel dimension of the resized
873
+ * Flash runtime window. The event listener allows you to control how
874
+ * the screen content adjusts when the user resizes the window.
875
+ * Air for TV devices have slightly different behavior than desktop devices
876
+ * when you set the stageHeight property.
877
+ * If the Stage.scaleMode
878
+ * property is set to StageScaleMode.NO_SCALE and you set the stageHeight
879
+ * property, the stage height does not change until the next
880
+ * frame of the SWF.Note: In an HTML page hosting the SWF file,
881
+ * both the object and embed tags' height attributes must be set to a percentage (such as 100%), not pixels. If the
882
+ * settings are generated by JavaScript code, the height parameter of the AC_FL_RunContent()
883
+ * method must be set to a percentage, too. This percentage is applied to the stageHeight
884
+ * value.
885
+ * @throws SecurityError Calling the stageHeight property of a Stage object throws an exception for
886
+ * any caller that is not in the same security sandbox as the Stage owner (the main SWF file).
887
+ * To avoid this, the Stage owner can grant permission to the domain of the caller by calling
888
+ * the Security.allowDomain() method or the Security.allowInsecureDomain() method.
889
+ * For more information, see the "Security" chapter in the ActionScript 3.0 Developer's Guide.
890
+ */
891
+ get: function () {
892
+ return AVMStage.instance().stageHeight;
893
+ },
894
+ set: function (value) {
895
+ AVMStage.instance().stageHeight = value;
896
+ },
897
+ enumerable: false,
898
+ configurable: true
899
+ });
900
+ Object.defineProperty(Stage.prototype, "stageVideos", {
901
+ /**
902
+ * A list of StageVideo objects available for playing external videos.
903
+ *
904
+ * You can use only a limited number of StageVideo objects at a time.
905
+ * When a SWF begins to run, the number of available StageVideo objects depends on the platform
906
+ * and on available hardware.
907
+ * To use a StageVideo object, assign a member of the stageVideos Vector object to a StageVideo variable.
908
+ * All StageVideo objects are displayed on the stage behind any display objects.
909
+ * The StageVideo objects are displayed on the stage in the order they appear in
910
+ * the stageVideos Vector object. For example, if the stageVideos Vector object contains
911
+ * three entries:The StageVideo object in the 0 index of the stageVideos Vector object is
912
+ * displayed behind all StageVideo objects.The StageVideo object at index 1 is displayed in front
913
+ * of the StageVideo object at index 0.The StageVideo object at index 2 is displayed in front
914
+ * of the StageVideo object at index 1.Use the StageVideo.depth property to change this ordering.
915
+ * Note: AIR for TV devices support only one StageVideo object.
916
+ */
917
+ get: function () {
918
+ // @todo any is StageVideo
919
+ Debug.throwPIR('playerglobals/display/Stage', 'get stageVideos', '');
920
+ return [];
921
+ },
922
+ enumerable: false,
923
+ configurable: true
924
+ });
925
+ Object.defineProperty(Stage.prototype, "stageWidth", {
926
+ /**
927
+ * Specifies the current width, in pixels, of the Stage.
928
+ *
929
+ * If the value of the Stage.scaleMode property is set to StageScaleMode.NO_SCALE
930
+ * when the user resizes the window, the Stage content maintains its defined size while the stageWidth
931
+ * property changes to reflect the new width size of the screen area occupied by the SWF file. (In the other scale
932
+ * modes, the stageWidth property always reflects the original width of the SWF file.) You can add an event
933
+ * listener for the resize event and then use the stageWidth property of the Stage class to
934
+ * determine the actual pixel dimension of the resized Flash runtime window.
935
+ * The event listener allows you to control how
936
+ * the screen content adjusts when the user resizes the window.
937
+ * Air for TV devices have slightly different behavior than desktop devices
938
+ * when you set the stageWidth property.
939
+ * If the Stage.scaleMode
940
+ * property is set to StageScaleMode.NO_SCALE and you set the stageWidth
941
+ * property, the stage width does not change until the next
942
+ * frame of the SWF.Note: In an HTML page hosting the SWF file,
943
+ * both the object and embed tags' width attributes must be set to a percentage (such as 100%), not pixels. If the
944
+ * settings are generated by JavaScript code, the width parameter of the AC_FL_RunContent()
945
+ * method must be set to a percentage, too. This percentage is applied to the stageWidth
946
+ * value.
947
+ * @throws SecurityError Calling the stageWidth property of a Stage object throws an exception for
948
+ * any caller that is not in the same security sandbox as the Stage owner (the main SWF file).
949
+ * To avoid this, the Stage owner can grant permission to the domain of the caller by calling
950
+ * the Security.allowDomain() method or the Security.allowInsecureDomain() method.
951
+ * For more information, see the "Security" chapter in the ActionScript 3.0 Developer's Guide.
952
+ */
953
+ get: function () {
954
+ return AVMStage.instance().stageWidth;
955
+ },
956
+ set: function (value) {
957
+ AVMStage.instance().stageWidth = value;
958
+ },
959
+ enumerable: false,
960
+ configurable: true
961
+ });
962
+ Object.defineProperty(Stage.prototype, "tabChildren", {
963
+ /**
964
+ * Determines whether the children of the object are tab enabled. Enables or disables tabbing for the
965
+ * children of the object. The default is true.
966
+ * Note: Do not use the tabChildren property with Flex.
967
+ * Instead, use the mx.core.UIComponent.hasFocusableChildren property.
968
+ * @throws SecurityError Referencing the tabChildren property of a Stage object throws an exception for
969
+ * any caller that is not in the same security sandbox as the Stage owner (the main SWF file).
970
+ * To avoid this, the Stage owner can grant permission to the domain of the caller by calling
971
+ * the Security.allowDomain() method or the Security.allowInsecureDomain() method.
972
+ * For more information, see the "Security" chapter in the ActionScript 3.0 Developer's Guide.
973
+ */
974
+ get: function () {
975
+ // @todo
976
+ Debug.throwPIR('playerglobals/display/Stage', 'get tabChildren', '');
977
+ return false;
978
+ },
979
+ set: function (value) { },
980
+ enumerable: false,
981
+ configurable: true
982
+ });
983
+ Object.defineProperty(Stage.prototype, "textSnapshot", {
984
+ /**
985
+ * Returns a TextSnapshot object for this DisplayObjectContainer instance.
986
+ * @throws IllegalOperationError Referencing the textSnapshot property of a Stage object throws an
987
+ * exception because the Stage class does not implement this property. To avoid this, call the
988
+ * textSnapshot property of a display object container other than the Stage object.
989
+ */
990
+ get: function () {
991
+ // @todo
992
+ Debug.throwPIR('playerglobals/display/Stage', 'get textSnapshot', '');
993
+ return null;
994
+ },
995
+ enumerable: false,
996
+ configurable: true
997
+ });
998
+ Object.defineProperty(Stage.prototype, "wmodeGPU", {
999
+ /**
1000
+ * Indicates whether GPU compositing is available and in use. The wmodeGPU value is trueonly
1001
+ * when all three of the following conditions exist:
1002
+ * GPU compositing has been requested.GPU compositing is available.
1003
+ * GPU compositing is in use.Specifically, the wmodeGPU property indicates one of the following:
1004
+ * GPU compositing has not been requested or is unavailable. In this case, the wmodeGPU property value is false.
1005
+ * GPU compositing has been requested (if applicable and available),
1006
+ * but the environment is operating in "fallback mode"
1007
+ * (not optimal rendering) due to limitations of the content.
1008
+ * In this case, the wmodeGPU property value is true.
1009
+ * GPU compositing has been requested (if applicable and available),
1010
+ * and the environment is operating in the best mode. In this case, the
1011
+ * wmodeGPU property value is also true.In other words, the wmodeGPU property identifies the capability
1012
+ * and state of the rendering environment. For runtimes
1013
+ * that do not support GPU compositing, such as AIR 1.5.2,
1014
+ * the value is always false, because (as stated above) the value is
1015
+ * true only when GPU compositing has been requested, is available, and is in use.
1016
+ * The wmodeGPU property is useful to determine, at runtime, whether or not GPU compositing is in use.
1017
+ * The value of wmodeGPU indicates if your content is going to be scaled by hardware, or not,
1018
+ * so you can present graphics at the correct size.
1019
+ * You can also determine if you're rendering in a fast path or not,
1020
+ * so that you can adjust your content complexity accordingly.For Flash Player in a browser,
1021
+ * GPU compositing can be requested by the value of gpu for the wmode HTML
1022
+ * parameter in the page hosting the SWF file. For other configurations,
1023
+ * GPU compositing can be requested in the header of a SWF file
1024
+ * (set using SWF authoring tools).However,
1025
+ * the wmodeGPU property does not identify the current rendering performance.
1026
+ * Even if GPU compositing is "in use" the rendering
1027
+ * process might not be operating in the best mode. To adjust your content for optimal rendering,
1028
+ * use a Flash runtime debugger version,
1029
+ * and set the DisplayGPUBlendsetting in your mm.cfg file.Note:
1030
+ * This property is always false when referenced
1031
+ * from ActionScript that runs before the runtime performs its first rendering
1032
+ * pass. For example, if you examine wmodeGPU from a script in Frame 1 of
1033
+ * Adobe Flash Professional, and your SWF file is the first SWF file loaded in a new
1034
+ * instance of the runtime, then the wmodeGPU value is false.
1035
+ * To get an accurate value, wait until at least one rendering pass
1036
+ * has occurred. If you write an event listener for the
1037
+ * exitFrame event of any DisplayObject, the wmodeGPU value at
1038
+ * is the correct value.
1039
+ */
1040
+ get: function () {
1041
+ // @todo
1042
+ Debug.throwPIR('playerglobals/display/Stage', 'get wmodeGPU', '');
1043
+ return false;
1044
+ },
1045
+ enumerable: false,
1046
+ configurable: true
1047
+ });
1048
+ Object.defineProperty(Stage.prototype, "accessibilityProperties", {
1049
+ //empty functions to prevent inherited actions
1050
+ set: function (value) { } //todo: any is AccessibilityImplementation
1051
+ ,
1052
+ enumerable: false,
1053
+ configurable: true
1054
+ });
1055
+ Object.defineProperty(Stage.prototype, "alpha", {
1056
+ set: function (value) { },
1057
+ enumerable: false,
1058
+ configurable: true
1059
+ });
1060
+ Object.defineProperty(Stage.prototype, "blendMode", {
1061
+ set: function (value) { },
1062
+ enumerable: false,
1063
+ configurable: true
1064
+ });
1065
+ Object.defineProperty(Stage.prototype, "cacheAsBitmap", {
1066
+ set: function (value) { },
1067
+ enumerable: false,
1068
+ configurable: true
1069
+ });
1070
+ Object.defineProperty(Stage.prototype, "contextMenu", {
1071
+ set: function (value) { } // todo: any is ContextMenu
1072
+ ,
1073
+ enumerable: false,
1074
+ configurable: true
1075
+ });
1076
+ Object.defineProperty(Stage.prototype, "filters", {
1077
+ set: function (value) { },
1078
+ enumerable: false,
1079
+ configurable: true
1080
+ });
1081
+ Object.defineProperty(Stage.prototype, "focusRect", {
1082
+ set: function (value) { },
1083
+ enumerable: false,
1084
+ configurable: true
1085
+ });
1086
+ Object.defineProperty(Stage.prototype, "mask", {
1087
+ set: function (value) { },
1088
+ enumerable: false,
1089
+ configurable: true
1090
+ });
1091
+ Object.defineProperty(Stage.prototype, "mouseChildren", {
1092
+ get: function () { return false; },
1093
+ set: function (value) { },
1094
+ enumerable: false,
1095
+ configurable: true
1096
+ });
1097
+ Object.defineProperty(Stage.prototype, "mouseEnabled", {
1098
+ get: function () { return false; },
1099
+ set: function (value) { },
1100
+ enumerable: false,
1101
+ configurable: true
1102
+ });
1103
+ Object.defineProperty(Stage.prototype, "numChildren", {
1104
+ get: function () { return 0; },
1105
+ set: function (value) { },
1106
+ enumerable: false,
1107
+ configurable: true
1108
+ });
1109
+ Object.defineProperty(Stage.prototype, "width", {
1110
+ get: function () {
1111
+ var _a;
1112
+ var descriptor = Object.getOwnPropertyDescriptor(DisplayObject.prototype, "width");
1113
+ return (_a = descriptor === null || descriptor === void 0 ? void 0 : descriptor.get) === null || _a === void 0 ? void 0 : _a.call(this);
1114
+ },
1115
+ set: function (value) { },
1116
+ enumerable: false,
1117
+ configurable: true
1118
+ });
1119
+ Object.defineProperty(Stage.prototype, "height", {
1120
+ get: function () { return 0; },
1121
+ set: function (value) { },
1122
+ enumerable: false,
1123
+ configurable: true
1124
+ });
1125
+ Object.defineProperty(Stage.prototype, "opaqueBackground", {
1126
+ set: function (value) { },
1127
+ enumerable: false,
1128
+ configurable: true
1129
+ });
1130
+ Object.defineProperty(Stage.prototype, "name", {
1131
+ set: function (value) { },
1132
+ enumerable: false,
1133
+ configurable: true
1134
+ });
1135
+ Object.defineProperty(Stage.prototype, "rotation", {
1136
+ set: function (value) { },
1137
+ enumerable: false,
1138
+ configurable: true
1139
+ });
1140
+ Object.defineProperty(Stage.prototype, "rotationX", {
1141
+ set: function (value) { },
1142
+ enumerable: false,
1143
+ configurable: true
1144
+ });
1145
+ Object.defineProperty(Stage.prototype, "rotationY", {
1146
+ set: function (value) { },
1147
+ enumerable: false,
1148
+ configurable: true
1149
+ });
1150
+ Object.defineProperty(Stage.prototype, "rotationZ", {
1151
+ set: function (value) { },
1152
+ enumerable: false,
1153
+ configurable: true
1154
+ });
1155
+ Object.defineProperty(Stage.prototype, "scale9Grid", {
1156
+ set: function (value) { },
1157
+ enumerable: false,
1158
+ configurable: true
1159
+ });
1160
+ Object.defineProperty(Stage.prototype, "scaleX", {
1161
+ set: function (value) { },
1162
+ enumerable: false,
1163
+ configurable: true
1164
+ });
1165
+ Object.defineProperty(Stage.prototype, "scaleY", {
1166
+ set: function (value) { },
1167
+ enumerable: false,
1168
+ configurable: true
1169
+ });
1170
+ Object.defineProperty(Stage.prototype, "scaleZ", {
1171
+ set: function (value) { },
1172
+ enumerable: false,
1173
+ configurable: true
1174
+ });
1175
+ Object.defineProperty(Stage.prototype, "scrollRect", {
1176
+ set: function (value) { },
1177
+ enumerable: false,
1178
+ configurable: true
1179
+ });
1180
+ Object.defineProperty(Stage.prototype, "tabEnabled", {
1181
+ set: function (value) { },
1182
+ enumerable: false,
1183
+ configurable: true
1184
+ });
1185
+ Object.defineProperty(Stage.prototype, "tabIndex", {
1186
+ set: function (value) { },
1187
+ enumerable: false,
1188
+ configurable: true
1189
+ });
1190
+ Object.defineProperty(Stage.prototype, "transform", {
1191
+ set: function (value) { },
1192
+ enumerable: false,
1193
+ configurable: true
1194
+ });
1195
+ Object.defineProperty(Stage.prototype, "visible", {
1196
+ set: function (value) { },
1197
+ enumerable: false,
1198
+ configurable: true
1199
+ });
1200
+ Object.defineProperty(Stage.prototype, "x", {
1201
+ get: function () {
1202
+ return this.adaptee.x;
1203
+ },
1204
+ set: function (value) { },
1205
+ enumerable: false,
1206
+ configurable: true
1207
+ });
1208
+ Object.defineProperty(Stage.prototype, "y", {
1209
+ get: function () {
1210
+ return this.adaptee.y;
1211
+ },
1212
+ set: function (value) { },
1213
+ enumerable: false,
1214
+ configurable: true
1215
+ });
1216
+ Object.defineProperty(Stage.prototype, "z", {
1217
+ set: function (value) { },
1218
+ enumerable: false,
1219
+ configurable: true
1220
+ });
1221
+ // 80pro: todo: this was added because otherwise avm2 cant find these on Stage
1222
+ // but it should find them anyway, because its inheriting from Sprite...
1223
+ //____________________________________
1224
+ Stage.prototype.addChild = function (child) {
1225
+ child.dispatch_ADDED_TO_STAGE();
1226
+ var returnChild = _super.prototype.addChild.call(this, child);
1227
+ child.adaptee.hasDispatchedAddedToStage = true;
1228
+ child.dispatchStaticEvent(Event.ADDED_TO_STAGE, child);
1229
+ return returnChild;
1230
+ };
1231
+ Stage.prototype.addChildAt = function (child, index) {
1232
+ child.dispatch_ADDED_TO_STAGE();
1233
+ var returnChild = _super.prototype.addChildAt.call(this, child, index);
1234
+ child.adaptee.hasDispatchedAddedToStage = true;
1235
+ child.dispatchStaticEvent(Event.ADDED_TO_STAGE, child);
1236
+ return returnChild;
1237
+ };
1238
+ Stage.prototype.removeChildAt = function (index) {
1239
+ return _super.prototype.removeChildAt.call(this, index);
1240
+ };
1241
+ Stage.prototype.swapChildrenAt = function (index, index2) { return _super.prototype.swapChildrenAt.call(this, index, index2); };
1242
+ Stage.prototype.setChildIndex = function (child, index) { return null; };
1243
+ Stage.prototype.addEventListener = function (type, listener, useCapture, priority, useWeakReference) {
1244
+ if (useCapture === void 0) { useCapture = false; }
1245
+ if (priority === void 0) { priority = 0; }
1246
+ if (useWeakReference === void 0) { useWeakReference = false; }
1247
+ _super.prototype.addEventListener.call(this, type, listener, useCapture = false, priority, useWeakReference);
1248
+ };
1249
+ Stage.prototype.hasEventListener = function (type) {
1250
+ return _super.prototype.hasEventListener.call(this, type);
1251
+ };
1252
+ Stage.prototype.willTrigger = function () { return _super.prototype.willTrigger.call(this); };
1253
+ Stage.prototype.dispatchEvent = function (event) {
1254
+ return _super.prototype.dispatchEvent.call(this, event);
1255
+ };
1256
+ Object.defineProperty(Stage.prototype, "loaderInfo", {
1257
+ //____________________________________
1258
+ get: function () {
1259
+ return this.getChildAt(0).loaderInfo;
1260
+ },
1261
+ enumerable: false,
1262
+ configurable: true
1263
+ });
1264
+ /**
1265
+ * Calling the invalidate() method signals Flash runtimes to alert display objects
1266
+ * on the next opportunity it has to render the display list (for example, when the playhead
1267
+ * advances to a new frame). After you call the invalidate() method, when the display
1268
+ * list is next rendered, the Flash runtime sends a render event to each display object that has
1269
+ * registered to listen for the render event. You must call the invalidate()
1270
+ * method each time you want the Flash runtime to send render events.
1271
+ *
1272
+ * The render event gives you an opportunity to make changes to the display list
1273
+ * immediately before it is actually rendered. This lets you defer updates to the display list until the
1274
+ * latest opportunity. This can increase performance by eliminating unnecessary screen updates.
1275
+ * The render event is dispatched only to display objects that are in the same
1276
+ * security domain as the code that calls the stage.invalidate() method,
1277
+ * or to display objects from a security domain that has been granted permission via the
1278
+ * Security.allowDomain() method.
1279
+ */
1280
+ Stage.prototype.invalidate = function () {
1281
+ this._sendEventRender = true;
1282
+ };
1283
+ /**
1284
+ * Determines whether the Stage.focus property returns null for
1285
+ * security reasons.
1286
+ * In other words, isFocusInaccessible returns true if the
1287
+ * object that has focus belongs to a security sandbox to which the SWF file does not have access.
1288
+ * @return true if the object that has focus belongs to a security sandbox to which
1289
+ * the SWF file does not have access.
1290
+ */
1291
+ Stage.prototype.isFocusInaccessible = function () {
1292
+ // @todo
1293
+ Debug.throwPIR('playerglobals/display/Stage', 'isFocusInaccessible', '');
1294
+ return false;
1295
+ };
1296
+ return Stage;
1297
+ }(DisplayObjectContainer));
1298
+ export { Stage };