@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,1398 @@
1
+ import { __extends } from "tslib";
2
+ import { InteractiveObject } from '../display/InteractiveObject';
3
+ import { TextEvent } from '../events/TextEvent';
4
+ import { Event } from '../events/Event';
5
+ import { TextField as AwayTextField, TextFieldAutoSize, TextFieldType, TextfieldEvent } from '@awayjs/scene';
6
+ import { constructClassFromSymbol } from '@awayfl/avm2';
7
+ import { Debug } from '@awayjs/core';
8
+ /**
9
+ * Flash Player dispatches the textInteractionModeChange event when a user
10
+ * changes the interaction mode of a text field.
11
+ [Event(name="textInteractionModeChange", type="flash.events.Event")]
12
+
13
+ * Flash Player dispatches the textInput event when a user enters one or more
14
+ * characters of text.
15
+ * @eventType flash.events.TextEvent.TEXT_INPUT
16
+ [Event(name="textInput", type="flash.events.TextEvent")]
17
+
18
+ * Dispatched by a TextField object after the user scrolls.
19
+ * @eventType flash.events.Event.SCROLL
20
+ [Event(name="scroll", type="flash.events.Event")]
21
+
22
+ * Dispatched when a user clicks a hyperlink in an
23
+ * HTML-enabled text field, where the URL begins with "event:".
24
+ * @eventType flash.events.TextEvent.LINK
25
+ *
26
+ [Event(name="link", type="flash.events.TextEvent")]
27
+
28
+ * Dispatched after a control value is modified, unlike
29
+ * the textInput event, which is dispatched before the value is modified.
30
+ * @eventType flash.events.Event.CHANGE
31
+ [Event(name="change", type="flash.events.Event")]
32
+
33
+ * The TextField class is used to create display objects for text display and input.
34
+ * <ph outputclass="flexonly" class="- topic/ph ">You can use the TextField class to perform low-level text rendering.
35
+ * However, in Flex, you typically use the Label, Text, TextArea, and TextInput controls to process text.
36
+ * </ph><ph outputclass="flashonly" class="- topic/ph ">
37
+ * You can give a text field an instance name in the Property inspector and
38
+ * use the methods and properties of the TextField class to manipulate it with ActionScript.
39
+ * TextField instance names are displayed in the Movie Explorer and in the Insert Target Path dialog box
40
+ * in the Actions panel.</ph><p class="- topic/p ">To create a text field dynamically,
41
+ * use the <codeph class="+ topic/ph pr-d/codeph ">TextField()</codeph> constructor.</p>
42
+ * <p class="- topic/p ">
43
+ * The methods of the TextField class let you set, select, and manipulate text in a dynamic or input
44
+ * text field that you create during authoring or at runtime. </p>
45
+ * <p class="- topic/p ">ActionScript provides several ways to
46
+ * format your text at runtime. The TextFormat class lets you set character and paragraph formatting
47
+ * for TextField objects. You can apply Cascading Style Sheets (CSS) styles
48
+ * to text fields by using the <codeph class="+ topic/ph pr-d/codeph ">TextField.styleSheet</codeph>
49
+ * property and the StyleSheet class. You can use CSS to
50
+ * style built-in HTML tags, define new formatting tags, or apply styles.
51
+ * You can assign HTML formatted text, which optionally uses CSS styles, directly to a text
52
+ * field. HTML text that you assign to a text field can contain embedded
53
+ * media (movie clips, SWF files, GIF files, PNG files, and JPEG files). The text wraps around the
54
+ * embedded media in the same way that a web browser wraps text around media embedded in an HTML document.
55
+ * </p><p class="- topic/p ">Flash Player supports a subset of HTML tags that you can use to format text.
56
+ * See the list of supported
57
+ * HTML tags in the description of the <codeph class="+ topic/ph pr-d/codeph ">htmlText</codeph> property.</p>
58
+ */
59
+ var TextField = /** @class */ (function (_super) {
60
+ __extends(TextField, _super);
61
+ /**
62
+ * Creates a new TextField instance. After you create the TextField instance, call the
63
+ * addChild() or addChildAt() method of the parent
64
+ * DisplayObjectContainer object to add the TextField instance to the display list.
65
+ * The default size for a text field is 100 x 100 pixels.
66
+ */
67
+ function TextField() {
68
+ var _this = _super.call(this) || this;
69
+ _this._textFieldChangeListener = {};
70
+ _this.adaptee.autoSize = TextFieldAutoSize.NONE;
71
+ // fucking FLASH constructor can be called after assignments a cloned props
72
+ // and mouseEnabled changed by DisplayObject to TRUE
73
+ _this.adaptee.mouseEnabled = _this.adaptee.selectable;
74
+ _this.eventMappingDummys[TextEvent.TEXT_INPUT] = 'TextField:TextEvent.TEXT_INPUT';
75
+ _this.eventMappingDummys[TextEvent.LINK] = 'TextField:TextEvent.LINK';
76
+ _this.eventMappingDummys[Event.SCROLL] = 'TextField:Event.SCROLL';
77
+ _this.eventMappingDummys[Event.TEXT_INTERACTION_MODE_CHANGE] = 'TextField:Event.TEXT_INTERACTION_MODE_CHANGE';
78
+ _this._textChangeCallbackDelegate = function (event) { return _this.textChangeCallback(event); };
79
+ if (_this.adaptee.type == TextFieldType.INPUT) {
80
+ _this.adaptee.addEventListener(TextfieldEvent.CHANGED, _this._textChangeCallbackDelegate);
81
+ }
82
+ return _this;
83
+ }
84
+ TextField.getNewTextField = function (adaptee) {
85
+ if (adaptee === void 0) { adaptee = null; }
86
+ if (TextField._textFields.length) {
87
+ var textField = TextField._textFields.pop();
88
+ textField.adaptee = adaptee || AwayTextField.getNewTextField();
89
+ return textField;
90
+ }
91
+ return new TextField();
92
+ };
93
+ TextField.prototype.textChangeCallback = function (event) {
94
+ var adaptedEvent = new this.sec.flash.events.Event(Event.CHANGE);
95
+ //adaptedEvent.fillFromAway(event);
96
+ adaptedEvent.target = this;
97
+ //adaptedEvent.currentTarget=this;
98
+ this.dispatchEvent(adaptedEvent, false);
99
+ };
100
+ TextField.prototype.createAdaptee = function () {
101
+ var newAdaptee = AwayTextField.getNewTextField();
102
+ newAdaptee.reset();
103
+ return newAdaptee;
104
+ };
105
+ TextField.prototype.initAdapter = function () { };
106
+ TextField.prototype.dispatchKeyEvent = function (charCode, isShift, isCTRL, isAlt) {
107
+ };
108
+ TextField.prototype.selectTextField = function () {
109
+ };
110
+ TextField.prototype.clone = function () {
111
+ var clone = constructClassFromSymbol(this._symbol, this._symbol.symbolClass);
112
+ //var clone:TextField = new (<SecurityDomain> this.sec).flash.text.TextField();
113
+ var newText = new AwayTextField();
114
+ this.adaptee.copyTo(newText);
115
+ clone.adaptee = newText;
116
+ clone._stage = this.activeStage;
117
+ clone.executeConstructor = function () {
118
+ clone.axInitializer();
119
+ };
120
+ return clone;
121
+ };
122
+ /**
123
+ * @inheritDoc
124
+ */
125
+ TextField.prototype.dispose = function () {
126
+ this.disposeValues();
127
+ TextField._textFields.push(this);
128
+ };
129
+ Object.defineProperty(TextField.prototype, "alwaysShowSelection", {
130
+ /**
131
+ * When set to true and the text field is not in focus, Flash Player highlights the
132
+ * selection in the text field in gray. When set to false and the text field is not in
133
+ * focus, Flash Player does not highlight the selection in the text field.
134
+ */
135
+ get: function () {
136
+ return this._adaptee.alwaysShowSelection;
137
+ },
138
+ set: function (value) {
139
+ this._adaptee.alwaysShowSelection = value;
140
+ },
141
+ enumerable: false,
142
+ configurable: true
143
+ });
144
+ Object.defineProperty(TextField.prototype, "antiAliasType", {
145
+ /**
146
+ * The type of anti-aliasing used for this text field. Use flash.text.AntiAliasType
147
+ * constants for this property. You can control this setting only if the font is
148
+ * embedded (with the embedFonts property set to true).
149
+ * The default setting is flash.text.AntiAliasType.NORMAL.
150
+ *
151
+ * To set values for this property, use the following string values:String valueDescription
152
+ * flash.text.AntiAliasType.NORMALApplies the regular text anti-aliasing.
153
+ * This value matches the type of anti-aliasing that
154
+ * Flash Player 7 and earlier versions used.flash.text.AntiAliasType.ADVANCED
155
+ * Applies advanced anti-aliasing, which makes text more legible. (This feature became
156
+ * available in Flash Player 8.) Advanced anti-aliasing allows for high-quality rendering
157
+ * of font faces at small sizes. It is best used with applications
158
+ * with a lot of small text. Advanced anti-aliasing is not recommended for
159
+ * fonts that are larger than 48 points.
160
+ */
161
+ get: function () {
162
+ return this._adaptee.antiAliasType;
163
+ },
164
+ set: function (antiAliasType) {
165
+ this._adaptee.antiAliasType = antiAliasType;
166
+ },
167
+ enumerable: false,
168
+ configurable: true
169
+ });
170
+ Object.defineProperty(TextField.prototype, "autoSize", {
171
+ /**
172
+ * Controls automatic sizing and alignment of text fields.
173
+ * Acceptable values for the TextFieldAutoSize constants: TextFieldAutoSize.NONE (the default),
174
+ * TextFieldAutoSize.LEFT, TextFieldAutoSize.RIGHT, and TextFieldAutoSize.CENTER.
175
+ *
176
+ * If autoSize is set to TextFieldAutoSize.NONE (the default) no resizing occurs.
177
+ * If autoSize is set to TextFieldAutoSize.LEFT, the text is
178
+ * treated as left-justified text, meaning that the left margin of the text field remains fixed and any
179
+ * resizing of a single line of the text field is on the right margin. If the text includes a line break
180
+ * (for example, "\n" or "\r"), the bottom is also resized to fit the next
181
+ * line of text. If wordWrap is also set to true, only the bottom
182
+ * of the text field is resized and the right side remains fixed.
183
+ * If autoSize is set to TextFieldAutoSize.RIGHT, the text is treated as
184
+ * right-justified text, meaning that the right margin of the text field remains fixed and any resizing
185
+ * of a single line of the text field is on the left margin. If the text includes a line break
186
+ * (for example, "\n" or "\r"), the bottom is also resized to fit the next
187
+ * line of text. If wordWrap is also set to true, only the bottom
188
+ * of the text field is resized and the left side remains fixed.
189
+ * If autoSize is set to TextFieldAutoSize.CENTER, the text is treated as
190
+ * center-justified text, meaning that any resizing of a single line of the text field is equally distributed
191
+ * to both the right and left margins. If the text includes a line break (for example, "\n" or
192
+ * "\r"), the bottom is also resized to fit the next line of text. If wordWrap is also
193
+ * set to true, only the bottom of the text field is resized and the left and
194
+ * right sides remain fixed.
195
+ * @throws ArgumentError The autoSize specified is not a member of flash.text.TextFieldAutoSize.
196
+ */
197
+ get: function () {
198
+ return this._adaptee.autoSize;
199
+ },
200
+ set: function (value) {
201
+ this._adaptee.autoSize = value;
202
+ },
203
+ enumerable: false,
204
+ configurable: true
205
+ });
206
+ Object.defineProperty(TextField.prototype, "background", {
207
+ /**
208
+ * Specifies whether the text field has a background fill. If true, the text field has a
209
+ * background fill. If false, the text field has no background fill.
210
+ * Use the backgroundColor property to set the background color of a text field.
211
+ */
212
+ get: function () {
213
+ return this._adaptee.background;
214
+ },
215
+ set: function (value) {
216
+ this._adaptee.background = value;
217
+ },
218
+ enumerable: false,
219
+ configurable: true
220
+ });
221
+ Object.defineProperty(TextField.prototype, "backgroundColor", {
222
+ /**
223
+ * The color of the text field background. The default value is 0xFFFFFF (white).
224
+ * This property can be retrieved or set, even if there currently is no background, but the
225
+ * color is visible only if the text field has the background property set to
226
+ * true.
227
+ */
228
+ get: function () {
229
+ return this._adaptee.backgroundColor;
230
+ },
231
+ set: function (value) {
232
+ this._adaptee.backgroundColor = value;
233
+ },
234
+ enumerable: false,
235
+ configurable: true
236
+ });
237
+ Object.defineProperty(TextField.prototype, "border", {
238
+ /**
239
+ * Specifies whether the text field has a border. If true, the text field has a border.
240
+ * If false, the text field has no border. Use the borderColor property
241
+ * to set the border color.
242
+ */
243
+ get: function () {
244
+ return this._adaptee.border;
245
+ },
246
+ set: function (value) {
247
+ this._adaptee.border = value;
248
+ },
249
+ enumerable: false,
250
+ configurable: true
251
+ });
252
+ Object.defineProperty(TextField.prototype, "borderColor", {
253
+ /**
254
+ * The color of the text field border. The default value is 0x000000 (black).
255
+ * This property can be retrieved or set, even if there currently is no border, but the
256
+ * color is visible only if the text field has the border property set to
257
+ * true.
258
+ */
259
+ get: function () {
260
+ return this._adaptee.borderColor;
261
+ },
262
+ set: function (value) {
263
+ this._adaptee.borderColor = value;
264
+ },
265
+ enumerable: false,
266
+ configurable: true
267
+ });
268
+ Object.defineProperty(TextField.prototype, "bottomScrollV", {
269
+ /**
270
+ * An integer (1-based index) that indicates the bottommost line that is currently visible in
271
+ * the specified text field. Think of the text field as a window onto a block of text.
272
+ * The scrollV property is the 1-based index of the topmost visible line
273
+ * in the window.
274
+ *
275
+ * All the text between the lines indicated by scrollV and bottomScrollV
276
+ * is currently visible in the text field.
277
+ */
278
+ get: function () {
279
+ // @todo
280
+ Debug.throwPIR('playerglobals/text/Textfield', 'set bottomScrollV', '');
281
+ return 0;
282
+ },
283
+ enumerable: false,
284
+ configurable: true
285
+ });
286
+ Object.defineProperty(TextField.prototype, "caretIndex", {
287
+ /**
288
+ * The index of the insertion point (caret) position. If no insertion point is displayed,
289
+ * the value is the position the insertion point would be if you restored focus to the field (typically where the
290
+ * insertion point last was, or 0 if the field has not had focus).
291
+ *
292
+ * Selection span indexes are zero-based (for example, the first position is 0,
293
+ * the second position is 1, and so on).
294
+ */
295
+ get: function () {
296
+ // @todo
297
+ Debug.throwPIR('playerglobals/text/Textfield', 'get caretIndex', '');
298
+ return 0;
299
+ },
300
+ enumerable: false,
301
+ configurable: true
302
+ });
303
+ Object.defineProperty(TextField.prototype, "condenseWhite", {
304
+ /**
305
+ * A Boolean value that specifies whether extra white space (spaces, line breaks, and so on)
306
+ * in a text field with HTML text is removed. The default value is false.
307
+ * The condenseWhite property only affects text set with
308
+ * the htmlText property, not the text property. If you set
309
+ * text with the text property, condenseWhite is ignored.
310
+ *
311
+ * If condenseWhite is set to true, use standard HTML commands such as
312
+ * <BR> and <P> to place line breaks in the text field.
313
+ * Set the condenseWhite property before setting the htmlText property.
314
+ */
315
+ get: function () {
316
+ // @todo
317
+ Debug.throwPIR('playerglobals/text/Textfield', 'get condenseWhite', '');
318
+ return false;
319
+ },
320
+ set: function (value) {
321
+ // @todo
322
+ Debug.throwPIR('playerglobals/text/Textfield', 'set condenseWhite', '');
323
+ },
324
+ enumerable: false,
325
+ configurable: true
326
+ });
327
+ Object.defineProperty(TextField.prototype, "defaultTextFormat", {
328
+ /**
329
+ * Specifies the format applied to newly inserted text, such as text entered by a user or text inserted with the
330
+ * replaceSelectedText() method.
331
+ *
332
+ * Note: When selecting characters to be replaced with setSelection() and
333
+ * replaceSelectedText(), the defaultTextFormat will be applied only if the
334
+ * text has been selected up to and including the last character. Here is an example:
335
+ * var my_txt:TextField new TextField();
336
+ * my_txt.text = "Flash Macintosh version";
337
+ * var my_fmt:TextFormat = new TextFormat();
338
+ * my_fmt.color = 0xFF0000;
339
+ * my_txt.defaultTextFormat = my_fmt;
340
+ * my_txt.setSelection(6,15); // partial text selected - defaultTextFormat not applied
341
+ * my_txt.setSelection(6,23); // text selected to end - defaultTextFormat applied
342
+ * my_txt.replaceSelectedText("Windows version");
343
+ * When you access the defaultTextFormat property, the returned TextFormat object has all
344
+ * of its properties defined. No property is null.
345
+ * Note: You can't set this property if a style sheet is applied to the text field.
346
+ * @throws Error This method cannot be used on a text field with a style sheet.
347
+ */
348
+ get: function () {
349
+ var tf = this._adaptee.newTextFormat;
350
+ if (tf.adapter || tf.adapter === tf.adaptee) {
351
+ tf.adapter = new this.sec.flash.text.TextFormat();
352
+ tf.adapter.adaptee = tf;
353
+ }
354
+ return tf.adapter;
355
+ },
356
+ set: function (format) {
357
+ //console.log("todo TextFormat");
358
+ var textField = this._adaptee;
359
+ var mergedFormat = textField.newTextFormat;
360
+ format.adaptee.applyToFormat(mergedFormat);
361
+ textField.newTextFormat = mergedFormat;
362
+ },
363
+ enumerable: false,
364
+ configurable: true
365
+ });
366
+ Object.defineProperty(TextField.prototype, "displayAsPassword", {
367
+ /**
368
+ * Specifies whether the text field is a password text field. If the value of this property is true,
369
+ * the text field is treated as a password text field and hides the input characters using asterisks instead of the
370
+ * actual characters. If false, the text field is not treated as a password text field. When password mode
371
+ * is enabled, the Cut and Copy commands and their corresponding keyboard shortcuts will
372
+ * not function. This security mechanism prevents an unscrupulous user from using the shortcuts to discover
373
+ * a password on an unattended computer.
374
+ */
375
+ get: function () {
376
+ return this._adaptee.displayAsPassword;
377
+ },
378
+ set: function (value) {
379
+ this._adaptee.displayAsPassword = value;
380
+ },
381
+ enumerable: false,
382
+ configurable: true
383
+ });
384
+ Object.defineProperty(TextField.prototype, "embedFonts", {
385
+ /**
386
+ * Specifies whether to render by using embedded font outlines.
387
+ * If false, Flash Player renders the text field by using
388
+ * device fonts.
389
+ *
390
+ * If you set the embedFonts property to true for a text field,
391
+ * you must specify a font for that text by using the font property of
392
+ * a TextFormat object applied to the text field.
393
+ * If the specified font is not embedded in the SWF file, the text is not displayed.
394
+ */
395
+ get: function () {
396
+ return !!this._adaptee.embedFonts;
397
+ },
398
+ set: function (value) {
399
+ var field = this._adaptee;
400
+ var embed = !!value;
401
+ if (field.embedFonts === embed)
402
+ return;
403
+ field.embedFonts = embed;
404
+ // LanguageClass (and similar) applies defaultTextFormat before embedFonts.
405
+ // Re-apply the current format font name so lookup runs again after any
406
+ // embedded Font subclass has registered under its family name.
407
+ var format = field.newTextFormat;
408
+ if (format && format.font_name) {
409
+ var fontName = format.font_name;
410
+ format.font = null;
411
+ format.font_name = fontName;
412
+ field.newTextFormat = format;
413
+ }
414
+ },
415
+ enumerable: false,
416
+ configurable: true
417
+ });
418
+ Object.defineProperty(TextField.prototype, "gridFitType", {
419
+ /**
420
+ * The type of grid fitting used for this text field. This property applies only if the
421
+ * flash.text.AntiAliasType property of the text field is set to flash.text.AntiAliasType.ADVANCED.
422
+ *
423
+ * The type of grid fitting used determines whether Flash Player forces strong horizontal and
424
+ * vertical lines to fit to a pixel or subpixel grid, or not at all.
425
+ * For the flash.text.GridFitType property, you can use the following string values:String value
426
+ * Descriptionflash.text.GridFitType.NONE
427
+ * Specifies no grid fitting. Horizontal and vertical lines in the glyphs are not
428
+ * forced to the pixel grid. This setting is recommended for animation or
429
+ * for large font sizes.flash.text.GridFitType.PIXEL
430
+ * Specifies that strong horizontal and vertical lines are fit to the
431
+ * pixel grid. This setting works only for left-aligned text fields.
432
+ * To use this setting, the flash.dispaly.AntiAliasType property of the text field
433
+ * must be set to flash.text.AntiAliasType.ADVANCED.
434
+ * This setting generally provides the best legibility for
435
+ * left-aligned text.flash.text.GridFitType.SUBPIXEL
436
+ * Specifies that strong horizontal and vertical lines are fit to the subpixel grid on
437
+ * an LCD monitor. To use this setting, the
438
+ * flash.text.AntiAliasType property of the text field must be set to
439
+ * flash.text.AntiAliasType.ADVANCED. The flash.text.GridFitType.SUBPIXEL setting is often good
440
+ * for right-aligned or centered
441
+ * dynamic text, and it is sometimes a useful trade-off for animation versus text quality.
442
+ */
443
+ get: function () {
444
+ // @todo
445
+ Debug.throwPIR('playerglobals/text/Textfield', 'get gridFitType', '');
446
+ return '';
447
+ },
448
+ set: function (gridFitType) {
449
+ // @todo
450
+ Debug.throwPIR('playerglobals/text/Textfield', 'set gridFitType', '');
451
+ },
452
+ enumerable: false,
453
+ configurable: true
454
+ });
455
+ Object.defineProperty(TextField.prototype, "htmlText", {
456
+ /**
457
+ * Contains the HTML representation of the text field contents.
458
+ *
459
+ * Flash Player supports the following HTML tags:
460
+ * Tag
461
+ *
462
+ * Description
463
+ *
464
+ * Anchor tag
465
+ *
466
+ * The <a> tag creates a hypertext link and supports the following attributes:
467
+ * target: Specifies the name of the target window where you load the page.
468
+ * Options include _self, _blank, _parent, and
469
+ * _top. The _self option specifies the current frame in the current window,
470
+ * _blank specifies a new window, _parent specifies the parent of the
471
+ * current frame, and _top specifies the top-level frame in the current window.
472
+ * href: Specifies a URL or an ActionScript link event.The URL can
473
+ * be either absolute or relative to the location of the SWF file that
474
+ * is loading the page. An example of an absolute reference to a URL is
475
+ * http://www.adobe.com; an example of a relative reference is
476
+ * /index.html. Absolute URLs must be prefixed with
477
+ * http://; otherwise, Flash Player or AIR treats them as relative URLs.
478
+ *
479
+ * You can use the link event to cause the link to execute an ActionScript
480
+ * function in a SWF file instead of opening a URL. To specify a link event, use
481
+ * the event scheme instead of the http scheme in your href attribute. An example
482
+ * is href="event:myText" instead of href="http://myURL"; when the
483
+ * user clicks a hypertext link that contains the event scheme, the text field dispatches a
484
+ * link TextEvent with its text property set to "myText". You can then create an ActionScript
485
+ * function that executes whenever the link TextEvent is dispatched.
486
+ *
487
+ * You can also define a:link, a:hover, and a:active
488
+ * styles for anchor tags by using style sheets.
489
+ *
490
+ * Bold tag
491
+ *
492
+ * The <b> tag renders text as bold. A bold typeface must be available for the font used.
493
+ *
494
+ * Break tag
495
+ *
496
+ * The <br> tag creates a line break in the text field. Set the text field to
497
+ * be a multiline text field to use this tag.
498
+ *
499
+ * Font tag
500
+ *
501
+ * The <font> tag specifies a font or list of fonts to display the text.The font tag
502
+ * supports the following attributes:
503
+ * color: Only hexadecimal color (#FFFFFF) values are supported.
504
+ * face: Specifies the name of the font to use. As shown in the following example,
505
+ * you can specify a list of comma-delimited font names, in which case Flash Player selects the first available
506
+ * font. If the specified font is not installed on the local computer system or isn't embedded in the SWF file,
507
+ * Flash Player selects a substitute font.
508
+ * size: Specifies the size of the font. You can use absolute pixel sizes, such as 16 or 18,
509
+ * or relative point sizes, such as +2 or -4.
510
+ *
511
+ * Image tag
512
+ *
513
+ * The <img> tag lets you embed external image files (JPEG, GIF, PNG), SWF files, and
514
+ * movie clips inside text fields. Text automatically flows around images you embed in text fields. You
515
+ * must set the text field to be multiline to wrap text around an image.
516
+ *
517
+ * The <img> tag supports the following attributes: src:
518
+ * Specifies the URL to an image or SWF file, or the linkage identifier for a movie clip
519
+ * symbol in the library.
520
+ * This attribute is required; all other attributes are optional. External files (JPEG, GIF, PNG,
521
+ * and SWF files) do not show until they are downloaded completely.
522
+ * width: The width of the image, SWF file, or movie clip being inserted, in pixels.
523
+ * height: The height of the image, SWF file, or movie clip being inserted, in pixels.
524
+ * align: Specifies the horizontal alignment of the embedded image within the text field.
525
+ * Valid values are left and right. The default value is left.
526
+ * hspace: Specifies the amount of horizontal space that surrounds the image where
527
+ * no text appears. The default value is 8.
528
+ * vspace: Specifies the amount of vertical space that surrounds the image where no
529
+ * text appears. The default value is 8.
530
+ * id: Specifies the name for the movie clip instance (created by Flash Player) that contains
531
+ * the embedded image file, SWF file, or movie clip. This approach is used to control the embedded content with
532
+ * ActionScript.
533
+ * checkPolicyFile: Specifies that Flash Player checks for a URL policy file
534
+ * on the server associated with the image domain. If a policy file exists, SWF files in the domains
535
+ * listed in the file can access the data of the loaded image, for example, by calling the
536
+ * BitmapData.draw() method with this image as the source parameter.
537
+ * For more information related to security, see the Flash Player Developer Center Topic:
538
+ * Security.
539
+ *
540
+ * Flash displays media embedded in a text field at full size. To specify the dimensions of the media
541
+ * you are embedding, use the <img> tag height and width
542
+ * attributes. In general, an image embedded in a text field appears on the line following the
543
+ * <img> tag. However, when the <img> tag
544
+ * is the first character in the text field, the image appears on the first line of the text field.
545
+ * For AIR content in the application security sandbox, AIR ignores img tags in
546
+ * HTML content in ActionScript TextField objects. This is to prevent possible phishing attacks,
547
+ * Italic tag
548
+ *
549
+ * The <i> tag displays the tagged text in italics. An italic typeface must be available
550
+ * for the font used.
551
+ *
552
+ * List item tag
553
+ *
554
+ * The <li> tag places a bullet in front of the text that it encloses.
555
+ * Note: Because Flash Player and AIR do not recognize ordered and unordered list tags (<ol>
556
+ * and <ul>, they do not modify how your list is rendered. All lists are unordered and all
557
+ * list items use bullets.
558
+ *
559
+ * Paragraph tag
560
+ *
561
+ * The <p> tag creates a new paragraph. The text field must be set to be a multiline
562
+ * text field to use this tag.
563
+ *
564
+ * The <p> tag supports the following attributes:
565
+ *
566
+ * align: Specifies alignment of text within the paragraph; valid values are left, right, justify, and center.
567
+ *
568
+ * class: Specifies a CSS style class defined by a flash.text.StyleSheet object.
569
+ *
570
+ * Span tag
571
+ *
572
+ * The <span> tag is available only for use with CSS text styles. It supports the
573
+ * following attribute:
574
+ *
575
+ * class: Specifies a CSS style class defined by a flash.text.StyleSheet object.
576
+ *
577
+ * Text format tag
578
+ * The <textformat> tag lets you use a subset of paragraph formatting
579
+ * properties of the TextFormat class within text fields, including line leading, indentation,
580
+ * margins, and tab stops. You can combine <textformat> tags with the
581
+ * built-in HTML tags. The <textformat> tag has the following attributes: blockindent:
582
+ * Specifies the block indentation in points; corresponds to
583
+ * TextFormat.blockIndent.
584
+ * indent: Specifies the indentation from the left margin to the first character
585
+ * in the paragraph; corresponds to TextFormat.indent. Both positive and negative
586
+ * numbers are acceptable.
587
+ * leading: Specifies the amount of leading (vertical space) between lines;
588
+ * corresponds to TextFormat.leading. Both positive and negative numbers are acceptable.
589
+ * leftmargin: Specifies the left margin of the paragraph, in points; corresponds
590
+ * to TextFormat.leftMargin.
591
+ * rightmargin: Specifies the right margin of the paragraph, in points; corresponds
592
+ * to TextFormat.rightMargin.
593
+ * tabstops: Specifies custom tab stops as an array of non-negative integers;
594
+ * corresponds to TextFormat.tabStops.
595
+ *
596
+ * Underline tag
597
+ *
598
+ * The <u> tag underlines the tagged text.
599
+ * Flash Player and AIR support the following HTML entities:
600
+ * Entity
601
+ *
602
+ * Description
603
+ *
604
+ * &amp;lt;
605
+ *
606
+ * < (less than)
607
+ *
608
+ * &amp;gt;
609
+ *
610
+ * > (greater than)
611
+ *
612
+ * &amp;amp;
613
+ *
614
+ * & (ampersand)
615
+ *
616
+ * &amp;quot;
617
+ *
618
+ * " (double quotes)
619
+ *
620
+ * &amp;apos;
621
+ *
622
+ * ' (apostrophe, single quote)
623
+ *
624
+ * Flash Player and AIR also support explicit character codes, such as
625
+ * &#38; (ASCII ampersand) and &#x20AC; (Unicode € symbol).
626
+ */
627
+ get: function () {
628
+ return this.adaptee.htmlText;
629
+ },
630
+ set: function (value) {
631
+ this.adaptee.htmlText = value;
632
+ },
633
+ enumerable: false,
634
+ configurable: true
635
+ });
636
+ Object.defineProperty(TextField.prototype, "length", {
637
+ /**
638
+ * The number of characters in a text field. A character such as tab (\t) counts as one
639
+ * character.
640
+ */
641
+ get: function () {
642
+ //todo
643
+ return this._adaptee.length;
644
+ },
645
+ enumerable: false,
646
+ configurable: true
647
+ });
648
+ Object.defineProperty(TextField.prototype, "maxChars", {
649
+ /**
650
+ * The maximum number of characters that the text field can contain, as entered by a user.
651
+ * A script can insert more text than maxChars allows; the maxChars property
652
+ * indicates only how much text a user can enter. If the value of this property is 0,
653
+ * a user can enter an unlimited amount of text.
654
+ */
655
+ get: function () {
656
+ return this.adaptee.maxChars;
657
+ },
658
+ set: function (value) {
659
+ this.adaptee.maxChars = value;
660
+ },
661
+ enumerable: false,
662
+ configurable: true
663
+ });
664
+ Object.defineProperty(TextField.prototype, "maxScrollH", {
665
+ /**
666
+ * The maximum value of scrollH.
667
+ */
668
+ get: function () {
669
+ return this.adaptee.maxScrollH;
670
+ },
671
+ enumerable: false,
672
+ configurable: true
673
+ });
674
+ Object.defineProperty(TextField.prototype, "maxScrollV", {
675
+ /**
676
+ * The maximum value of scrollV.
677
+ */
678
+ get: function () {
679
+ return this.adaptee.maxScrollV + 1;
680
+ },
681
+ enumerable: false,
682
+ configurable: true
683
+ });
684
+ Object.defineProperty(TextField.prototype, "mouseWheelEnabled", {
685
+ /**
686
+ * A Boolean value that indicates whether Flash Player automatically scrolls multiline
687
+ * text fields when the user clicks a text field and rolls the mouse wheel.
688
+ * By default, this value is true. This property is useful if you want to prevent
689
+ * mouse wheel scrolling of text fields, or implement your own text field scrolling.
690
+ */
691
+ get: function () {
692
+ return this.adaptee.mouseWheelEnabled;
693
+ },
694
+ set: function (value) {
695
+ this.adaptee.mouseWheelEnabled = value;
696
+ },
697
+ enumerable: false,
698
+ configurable: true
699
+ });
700
+ Object.defineProperty(TextField.prototype, "multiline", {
701
+ /**
702
+ * Indicates whether field is a multiline text field. If the value is true,
703
+ * the text field is multiline; if the value is false, the text field is a single-line
704
+ * text field. In a field of type TextFieldType.INPUT, the multiline value
705
+ * determines whether the Enter key creates a new line (a value of false,
706
+ * and the Enter key is ignored).
707
+ * If you paste text into a TextField with a multiline value of false,
708
+ * newlines are stripped out of the text.
709
+ */
710
+ get: function () {
711
+ return this._adaptee.multiline;
712
+ },
713
+ set: function (value) {
714
+ this._adaptee.multiline = value;
715
+ },
716
+ enumerable: false,
717
+ configurable: true
718
+ });
719
+ Object.defineProperty(TextField.prototype, "numLines", {
720
+ /**
721
+ * Defines the number of text lines in a multiline text field.
722
+ * If wordWrap property is set to true,
723
+ * the number of lines increases when text wraps.
724
+ */
725
+ get: function () {
726
+ return this._adaptee.numLines;
727
+ },
728
+ enumerable: false,
729
+ configurable: true
730
+ });
731
+ Object.defineProperty(TextField.prototype, "restrict", {
732
+ /**
733
+ * Indicates the set of characters that a user can enter into the text field. If the value of the
734
+ * restrict property is null, you can enter any character. If the value of
735
+ * the restrict property is an empty string, you cannot enter any character. If the value
736
+ * of the restrict property is a string of characters, you can enter only characters in
737
+ * the string into the text field. The string is scanned from left to right. You can specify a range by
738
+ * using the hyphen (-) character. Only user interaction is restricted; a script can put any text into the
739
+ * text field. This property does not synchronize with the Embed font options
740
+ * in the Property inspector.If the string begins with a caret (^) character,
741
+ * all characters are initially accepted and
742
+ * succeeding characters in the string are excluded from the set of accepted characters. If the string does
743
+ * not begin with a caret (^) character, no characters are initially accepted and succeeding characters in the
744
+ * string are included in the set of accepted characters.
745
+ * The following example allows only uppercase characters, spaces, and numbers to be entered into
746
+ * a text field:
747
+ * my_txt.restrict = "A-Z 0-9";
748
+ * The following example includes all characters, but excludes lowercase letters:
749
+ * my_txt.restrict = "^a-z";
750
+ * You can use a backslash to enter a ^ or - verbatim. The accepted backslash sequences are \-, \^ or \\.
751
+ * The backslash must be an actual character in the string, so when specified in ActionScript, a double backslash
752
+ * must be used. For example, the following code includes only the dash (-) and caret (^):
753
+ * my_txt.restrict = "\\-\\^";
754
+ * The ^ can be used anywhere in the string to toggle between including characters and excluding characters.
755
+ * The following code includes only uppercase letters, but excludes the uppercase letter Q:
756
+ * my_txt.restrict = "A-Z^Q";
757
+ * You can use the \u escape sequence to construct restrict strings.
758
+ * The following code includes only the characters from ASCII 32 (space) to ASCII 126 (tilde).
759
+ * my_txt.restrict = "\u0020-\u007E";
760
+ */
761
+ get: function () {
762
+ return this.adaptee.restrict;
763
+ },
764
+ set: function (value) {
765
+ this.adaptee.restrict = value;
766
+ },
767
+ enumerable: false,
768
+ configurable: true
769
+ });
770
+ Object.defineProperty(TextField.prototype, "scrollH", {
771
+ /**
772
+ * The current horizontal scrolling position. If the scrollH property is 0, the text
773
+ * is not horizontally scrolled. This property value is an integer that represents the horizontal
774
+ * position in pixels.
775
+ *
776
+ * The units of horizontal scrolling are pixels, whereas the units of vertical scrolling are lines.
777
+ * Horizontal scrolling is measured in pixels because most fonts you typically use are proportionally
778
+ * spaced; that is, the characters can have different widths. Flash Player performs vertical scrolling by
779
+ * line because users usually want to see a complete line of text rather than a
780
+ * partial line. Even if a line uses multiple fonts, the height of the line adjusts to fit
781
+ * the largest font in use.Note: The scrollH property is zero-based, not 1-based like
782
+ * the scrollV vertical scrolling property.
783
+ */
784
+ get: function () {
785
+ return this.adaptee.scrollH;
786
+ },
787
+ set: function (value) {
788
+ this.adaptee.scrollH = value;
789
+ },
790
+ enumerable: false,
791
+ configurable: true
792
+ });
793
+ Object.defineProperty(TextField.prototype, "scrollV", {
794
+ /**
795
+ * The vertical position of text in a text field. The scrollV property is useful for
796
+ * directing users to a specific paragraph in a long passage, or creating scrolling text fields.
797
+ *
798
+ * The units of vertical scrolling are lines, whereas the units of horizontal scrolling are pixels.
799
+ * If the first line displayed is the first line in the text field, scrollV is set to 1 (not 0).
800
+ * Horizontal scrolling is measured in pixels because most fonts are proportionally
801
+ * spaced; that is, the characters can have different widths. Flash performs vertical scrolling by line
802
+ * because users usually want to see a complete line of text rather than a partial line.
803
+ * Even if there are multiple fonts on a line, the height of the line adjusts to fit the largest font in
804
+ * use.
805
+ */
806
+ get: function () {
807
+ return this.adaptee.scrollV + 1;
808
+ },
809
+ set: function (value) {
810
+ this.adaptee.scrollV = value - 1;
811
+ },
812
+ enumerable: false,
813
+ configurable: true
814
+ });
815
+ Object.defineProperty(TextField.prototype, "selectable", {
816
+ /**
817
+ * A Boolean value that indicates whether the text field is selectable. The value true
818
+ * indicates that the text is selectable. The selectable property controls whether
819
+ * a text field is selectable, not whether a text field is editable. A dynamic text field can
820
+ * be selectable even if it is not editable. If a dynamic text field is not selectable, the user
821
+ * cannot select its text.
822
+ *
823
+ * If selectable is set to false, the text in the text field does not
824
+ * respond to selection commands from the mouse or keyboard, and the text cannot be copied with the
825
+ * Copy command. If selectable is set to true, the text in the text field
826
+ * can be selected with the mouse or keyboard, and the text can be copied with the Copy command.
827
+ * You can select text this way even if the text field is a dynamic text field instead of an input text field.
828
+ */
829
+ get: function () {
830
+ return this.adaptee.selectable;
831
+ },
832
+ set: function (value) {
833
+ this._adaptee.selectable = value;
834
+ },
835
+ enumerable: false,
836
+ configurable: true
837
+ });
838
+ Object.defineProperty(TextField.prototype, "selectedText", {
839
+ get: function () {
840
+ // @todo
841
+ Debug.throwPIR('playerglobals/text/Textfield', 'get selectedText', '');
842
+ return '';
843
+ },
844
+ enumerable: false,
845
+ configurable: true
846
+ });
847
+ Object.defineProperty(TextField.prototype, "selectionBeginIndex", {
848
+ /**
849
+ * The zero-based character index value of the first character in the current selection.
850
+ * For example, the first character is 0, the second character is 1, and so on. If no
851
+ * text is selected, this property is the value of caretIndex.
852
+ */
853
+ get: function () {
854
+ return this.adaptee.selectionBeginIndex;
855
+ },
856
+ enumerable: false,
857
+ configurable: true
858
+ });
859
+ Object.defineProperty(TextField.prototype, "selectionEndIndex", {
860
+ /**
861
+ * The zero-based character index value of the last character in the current selection.
862
+ * For example, the first character is 0, the second character is 1, and so on. If no
863
+ * text is selected, this property is the value of caretIndex.
864
+ */
865
+ get: function () {
866
+ return this.adaptee.selectionEndIndex;
867
+ },
868
+ enumerable: false,
869
+ configurable: true
870
+ });
871
+ Object.defineProperty(TextField.prototype, "sharpness", {
872
+ /**
873
+ * The sharpness of the glyph edges in this text field. This property applies
874
+ * only if the flash.text.AntiAliasType property of the text field is set to
875
+ * flash.text.AntiAliasType.ADVANCED. The range for
876
+ * sharpness is a number from -400 to 400. If you attempt to set
877
+ * sharpness to a value outside that range, Flash sets the property to
878
+ * the nearest value in the range (either -400 or 400).
879
+ */
880
+ get: function () {
881
+ // @todo
882
+ Debug.throwPIR('playerglobals/text/Textfield', 'get sharpness', '');
883
+ return 0;
884
+ },
885
+ set: function (value) {
886
+ // @todo
887
+ Debug.throwPIR('playerglobals/text/Textfield', 'set sharpness', '');
888
+ },
889
+ enumerable: false,
890
+ configurable: true
891
+ });
892
+ Object.defineProperty(TextField.prototype, "styleSheet", {
893
+ /**
894
+ * Attaches a style sheet to the text field. For information on creating style sheets, see the StyleSheet class
895
+ * and the ActionScript 3.0 Developer's Guide.
896
+ *
897
+ * You can change the style sheet associated with a text field at any time. If you change
898
+ * the style sheet in use, the text field is redrawn with the new style sheet.
899
+ * You can set the style sheet to null or undefined
900
+ * to remove the style sheet. If the style sheet in use is removed, the text field is redrawn without a style sheet.
901
+ * Note: If the style sheet is removed, the contents of both TextField.text and
902
+ * TextField.htmlText change to incorporate the formatting previously applied by the style sheet. To preserve
903
+ * the original TextField.htmlText contents without the formatting, save the value in a variable before
904
+ * removing the style sheet.
905
+ */
906
+ get: function () {
907
+ // @todo
908
+ Debug.throwPIR('playerglobals/text/Textfield', 'get styleSheet', '');
909
+ return null;
910
+ },
911
+ set: function (value) {
912
+ // @todo
913
+ Debug.throwPIR('playerglobals/text/Textfield', 'set styleSheet', '');
914
+ },
915
+ enumerable: false,
916
+ configurable: true
917
+ });
918
+ Object.defineProperty(TextField.prototype, "text", {
919
+ /**
920
+ * A string that is the current text in the text field. Lines are separated by the carriage
921
+ * return character ('\r', ASCII 13). This property contains unformatted text in the text
922
+ * field, without HTML tags.
923
+ *
924
+ * To get the text in HTML form, use the htmlText property.
925
+ */
926
+ get: function () {
927
+ return this._adaptee.text;
928
+ },
929
+ set: function (value) {
930
+ this._adaptee.text = value;
931
+ },
932
+ enumerable: false,
933
+ configurable: true
934
+ });
935
+ Object.defineProperty(TextField.prototype, "textColor", {
936
+ /**
937
+ * The color of the text in a text field, in hexadecimal format.
938
+ * The hexadecimal color system uses six digits to represent
939
+ * color values. Each digit has 16 possible values or characters. The characters range from
940
+ * 0-9 and then A-F. For example, black is 0x000000; white is
941
+ * 0xFFFFFF.
942
+ */
943
+ get: function () {
944
+ return this._adaptee.textColor;
945
+ },
946
+ set: function (value) {
947
+ this._adaptee.textColor = value;
948
+ },
949
+ enumerable: false,
950
+ configurable: true
951
+ });
952
+ Object.defineProperty(TextField.prototype, "textHeight", {
953
+ /**
954
+ * The height of the text in pixels.
955
+ */
956
+ get: function () {
957
+ return this._adaptee.textHeight;
958
+ },
959
+ enumerable: false,
960
+ configurable: true
961
+ });
962
+ Object.defineProperty(TextField.prototype, "textInteractionMode", {
963
+ /**
964
+ * The interaction mode property, Default value is TextInteractionMode.NORMAL.
965
+ * On mobile platforms, the normal mode implies that the text can be scrolled but not selected.
966
+ * One can switch to the selectable mode through the in-built context menu on the text field.
967
+ * On Desktop, the normal mode implies that the text is in scrollable as well as selection mode.
968
+ */
969
+ get: function () {
970
+ // @todo
971
+ Debug.throwPIR('playerglobals/text/Textfield', 'get textInteractionMode', '');
972
+ return '';
973
+ },
974
+ enumerable: false,
975
+ configurable: true
976
+ });
977
+ Object.defineProperty(TextField.prototype, "textWidth", {
978
+ /**
979
+ * The width of the text in pixels.
980
+ */
981
+ get: function () {
982
+ return this._adaptee.textWidth;
983
+ },
984
+ enumerable: false,
985
+ configurable: true
986
+ });
987
+ Object.defineProperty(TextField.prototype, "thickness", {
988
+ /**
989
+ * The thickness of the glyph edges in this text field. This property applies only
990
+ * when flash.text.AntiAliasType is set to flash.text.AntiAliasType.ADVANCED.
991
+ *
992
+ * The range for thickness is a number from -200 to 200. If you attempt to
993
+ * set thickness to a value outside that range, the property is set to the
994
+ * nearest value in the range (either -200 or 200).
995
+ */
996
+ get: function () {
997
+ // @todo
998
+ Debug.throwPIR('playerglobals/text/Textfield', 'get thickness', '');
999
+ return 0;
1000
+ },
1001
+ set: function (value) {
1002
+ // @todo
1003
+ Debug.throwPIR('playerglobals/text/Textfield', 'set thickness', '');
1004
+ },
1005
+ enumerable: false,
1006
+ configurable: true
1007
+ });
1008
+ Object.defineProperty(TextField.prototype, "type", {
1009
+ /**
1010
+ * The type of the text field.
1011
+ * Either one of the following TextFieldType constants: TextFieldType.DYNAMIC,
1012
+ * which specifies a dynamic text field, which a user cannot edit, or TextFieldType.INPUT,
1013
+ * which specifies an input text field, which a user can edit.
1014
+ * @throws ArgumentError The type specified is not a member of flash.text.TextFieldType.
1015
+ */
1016
+ get: function () {
1017
+ return this._adaptee.type;
1018
+ },
1019
+ set: function (value) {
1020
+ if (value == TextFieldType.INPUT && this._adaptee.type != TextFieldType.INPUT)
1021
+ this.adaptee.addEventListener(TextfieldEvent.CHANGED, this._textChangeCallbackDelegate);
1022
+ else if (value != TextFieldType.INPUT && this._adaptee.type == TextFieldType.INPUT)
1023
+ this.adaptee.addEventListener(TextfieldEvent.CHANGED, this._textChangeCallbackDelegate);
1024
+ this._adaptee.type = value;
1025
+ },
1026
+ enumerable: false,
1027
+ configurable: true
1028
+ });
1029
+ Object.defineProperty(TextField.prototype, "useRichTextClipboard", {
1030
+ /**
1031
+ * Specifies whether to copy and paste the text formatting along with the text. When set to true,
1032
+ * Flash Player copies and pastes formatting (such as alignment, bold, and italics)
1033
+ * when you copy and paste between text fields.
1034
+ * Both the origin and destination text fields for the copy and paste procedure must have
1035
+ * useRichTextClipboard set to true. The default value
1036
+ * is false.
1037
+ */
1038
+ get: function () {
1039
+ // @todo
1040
+ Debug.throwPIR('playerglobals/text/Textfield', 'get useRichTextClipboard', '');
1041
+ return false;
1042
+ },
1043
+ set: function (value) {
1044
+ // @todo
1045
+ Debug.throwPIR('playerglobals/text/Textfield', 'set useRichTextClipboard', '');
1046
+ },
1047
+ enumerable: false,
1048
+ configurable: true
1049
+ });
1050
+ Object.defineProperty(TextField.prototype, "wordWrap", {
1051
+ /**
1052
+ * A Boolean value that indicates whether the text field has word wrap. If the value of
1053
+ * wordWrap is true, the text field has word wrap;
1054
+ * if the value is false, the text field does not have word wrap. The default
1055
+ * value is false.
1056
+ */
1057
+ get: function () {
1058
+ return this._adaptee.wordWrap;
1059
+ },
1060
+ set: function (value) {
1061
+ this._adaptee.wordWrap = value;
1062
+ },
1063
+ enumerable: false,
1064
+ configurable: true
1065
+ });
1066
+ /**
1067
+ * Appends the string specified by the newText parameter to the end of the text
1068
+ * of the text field. This method is more efficient than an addition assignment (+=) on
1069
+ * a text property (such as someTextField.text += moreText),
1070
+ * particularly for a text field that contains a significant amount of content.
1071
+ * @param newText The string to append to the existing text.
1072
+ */
1073
+ TextField.prototype.appendText = function (newText) {
1074
+ this._adaptee.appendText(newText);
1075
+ };
1076
+ TextField.prototype.copyRichText = function () {
1077
+ // @todo
1078
+ Debug.throwPIR('playerglobals/text/Textfield', 'copyRichText', '');
1079
+ return '';
1080
+ };
1081
+ /**
1082
+ * Returns a rectangle that is the bounding box of the character.
1083
+ * @param charIndex The zero-based index value for the character (for example, the first
1084
+ * position is 0, the second position is 1, and so on).
1085
+ * @return A rectangle with x and y minimum and maximum values
1086
+ * defining the bounding box of the character.
1087
+ */
1088
+ TextField.prototype.getCharBoundaries = function (charIndex) {
1089
+ // @todo
1090
+ Debug.throwPIR('playerglobals/text/Textfield', 'getCharBoundaries', '');
1091
+ return null;
1092
+ };
1093
+ /**
1094
+ * Returns the zero-based index value of the character at the point specified by the x
1095
+ * and y parameters.
1096
+ * @param x The x coordinate of the character.
1097
+ * @param y The y coordinate of the character.
1098
+ * @return The zero-based index value of the character (for example, the first position is 0,
1099
+ * the second position is 1, and so on). Returns -1 if the point is not over any character.
1100
+ */
1101
+ TextField.prototype.getCharIndexAtPoint = function (x, y) {
1102
+ return this._adaptee.getCharIndexAtPoint(x, y);
1103
+ };
1104
+ /**
1105
+ * Given a character index, returns the index of the first character in the same paragraph.
1106
+ * @param charIndex The zero-based index value of the character (for example, the first character is 0,
1107
+ * the second character is 1, and so on).
1108
+ * @return The zero-based index value of the first character in the same paragraph.
1109
+ * @throws RangeError The character index specified is out of range.
1110
+ */
1111
+ TextField.prototype.getFirstCharInParagraph = function (charIndex) {
1112
+ return this._adaptee.getFirstCharInParagraph(charIndex);
1113
+ };
1114
+ /**
1115
+ * Returns a DisplayObject reference for the given id, for an image or SWF file
1116
+ * that has been added to an HTML-formatted text field by using an <img> tag.
1117
+ * The <img> tag is in the following format:
1118
+ *
1119
+ * <img src = 'filename.jpg' id = 'instanceName' >
1120
+ * @param id The id to match (in the id attribute of the
1121
+ * <img> tag).
1122
+ * @return The display object corresponding to the image or SWF file with the matching id
1123
+ * attribute in the <img> tag of the text field. For media loaded from an external source,
1124
+ * this object is a Loader object, and, once loaded, the media object is a child of that Loader object. For media
1125
+ * embedded in the SWF file, it is the loaded object. If no <img> tag with
1126
+ * the matching id exists, the method returns null.
1127
+ */
1128
+ TextField.prototype.getImageReference = function (id) {
1129
+ // @todo
1130
+ Debug.throwPIR('playerglobals/text/Textfield', 'getImageReference', '');
1131
+ return null;
1132
+ };
1133
+ /**
1134
+ * Returns the zero-based index value of the line at the point specified by the x
1135
+ * and y parameters.
1136
+ * @param x The x coordinate of the line.
1137
+ * @param y The y coordinate of the line.
1138
+ * @return The zero-based index value of the line (for example, the first line is 0, the
1139
+ * second line is 1, and so on). Returns -1 if the point is not over any line.
1140
+ */
1141
+ TextField.prototype.getLineIndexAtPoint = function (x, y) {
1142
+ return this._adaptee.getLineIndexAtPoint(x, y);
1143
+ };
1144
+ /**
1145
+ * Returns the zero-based index value of the line containing the character specified
1146
+ * by the charIndex parameter.
1147
+ * @param charIndex The zero-based index value of the character (for example, the first character is 0,
1148
+ * the second character is 1, and so on).
1149
+ * @return The zero-based index value of the line.
1150
+ */
1151
+ TextField.prototype.getLineIndexOfChar = function (charIndex) {
1152
+ return this._adaptee.getLineIndexOfChar(charIndex);
1153
+ };
1154
+ /**
1155
+ * Returns the number of characters in a specific text line.
1156
+ * @param lineIndex The line number for which you want the length.
1157
+ * @return The number of characters in the line.
1158
+ * @throws RangeError The line number specified is out of range.
1159
+ */
1160
+ TextField.prototype.getLineLength = function (lineIndex) {
1161
+ return this._adaptee.getLineLength(lineIndex);
1162
+ };
1163
+ /**
1164
+ * Returns metrics information about a given text line.
1165
+ * @param lineIndex The line number for which you want metrics information.
1166
+ * @return A TextLineMetrics object.
1167
+ * @throws RangeError The line number specified is out of range.
1168
+ */
1169
+ TextField.prototype.getLineMetrics = function (lineIndex) {
1170
+ var _a = this._adaptee.getLineMetrics(lineIndex), x = _a.x, width = _a.width, height = _a.height, ascent = _a.ascent, descent = _a.descent, leading = _a.leading;
1171
+ return new this.sec.flash.text.TextLineMetrics(x, width, height, ascent, descent, leading);
1172
+ };
1173
+ /**
1174
+ * Returns the character index of the first character in the line that
1175
+ * the lineIndex parameter specifies.
1176
+ * @param lineIndex The zero-based index value of the line (for example, the first line is 0,
1177
+ * the second line is 1, and so on).
1178
+ * @return The zero-based index value of the first character in the line.
1179
+ * @throws RangeError The line number specified is out of range.
1180
+ */
1181
+ TextField.prototype.getLineOffset = function (lineIndex) {
1182
+ return this._adaptee.getLineOffset(lineIndex);
1183
+ };
1184
+ /**
1185
+ * Returns the text of the line specified by the lineIndex parameter.
1186
+ * @param lineIndex The zero-based index value of the line (for example, the first line is 0,
1187
+ * the second line is 1, and so on).
1188
+ * @return The text string contained in the specified line.
1189
+ * @throws RangeError The line number specified is out of range.
1190
+ */
1191
+ TextField.prototype.getLineText = function (lineIndex) {
1192
+ return this._adaptee.getLineText(lineIndex);
1193
+ };
1194
+ /**
1195
+ * Given a character index, returns the length of the paragraph containing the given character.
1196
+ * The length is relative to the first character in the paragraph (as returned by
1197
+ * getFirstCharInParagraph()), not to the character index passed in.
1198
+ * @param charIndex The zero-based index value of the character (for example, the first character is 0,
1199
+ * the second character is 1, and so on).
1200
+ * @return Returns the number of characters in the paragraph.
1201
+ * @throws RangeError The character index specified is out of range.
1202
+ */
1203
+ TextField.prototype.getParagraphLength = function (charIndex) {
1204
+ return this._adaptee.getParagraphLength(charIndex);
1205
+ };
1206
+ TextField.prototype.getRawText = function () {
1207
+ // @todo
1208
+ Debug.throwPIR('playerglobals/text/Textfield', 'getRawText', '');
1209
+ return '';
1210
+ };
1211
+ /**
1212
+ * Returns a TextFormat object that contains formatting information for the range of text that the
1213
+ * beginIndex and endIndex parameters specify. Only properties
1214
+ * that are common to the entire text specified are set in the resulting TextFormat object.
1215
+ * Any property that is mixed, meaning that it has different values
1216
+ * at different points in the text, has a value of null.
1217
+ *
1218
+ * If you do not specify
1219
+ * values for these parameters, this method is applied to all the text in the text field.
1220
+ * The following table describes three possible usages:UsageDescriptionmy_textField.getTextFormat()
1221
+ * Returns a TextFormat object containing formatting information for all text in a text field.
1222
+ * Only properties that are common to all text in the text field are set in the resulting TextFormat
1223
+ * object. Any property that is mixed, meaning that it has different values at different
1224
+ * points in the text, has a value of null.my_textField.getTextFormat(beginIndex:Number)
1225
+ * Returns a TextFormat object containing a copy of the text format of the character at the
1226
+ * beginIndex position.my_textField.getTextFormat(beginIndex:Number,endIndex:Number)
1227
+ * Returns a TextFormat object containing formatting information for the span of
1228
+ * text from beginIndex to endIndex-1. Only properties that are common
1229
+ * to all of the text in the specified range are set in the resulting TextFormat object. Any property
1230
+ * that is mixed (that is, has different values at different points in the range) has its value set to null.
1231
+ * @param beginIndex Optional; an integer that specifies the starting location
1232
+ * of a range of text within the text field.
1233
+ * @param endIndex Optional; an integer that specifies the position of the first character after the desired
1234
+ * text span. As designed, if you specify beginIndex and endIndex values,
1235
+ * the text from beginIndex to endIndex-1 is read.
1236
+ * @return The TextFormat object that represents the formatting properties for the specified text.
1237
+ * @throws RangeError The beginIndex or endIndex specified is out of range.
1238
+ */
1239
+ TextField.prototype.getTextFormat = function (beginIndex, endIndex) {
1240
+ if (beginIndex === void 0) { beginIndex = -1; }
1241
+ if (endIndex === void 0) { endIndex = -1; }
1242
+ var awt = this._adaptee.getTextFormat(beginIndex, endIndex);
1243
+ if (!awt) {
1244
+ console.warn('[playerglobal/Textfield] - getTextFormat - textformat should not be null');
1245
+ return;
1246
+ }
1247
+ if (awt.adaptee !== awt.adapter) {
1248
+ return awt.adapter;
1249
+ }
1250
+ var tf = new this.sec.flash.text.TextFormat();
1251
+ tf.adaptee = awt;
1252
+ awt.adapter = tf;
1253
+ return tf;
1254
+ };
1255
+ TextField.prototype.getTextRuns = function (beginIndex, endIndex) {
1256
+ if (beginIndex === void 0) { beginIndex = 0; }
1257
+ if (endIndex === void 0) { endIndex = 2147483647; }
1258
+ // @todo
1259
+ Debug.throwPIR('playerglobals/text/Textfield', 'getTextRuns', '');
1260
+ return [];
1261
+ };
1262
+ TextField.prototype.getXMLText = function (beginIndex, endIndex) {
1263
+ if (beginIndex === void 0) { beginIndex = 0; }
1264
+ if (endIndex === void 0) { endIndex = 2147483647; }
1265
+ // @todo
1266
+ Debug.throwPIR('playerglobals/text/Textfield', 'getXMLText', '');
1267
+ return '';
1268
+ };
1269
+ TextField.prototype.insertXMLText = function (beginIndex, endIndex, richText, pasting) {
1270
+ if (pasting === void 0) { pasting = false; }
1271
+ // @todo
1272
+ Debug.throwPIR('playerglobals/text/Textfield', 'insertXMLText', '');
1273
+ };
1274
+ /**
1275
+ * Returns true if an embedded font is available with the specified fontName and fontStyle
1276
+ * where Font.fontType is flash.text.FontType.EMBEDDED. Starting with Flash Player 10,
1277
+ * two kinds of embedded fonts can appear in a SWF file. Normal embedded fonts are only used with
1278
+ * TextField objects.
1279
+ * CFF embedded fonts are only used with the flash.text.engine classes. The two types are distinguished by the
1280
+ * fontType property of the Font class, as returned by the enumerateFonts() function.
1281
+ *
1282
+ * TextField cannot use a font of type EMBEDDED_CFF. If embedFonts is set to true
1283
+ * and the only font available at run time with the specified name and style is of type EMBEDDED_CFF,
1284
+ * Flash Player fails to render the text, as if no embedded font were available with the specified name and style.
1285
+ * If both EMBEDDED and EMBEDDED_CFF fonts are available with the same name and style, the EMBEDDED
1286
+ * font is selected and text renders with the EMBEDDED font.
1287
+ * @param fontName The name of the embedded font to check.
1288
+ * @param fontStyle Specifies the font style to check. Use flash.text.FontStyle
1289
+ * @return true if a compatible embedded font is available, otherwise false.
1290
+ * @throws ArgumentError The fontStyle specified is not a member of flash.text.FontStyle.
1291
+ */
1292
+ TextField.isFontCompatible = function (fontName, fontStyle) {
1293
+ // @todo
1294
+ Debug.throwPIR('playerglobals/text/Textfield', 'isFontCompatible', '');
1295
+ return false;
1296
+ };
1297
+ TextField.prototype.pasteRichText = function (richText) {
1298
+ // @todo
1299
+ Debug.throwPIR('playerglobals/text/Textfield', 'pasteRichText', '');
1300
+ return false;
1301
+ };
1302
+ /**
1303
+ * Replaces the current selection with the contents of the value parameter.
1304
+ * The text is inserted at the position of the current selection, using the current default character
1305
+ * format and default paragraph format. The text is not treated as HTML.
1306
+ *
1307
+ * You can use the replaceSelectedText() method to insert and delete text without disrupting
1308
+ * the character and paragraph formatting of the rest of the text.
1309
+ * Note: This method does not work if a style sheet is applied to the text field.
1310
+ * @param value The string to replace the currently selected text.
1311
+ * @throws Error This method cannot be used on a text field with a style sheet.
1312
+ */
1313
+ TextField.prototype.replaceSelectedText = function (value) {
1314
+ return this._adaptee.replaceSelectedText(value);
1315
+ };
1316
+ /**
1317
+ * Replaces the range of characters that the beginIndex and
1318
+ * endIndex parameters specify with the contents
1319
+ * of the newText parameter. As designed, the text from
1320
+ * beginIndex to endIndex-1 is replaced.
1321
+ * Note: This method does not work if a style sheet is applied to the text field.
1322
+ * @param beginIndex The zero-based index value for the start position of the replacement range.
1323
+ * @param endIndex The zero-based index position of the first character after the desired
1324
+ * text span.
1325
+ * @param newText The text to use to replace the specified range of characters.
1326
+ * @throws Error This method cannot be used on a text field with a style sheet.
1327
+ */
1328
+ TextField.prototype.replaceText = function (beginIndex, endIndex, newText) {
1329
+ return this._adaptee.replaceText(beginIndex, endIndex, newText);
1330
+ };
1331
+ /**
1332
+ * Sets as selected the text designated by the index values of the
1333
+ * first and last characters, which are specified with the beginIndex
1334
+ * and endIndex parameters. If the two parameter values are the same,
1335
+ * this method sets the insertion point, as if you set the
1336
+ * caretIndex property.
1337
+ * @param beginIndex The zero-based index value of the first character in the selection
1338
+ * (for example, the first character is 0, the second character is 1, and so on).
1339
+ * @param endIndex The zero-based index value of the last character in the selection.
1340
+ * @internal Need to add an example.
1341
+ */
1342
+ TextField.prototype.setSelection = function (beginIndex, endIndex) {
1343
+ return this._adaptee.setSelection(beginIndex, endIndex);
1344
+ };
1345
+ /**
1346
+ * Applies the text formatting that the format parameter specifies to the specified text in a text field.
1347
+ * The value of format must be a TextFormat object that specifies the
1348
+ * desired text formatting changes. Only the non-null properties of format are applied
1349
+ * to the text field. Any property of format that is set to null is not
1350
+ * applied. By default, all of the properties of a newly created TextFormat object are set to null.
1351
+ * Note: This method does not work if a style sheet is applied to the text field.
1352
+ * The setTextFormat() method changes the text formatting applied to a range of
1353
+ * characters or to the entire body of text in a text field.
1354
+ * To apply the properties of format to all text in the text
1355
+ * field, do not specify values for beginIndex and endIndex. To apply the
1356
+ * properties of the format to a range of text, specify values for the beginIndex and
1357
+ * the endIndex parameters. You can use the length property to determine
1358
+ * the index values.The two types of formatting information in a TextFormat object are
1359
+ * character level formatting and paragraph level formatting.
1360
+ * Each character in a text field can have its own character formatting
1361
+ * settings, such as font name, font size, bold, and italic.For paragraphs,
1362
+ * the first character of the paragraph is examined for the paragraph formatting
1363
+ * settings for the entire paragraph. Examples of paragraph formatting settings are left margin,
1364
+ * right margin, and indentation.Any text inserted manually by the user, or replaced by the
1365
+ * replaceSelectedText() method, receives the default text field formatting for new text,
1366
+ * and not the formatting specified for the text insertion point. To set the default
1367
+ * formatting for new text, use defaultTextFormat.
1368
+ * @param format A TextFormat object that contains character and paragraph formatting information.
1369
+ * @param beginIndex Optional; an integer that specifies the zero-based index position specifying the
1370
+ * first character of the desired range of text.
1371
+ * @param endIndex Optional; an integer that specifies the first character after the desired text span.
1372
+ * As designed, if you specify beginIndex and endIndex values,
1373
+ * the text from beginIndex to endIndex-1 is updated.
1374
+ *
1375
+ * UsageDescriptionmy_textField.setTextFormat(textFormat:TextFormat)
1376
+ * Applies the properties of textFormat to all text in the text
1377
+ * field.my_textField.setTextFormat(textFormat:TextFormat, beginIndex:int)
1378
+ * Applies the properties of textFormat to the text starting with the
1379
+ * beginIndex position.my_textField.setTextFormat(textFormat:TextFormat, beginIndex:int,
1380
+ * endIndex:int)Applies the properties of the textFormat parameter to the span of
1381
+ * text from the beginIndex position to the endIndex-1 position.
1382
+ * Notice that any text inserted manually by the user, or replaced by the
1383
+ * replaceSelectedText() method, receives the default text field formatting for new
1384
+ * text, and not the formatting specified for the text insertion point. To set a text field's
1385
+ * default formatting for new text, use the defaultTextFormat property.
1386
+ * @throws Error This method cannot be used on a text field with a style sheet.
1387
+ * @throws RangeError The beginIndex or endIndex specified is out of range.
1388
+ */
1389
+ TextField.prototype.setTextFormat = function (format, beginIndex, endIndex) {
1390
+ if (beginIndex === void 0) { beginIndex = -1; }
1391
+ if (endIndex === void 0) { endIndex = -1; }
1392
+ //todo implement for multi-formats
1393
+ this._adaptee.setTextFormat(format.adaptee, beginIndex, endIndex);
1394
+ };
1395
+ TextField._textFields = new Array();
1396
+ return TextField;
1397
+ }(InteractiveObject));
1398
+ export { TextField };