mako 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (391) hide show
  1. data/bin/mako +133 -0
  2. data/lib/mako/build.rb +336 -0
  3. data/lib/mako/data/flash_widget_dev_core/Dependencies.txt +10 -0
  4. data/lib/mako/data/flash_widget_dev_core/libs/Degrafa_.2.11.swc +0 -0
  5. data/lib/mako/data/flash_widget_dev_core/libs/KogneatoGraphics.swc +0 -0
  6. data/lib/mako/data/flash_widget_dev_core/libs/KogneatoSymbols.swc +0 -0
  7. data/lib/mako/data/flash_widget_dev_core/libs/flash.swc +0 -0
  8. data/lib/mako/data/flash_widget_dev_core/src/assets/images/RichTextEditor.png +0 -0
  9. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/fonts/ARLRDBD.TTF +0 -0
  10. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/fonts/FTD_____.TTF +0 -0
  11. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/fonts/verdana.ttf +0 -0
  12. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/fonts/verdanab.ttf +0 -0
  13. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/fonts/verdanai.ttf +0 -0
  14. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/fonts/verdanaz.ttf +0 -0
  15. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/DefaultError.png +0 -0
  16. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/barbgfill.png +0 -0
  17. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/barshadow.png +0 -0
  18. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/bold.png +0 -0
  19. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/bullets.png +0 -0
  20. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/center.png +0 -0
  21. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/close-x.png +0 -0
  22. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/fullscreenPopup_close.png +0 -0
  23. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/gameTypeIcons/mc.png +0 -0
  24. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/gameTypeIcons/mc2.png +0 -0
  25. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/gameTypeIcons/mc3.png +0 -0
  26. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/gameTypeIcons/qa.png +0 -0
  27. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/gameTypeIcons/so.png +0 -0
  28. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/importIcon.png +0 -0
  29. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/italic.png +0 -0
  30. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/justify.png +0 -0
  31. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/kogLogo.png +0 -0
  32. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/left.png +0 -0
  33. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-href-disabled.png +0 -0
  34. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-href.png +0 -0
  35. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-pagelink-disabled.png +0 -0
  36. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-pagelink.png +0 -0
  37. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-tooltip-delete.png +0 -0
  38. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-tooltip-disabled.png +0 -0
  39. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-tooltip-edit.png +0 -0
  40. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-tooltip.png +0 -0
  41. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/pencil.png +0 -0
  42. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/right.png +0 -0
  43. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/underline.png +0 -0
  44. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayButton.png +0 -0
  45. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerPauseButton.png +0 -0
  46. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerPauseButton_over.png +0 -0
  47. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerPlayButton.png +0 -0
  48. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerPlayButton_over.png +0 -0
  49. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerSoundButton.png +0 -0
  50. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerSoundButton_over.png +0 -0
  51. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/styles/creatorStyle.css +57 -0
  52. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/styles/style.css +929 -0
  53. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/swf/embeddedfonts.swf +0 -0
  54. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/swf/helpBubble.swf +0 -0
  55. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/swf/kogneatoSymbols.swf +0 -0
  56. data/lib/mako/data/flash_widget_dev_core/src/assets/materia/swf/videobg.swf +0 -0
  57. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/LICENSE.txt +27 -0
  58. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/CubeRotate.as +48 -0
  59. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/Distortion.as +168 -0
  60. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/DistortionConstants.as +16 -0
  61. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/Door.as +57 -0
  62. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/Flip.as +62 -0
  63. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/Gate.as +57 -0
  64. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/Pop.as +53 -0
  65. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/Push.as +48 -0
  66. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/SimpleDistortion.as +619 -0
  67. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/CubeRotateInstance.as +94 -0
  68. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/DistortBaseInstance.as +258 -0
  69. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/DoorInstance.as +116 -0
  70. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/FlipInstance.as +79 -0
  71. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/GateInstance.as +163 -0
  72. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/PopInstance.as +91 -0
  73. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/PushInstance.as +76 -0
  74. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/util/DisplayObjectBounds.as +64 -0
  75. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/util/DisplayObjectBoundsUtil.as +42 -0
  76. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/util/SimpleDisplayObjectBoundsUtil.as +60 -0
  77. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/HMAC.as +108 -0
  78. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/MD5.as +250 -0
  79. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/MD5Stream.as +343 -0
  80. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/SHA1.as +250 -0
  81. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/SHA224.as +226 -0
  82. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/SHA256.as +229 -0
  83. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/WSSEUsernameToken.as +100 -0
  84. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/effects/SaturationFade.as +107 -0
  85. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/effects/SaturationFadeInstance.as +178 -0
  86. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/effects/SaturationFadePopUpBlocker.as +88 -0
  87. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/errors/IllegalStateError.as +57 -0
  88. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/fileformats/vcard/Address.as +41 -0
  89. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/fileformats/vcard/Email.as +34 -0
  90. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/fileformats/vcard/Phone.as +34 -0
  91. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/fileformats/vcard/VCard.as +47 -0
  92. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/fileformats/vcard/VCardParser.as +234 -0
  93. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/images/BitString.as +34 -0
  94. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/images/JPGEncoder.as +584 -0
  95. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/images/PNGEncoder.as +133 -0
  96. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/net/DynamicURLLoader.as +48 -0
  97. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/net/IURIResolver.as +70 -0
  98. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/net/MimeTypeMap.as +192 -0
  99. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/net/URI.as +2139 -0
  100. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/net/URIEncodingBitmap.as +122 -0
  101. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/net/proxies/RFC2817Socket.as +179 -0
  102. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/Database.as +55 -0
  103. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/Definition.as +59 -0
  104. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/Dict.as +322 -0
  105. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/DictionaryServer.as +50 -0
  106. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/MatchStrategy.as +55 -0
  107. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/Response.as +59 -0
  108. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/ConnectedEvent.as +44 -0
  109. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/DatabaseEvent.as +54 -0
  110. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/DefinitionEvent.as +55 -0
  111. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/DefinitionHeaderEvent.as +55 -0
  112. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/DictionaryServerEvent.as +55 -0
  113. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/DisconnectedEvent.as +44 -0
  114. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/ErrorEvent.as +64 -0
  115. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/MatchEvent.as +54 -0
  116. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/MatchStrategiesEvent.as +56 -0
  117. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/NoMatchEvent.as +44 -0
  118. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/util/CompleteResponseEvent.as +55 -0
  119. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/util/SocketHelper.as +70 -0
  120. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSON.as +76 -0
  121. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSONDecoder.as +303 -0
  122. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSONEncoder.as +277 -0
  123. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSONParseError.as +79 -0
  124. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSONToken.as +79 -0
  125. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSONTokenType.as +49 -0
  126. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSONTokenizer.as +605 -0
  127. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/ArrayUtil.as +166 -0
  128. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/DateUtil.as +657 -0
  129. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/DictionaryUtil.as +73 -0
  130. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/IntUtil.as +85 -0
  131. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/NumberFormatter.as +63 -0
  132. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/StringUtil.as +220 -0
  133. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/XMLUtil.as +148 -0
  134. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/webapis/ServiceBase.as +39 -0
  135. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/webapis/URLLoaderBase.as +93 -0
  136. data/lib/mako/data/flash_widget_dev_core/src/com/adobe/webapis/events/ServiceEvent.as +67 -0
  137. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/geom/ColorMatrix.as +1 -0
  138. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/GTween.as +1 -0
  139. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/GTweenTimeline.as +1 -0
  140. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/GTweener.as +1 -0
  141. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Back.as +1 -0
  142. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Bounce.as +1 -0
  143. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Circular.as +1 -0
  144. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Cubic.as +1 -0
  145. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Elastic.as +1 -0
  146. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Exponential.as +1 -0
  147. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Linear.as +1 -0
  148. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Quadratic.as +1 -0
  149. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Quartic.as +1 -0
  150. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Quintic.as +1 -0
  151. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Sine.as +1 -0
  152. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/AutoHidePlugin.as +1 -0
  153. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/BlurPlugin.as +1 -0
  154. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/ColorAdjustPlugin.as +1 -0
  155. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/ColorTransformPlugin.as +1 -0
  156. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/CurrentFramePlugin.as +1 -0
  157. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/IGTweenPlugin.as +1 -0
  158. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/MatrixPlugin.as +1 -0
  159. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/MotionBlurPlugin.as +1 -0
  160. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/SmartRotationPlugin.as +1 -0
  161. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/SnappingPlugin.as +1 -0
  162. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/SoundTransformPlugin.as +1 -0
  163. data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/utils/SWFBridgeAS3.as +83 -0
  164. data/lib/mako/data/flash_widget_dev_core/src/etc/GUID.as +82 -0
  165. data/lib/mako/data/flash_widget_dev_core/src/etc/MathExt.as +114 -0
  166. data/lib/mako/data/flash_widget_dev_core/src/gs/OverwriteManager.as +143 -0
  167. data/lib/mako/data/flash_widget_dev_core/src/gs/TweenFilterLite.as +502 -0
  168. data/lib/mako/data/flash_widget_dev_core/src/gs/TweenLite.as +512 -0
  169. data/lib/mako/data/flash_widget_dev_core/src/gs/TweenMax.as +987 -0
  170. data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Back.as +14 -0
  171. data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Bounce.as +22 -0
  172. data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Circ.as +14 -0
  173. data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Cubic.as +14 -0
  174. data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Elastic.as +27 -0
  175. data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Expo.as +16 -0
  176. data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Linear.as +16 -0
  177. data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Quad.as +14 -0
  178. data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Quart.as +14 -0
  179. data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Quint.as +14 -0
  180. data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Sine.as +14 -0
  181. data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Strong.as +14 -0
  182. data/lib/mako/data/flash_widget_dev_core/src/gs/easing/easing_readme.txt +14 -0
  183. data/lib/mako/data/flash_widget_dev_core/src/gs/events/TweenEvent.as +26 -0
  184. data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/BevelFilterVars.as +63 -0
  185. data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/BlurFilterVars.as +42 -0
  186. data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/ColorMatrixFilterVars.as +86 -0
  187. data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/DropShadowFilterVars.as +66 -0
  188. data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/GlowFilterVars.as +57 -0
  189. data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/TweenFilterLiteVars.as +93 -0
  190. data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/TweenLiteVars.as +269 -0
  191. data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/TweenMaxVars.as +103 -0
  192. data/lib/mako/data/flash_widget_dev_core/src/it/animation/TweenEvent.as +17 -0
  193. data/lib/mako/data/flash_widget_dev_core/src/it/animation/TweenObject.as +27 -0
  194. data/lib/mako/data/flash_widget_dev_core/src/it/animation/TweenSingleton.as +86 -0
  195. data/lib/mako/data/flash_widget_dev_core/src/it/animation/methods/Constant.as +7 -0
  196. data/lib/mako/data/flash_widget_dev_core/src/it/animation/methods/FastSlow.as +7 -0
  197. data/lib/mako/data/flash_widget_dev_core/src/it/animation/methods/FastSlowFast.as +8 -0
  198. data/lib/mako/data/flash_widget_dev_core/src/it/animation/methods/Shake.as +12 -0
  199. data/lib/mako/data/flash_widget_dev_core/src/it/animation/methods/SlowFast.as +7 -0
  200. data/lib/mako/data/flash_widget_dev_core/src/it/animation/methods/SlowFastSlow.as +8 -0
  201. data/lib/mako/data/flash_widget_dev_core/src/jac/image/ImageUtils.as +173 -0
  202. data/lib/mako/data/flash_widget_dev_core/src/jac/image/ResizeStyle.as +52 -0
  203. data/lib/mako/data/flash_widget_dev_core/src/materia/CreatorBase.mxml +504 -0
  204. data/lib/mako/data/flash_widget_dev_core/src/materia/CreatorConfig.as +45 -0
  205. data/lib/mako/data/flash_widget_dev_core/src/materia/CreatorEvents.as +38 -0
  206. data/lib/mako/data/flash_widget_dev_core/src/materia/Dialog.as +35 -0
  207. data/lib/mako/data/flash_widget_dev_core/src/materia/MateriaButton.as +35 -0
  208. data/lib/mako/data/flash_widget_dev_core/src/materia/PopUpAlert.mxml +271 -0
  209. data/lib/mako/data/flash_widget_dev_core/src/materia/components/GradientBackground.as +41 -0
  210. data/lib/mako/data/flash_widget_dev_core/src/materia/components/PercentField.mxml +104 -0
  211. data/lib/mako/data/flash_widget_dev_core/src/materia/components/ScrollableSizableImage.mxml +654 -0
  212. data/lib/mako/data/flash_widget_dev_core/src/materia/components/TextAreaWithDefaultText.mxml +94 -0
  213. data/lib/mako/data/flash_widget_dev_core/src/materia/components/TextInputWithDefaultText.mxml +94 -0
  214. data/lib/mako/data/flash_widget_dev_core/src/materia/components/VertCenterTextRenderer.mxml +37 -0
  215. data/lib/mako/data/flash_widget_dev_core/src/materia/components/importer/ImportEvent.as +22 -0
  216. data/lib/mako/data/flash_widget_dev_core/src/materia/components/importer/itemRenderers/CheckBoxColumn.mxml +23 -0
  217. data/lib/mako/data/flash_widget_dev_core/src/materia/components/importer/questions/QuestionDetails.mxml +68 -0
  218. data/lib/mako/data/flash_widget_dev_core/src/materia/components/importer/questions/QuestionDisplay.mxml +38 -0
  219. data/lib/mako/data/flash_widget_dev_core/src/materia/components/importer/questions/QuestionsDataGrid.mxml +247 -0
  220. data/lib/mako/data/flash_widget_dev_core/src/materia/components/importer/questions/QuestionsDataGridEvent.as +20 -0
  221. data/lib/mako/data/flash_widget_dev_core/src/materia/components/questionAnswerDataGrid/QuestionAnswerColumn.as +13 -0
  222. data/lib/mako/data/flash_widget_dev_core/src/materia/components/questionAnswerDataGrid/QuestionAnswerDataGrid.mxml +692 -0
  223. data/lib/mako/data/flash_widget_dev_core/src/materia/components/questionAnswerDataGrid/TextInputItem.mxml +584 -0
  224. data/lib/mako/data/flash_widget_dev_core/src/materia/components/questionAnswerDataGrid/TextInputObject.as +28 -0
  225. data/lib/mako/data/flash_widget_dev_core/src/materia/components/toolTips/KogneatoToolTip.as +196 -0
  226. data/lib/mako/data/flash_widget_dev_core/src/materia/components/toolTips/TipManager.as +150 -0
  227. data/lib/mako/data/flash_widget_dev_core/src/materia/help/HelpBubble.mxml +245 -0
  228. data/lib/mako/data/flash_widget_dev_core/src/materia/help/HelpDot.mxml +21 -0
  229. data/lib/mako/data/flash_widget_dev_core/src/materia/help/HelpManager.as +92 -0
  230. data/lib/mako/data/flash_widget_dev_core/src/materia/help/HelpObject.as +33 -0
  231. data/lib/mako/data/flash_widget_dev_core/src/materia/help/IHelpGuided.as +7 -0
  232. data/lib/mako/data/flash_widget_dev_core/src/materia/media/ImageCacherImage.mxml +56 -0
  233. data/lib/mako/data/flash_widget_dev_core/src/materia/media/MateriaUploader.as +61 -0
  234. data/lib/mako/data/flash_widget_dev_core/src/materia/questionStorage/Question.as +386 -0
  235. data/lib/mako/data/flash_widget_dev_core/src/materia/questionStorage/QuestionGroup.as +313 -0
  236. data/lib/mako/data/flash_widget_dev_core/src/materia/questionStorage/QuestionSet.as +21 -0
  237. data/lib/mako/data/flash_widget_dev_core/src/materia/toolTips/KogneatoToolTip.as +196 -0
  238. data/lib/mako/data/flash_widget_dev_core/src/materia/toolTips/TipManager.as +150 -0
  239. data/lib/mako/data/flash_widget_dev_core/src/materia/utils/CommonUtils.as +186 -0
  240. data/lib/mako/data/flash_widget_dev_core/src/materia/utils/DateUtils.as +273 -0
  241. data/lib/mako/data/flash_widget_dev_core/src/materia/utils/ImageCacher.as +93 -0
  242. data/lib/mako/data/flash_widget_dev_core/src/nm/arrays/Randomize.as +19 -0
  243. data/lib/mako/data/flash_widget_dev_core/src/nm/arrays/SimpleClone.as +32 -0
  244. data/lib/mako/data/flash_widget_dev_core/src/nm/draw/Color.as +102 -0
  245. data/lib/mako/data/flash_widget_dev_core/src/nm/draw/Draw.as +65 -0
  246. data/lib/mako/data/flash_widget_dev_core/src/nm/draw/lines/Dashed.as +48 -0
  247. data/lib/mako/data/flash_widget_dev_core/src/nm/draw/lines/Dotted.as +83 -0
  248. data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/Check.as +27 -0
  249. data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/Rect.as +12 -0
  250. data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/RectBevel.as +35 -0
  251. data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/RectBorder.as +39 -0
  252. data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/RectRound.as +33 -0
  253. data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/RectRoundBorder.as +62 -0
  254. data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/TriangleEquilateral.as +25 -0
  255. data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/X.as +28 -0
  256. data/lib/mako/data/flash_widget_dev_core/src/nm/errors/ScoringError.as +10 -0
  257. data/lib/mako/data/flash_widget_dev_core/src/nm/errors/StorageError.as +10 -0
  258. data/lib/mako/data/flash_widget_dev_core/src/nm/events/ButtonEvent.as +25 -0
  259. data/lib/mako/data/flash_widget_dev_core/src/nm/events/PayloadEvent.as +14 -0
  260. data/lib/mako/data/flash_widget_dev_core/src/nm/events/StandardEvent.as +26 -0
  261. data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/Question.as +72 -0
  262. data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/QuestionGroup.as +87 -0
  263. data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/QuestionSet.as +35 -0
  264. data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/WidgetSettings.as +14 -0
  265. data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/coms/ServerEvents.as +17 -0
  266. data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/coms/ServerMessageEvent.as +31 -0
  267. data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/logging/Log.as +92 -0
  268. data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/scoring/Scoring.as +87 -0
  269. data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/storage/StorageManager.as +91 -0
  270. data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/storage/StorageTable.as +72 -0
  271. data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/engines/EngineCore.as +222 -0
  272. data/lib/mako/data/flash_widget_dev_core/src/nm/geom/Dimension.as +76 -0
  273. data/lib/mako/data/flash_widget_dev_core/src/nm/respondus/Respondus.as +612 -0
  274. data/lib/mako/data/flash_widget_dev_core/src/nm/respondus/RespondusAnswer.as +11 -0
  275. data/lib/mako/data/flash_widget_dev_core/src/nm/respondus/RespondusError.as +18 -0
  276. data/lib/mako/data/flash_widget_dev_core/src/nm/respondus/RespondusQuestion.as +43 -0
  277. data/lib/mako/data/flash_widget_dev_core/src/nm/respondus/RespondusQuiz.as +68 -0
  278. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/AlertWindow.as +182 -0
  279. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/BlueButton.as +102 -0
  280. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/Button.as +88 -0
  281. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/Button_base.as +168 -0
  282. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/Component.as +98 -0
  283. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ContentBlocker.as +38 -0
  284. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/FlexUIScaler.as +59 -0
  285. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/FormInput.as +191 -0
  286. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/GrabZoomClip.as +305 -0
  287. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/HelpLayer.as +55 -0
  288. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/Label.as +25 -0
  289. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/List.as +62 -0
  290. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/List_Base.as +644 -0
  291. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ProcessingBar.as +112 -0
  292. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ProgressBar.as +35 -0
  293. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ProgressBar_base.as +69 -0
  294. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ScrollBar.as +163 -0
  295. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ScrollBar_base.as +378 -0
  296. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ScrollClip.as +468 -0
  297. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ScrollText.as +29 -0
  298. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ScrollText_base.as +295 -0
  299. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/SimpleScrollBar.as +247 -0
  300. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/StageRef.as +34 -0
  301. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/StorageTank.as +233 -0
  302. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/StorageTankHorizontal.as +109 -0
  303. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ToolTip.as +930 -0
  304. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/TweeningDragDropBankList.as +503 -0
  305. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/Window.as +144 -0
  306. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/Window_base.as +385 -0
  307. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/layout/CenterScale.as +27 -0
  308. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/layout/WindowManager.as +163 -0
  309. data/lib/mako/data/flash_widget_dev_core/src/nm/ui/layout/WindowStage.as +96 -0
  310. data/lib/mako/data/flash_widget_dev_core/src/nm/util/BitField.as +99 -0
  311. data/lib/mako/data/flash_widget_dev_core/src/nm/util/ObjPeek.as +148 -0
  312. data/lib/mako/data/flash_widget_dev_core/src/nm/util/Objects.as +49 -0
  313. data/lib/mako/data/flash_widget_dev_core/src/nm/util/Printer.as +548 -0
  314. data/lib/mako/data/flash_widget_dev_core/src/nm/util/StringUtil.as +12 -0
  315. data/lib/mako/data/flash_widget_dev_core/src/org/rubyamf/remoting/ssr/FaultEvent.as +37 -0
  316. data/lib/mako/data/flash_widget_dev_core/src/org/rubyamf/remoting/ssr/RemotingCall.as +211 -0
  317. data/lib/mako/data/flash_widget_dev_core/src/org/rubyamf/remoting/ssr/RemotingConnection.as +41 -0
  318. data/lib/mako/data/flash_widget_dev_core/src/org/rubyamf/remoting/ssr/RemotingService.as +214 -0
  319. data/lib/mako/data/flash_widget_dev_core/src/org/rubyamf/remoting/ssr/ResultEvent.as +36 -0
  320. data/lib/mako/data/flash_widget_dev_core/src/sandy/util/DistortImage.as +281 -0
  321. data/lib/mako/data/flash_widget_dev_core/src/sandy/util/SandyPoint.as +29 -0
  322. data/lib/mako/data/flash_widget_dev_core/src/sandy/util/Triangle.as +32 -0
  323. data/lib/mako/data/html/thistest.html +0 -0
  324. data/lib/mako/data/template_creator/src/Creator.mxml +138 -0
  325. data/lib/mako/data/template_creator/src/assets/images/RichTextEditor.png +0 -0
  326. data/lib/mako/data/template_creator/src/assets/materia/images/DefaultError.png +0 -0
  327. data/lib/mako/data/template_creator/src/assets/materia/images/barbgfill.png +0 -0
  328. data/lib/mako/data/template_creator/src/assets/materia/images/barshadow.png +0 -0
  329. data/lib/mako/data/template_creator/src/assets/materia/images/bold.png +0 -0
  330. data/lib/mako/data/template_creator/src/assets/materia/images/bullets.png +0 -0
  331. data/lib/mako/data/template_creator/src/assets/materia/images/center.png +0 -0
  332. data/lib/mako/data/template_creator/src/assets/materia/images/close-x.png +0 -0
  333. data/lib/mako/data/template_creator/src/assets/materia/images/fullscreenPopup_close.png +0 -0
  334. data/lib/mako/data/template_creator/src/assets/materia/images/importIcon.png +0 -0
  335. data/lib/mako/data/template_creator/src/assets/materia/images/italic.png +0 -0
  336. data/lib/mako/data/template_creator/src/assets/materia/images/justify.png +0 -0
  337. data/lib/mako/data/template_creator/src/assets/materia/images/left.png +0 -0
  338. data/lib/mako/data/template_creator/src/assets/materia/images/oml-href-disabled.png +0 -0
  339. data/lib/mako/data/template_creator/src/assets/materia/images/oml-href.png +0 -0
  340. data/lib/mako/data/template_creator/src/assets/materia/images/oml-pagelink-disabled.png +0 -0
  341. data/lib/mako/data/template_creator/src/assets/materia/images/oml-pagelink.png +0 -0
  342. data/lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip-delete.png +0 -0
  343. data/lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip-disabled.png +0 -0
  344. data/lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip-edit.png +0 -0
  345. data/lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip.png +0 -0
  346. data/lib/mako/data/template_creator/src/assets/materia/images/pencil.png +0 -0
  347. data/lib/mako/data/template_creator/src/assets/materia/images/right.png +0 -0
  348. data/lib/mako/data/template_creator/src/assets/materia/images/underline.png +0 -0
  349. data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayButton.png +0 -0
  350. data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPauseButton.png +0 -0
  351. data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPauseButton_over.png +0 -0
  352. data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPlayButton.png +0 -0
  353. data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPlayButton_over.png +0 -0
  354. data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerSoundButton.png +0 -0
  355. data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerSoundButton_over.png +0 -0
  356. data/lib/mako/data/template_creator/src/assets/materia/styles/creatorStyle.css +63 -0
  357. data/lib/mako/data/template_creator/src/assets/materia/styles/style.css +1127 -0
  358. data/lib/mako/data/template_creator/src/assets/materia/swf/embeddedfonts.swf +0 -0
  359. data/lib/mako/data/template_creator/src/assets/materia/swf/helpBubble.swf +0 -0
  360. data/lib/mako/data/template_creator/src/assets/materia/swf/kogneatoSymbols.swf +0 -0
  361. data/lib/mako/data/template_creator/src/assets/materia/swf/videobg.swf +0 -0
  362. data/lib/mako/data/template_creator/src/components/SmallRichTextEditor.mxml +678 -0
  363. data/lib/mako/data/template_creator/src/components/SmallRichTextEditorToolbar.mxml +133 -0
  364. data/lib/mako/data/templates/html/README.md +11 -0
  365. data/lib/mako/data/templates/html/_creator/build.yaml +12 -0
  366. data/lib/mako/data/templates/html/_creator/creator.html +19 -0
  367. data/lib/mako/data/templates/html/_creator/css/creator.less +29 -0
  368. data/lib/mako/data/templates/html/_creator/js/creator.coffee +122 -0
  369. data/lib/mako/data/templates/html/_creator/test.html +0 -0
  370. data/lib/mako/data/templates/html/_engine/build.yaml +12 -0
  371. data/lib/mako/data/templates/html/_engine/css/widget.scss +18 -0
  372. data/lib/mako/data/templates/html/_engine/js/widget.coffee +143 -0
  373. data/lib/mako/data/templates/html/_engine/widget.html +21 -0
  374. data/lib/mako/data/templates/html/_icons/icon-275.png +0 -0
  375. data/lib/mako/data/templates/html/_icons/icon-394.png +0 -0
  376. data/lib/mako/data/templates/html/_icons/icon-60.png +0 -0
  377. data/lib/mako/data/templates/html/_icons/icon-92.png +0 -0
  378. data/lib/mako/data/templates/html/_score/score_module.php +48 -0
  379. data/lib/mako/data/templates/html/_score/test_score_module.php +157 -0
  380. data/lib/mako/data/templates/html/_screen-shots/1-thumb.png +0 -0
  381. data/lib/mako/data/templates/html/_screen-shots/1.png +0 -0
  382. data/lib/mako/data/templates/html/_screen-shots/2-thumb.png +0 -0
  383. data/lib/mako/data/templates/html/_screen-shots/2.png +0 -0
  384. data/lib/mako/data/templates/html/_screen-shots/3-thumb.png +0 -0
  385. data/lib/mako/data/templates/html/_screen-shots/3.png +0 -0
  386. data/lib/mako/data/templates/html/build.yaml +4 -0
  387. data/lib/mako/data/templates/html/demo.yaml +7 -0
  388. data/lib/mako/data/templates/html/install.yaml +94 -0
  389. data/lib/mako/path.rb +48 -0
  390. data/lib/mako/scaffold.rb +69 -0
  391. metadata +597 -0
@@ -0,0 +1,102 @@
1
+ package nm.draw {
2
+ public class Color {
3
+ private var _hex:uint; // Hex representation for numbers
4
+ private var _rgb:Array; // Red/Green/Blue
5
+ private var _hsb:Array; // Hue/Saturation/Brightness
6
+ public function Color(value:uint) { _hex = value; }
7
+ //----------------------------------
8
+ // Hex (hexadecimal representation of color)
9
+ //----------------------------------
10
+ public function get value():uint { return hex; }
11
+ public function set value(value:uint):void { hex = value }
12
+ public function get hex():uint { return _hex; }
13
+ public function set hex(value:uint):void
14
+ {
15
+ _hex = value;
16
+ _rgb = _hsb = null;
17
+ }
18
+ //----------------------------------
19
+ // RGB (Red-Green-Blue)
20
+ //----------------------------------
21
+ public function get rgb():Array
22
+ {
23
+ if(_rgb != null) return _rgb;
24
+ var result:Array = new Array(3);
25
+ result[0] = _hex >> 16;
26
+ result[1] = _hex >> 8 & 0xff;
27
+ result[2] = _hex & 0xff;
28
+ return result;
29
+ }
30
+ public function set rgb(colors:Array):void
31
+ {
32
+ _rgb = colors;
33
+ _hsb = null;
34
+ _hex = colors[0] << 16 ^ colors[1] << 8 ^ colors[2];
35
+ }
36
+ public function get red():int { return this.rgb[0]; }
37
+ public function get green():int { return this.rgb[1]; }
38
+ public function get blue():int { return this.rgb[2]; }
39
+ public function set red(val:int):void { var rgb:Array = this.rgb; this.rgb = new Array(val, rgb[1], rgb[2]); }
40
+ public function set green(val:int):void { var rgb:Array = this.rgb; this.rgb = new Array(rgb[0], val, rgb[2]); }
41
+ public function set blue(val:int):void { var rgb:Array = this.rgb; this.rgb = new Array(rgb[0], rgb[1], val); }
42
+ //----------------------------------
43
+ // HSB (Hue-Saturation-Brightness)
44
+ //----------------------------------
45
+ public function get hsb():Array
46
+ {
47
+ // re-use any saved objects
48
+ if(_hsb != null) return _hsb;
49
+ if(_rgb == null) _rgb = this.rgb;
50
+ // prepare variables to be used
51
+ var rgb:Array = [_rgb[0], _rgb[1], _rgb[2]];
52
+ var x:Number, f:Number, i:Number, hue:int, sat:int, bright:int;
53
+ rgb[0] /= 255;
54
+ rgb[1] /= 255;
55
+ rgb[2] /= 255;
56
+ // check if shade of gray
57
+ x = Math.min(rgb[0], rgb[1], rgb[2]);
58
+ bright = Math.max(rgb[0], rgb[1], rgb[2]);
59
+ if(x==bright) return new Array(0, 0, bright * 100);
60
+ // get hue/sat/bright
61
+ f = (rgb[0] == x) ? rgb[1] - rgb[2] : ((rgb[1] == x) ? rgb[2] - rgb[0] : rgb[0] - rgb[1]);
62
+ i = (rgb[0] == x) ? 3 : ((rgb[1] == x) ? 5 : 1);
63
+ hue = Math.floor((i - f / (bright - x)) * 60) % 360;
64
+ sat = Math.floor(((bright - x) / bright) * 100);
65
+ bright = Math.floor(bright * 100);
66
+ return new Array(hue, sat, bright);
67
+ }
68
+ public function set hsb(values:Array):void
69
+ {
70
+ _hsb = values;
71
+ var red:Number, green:Number, blue:Number, i:int, f:Number, p:Number, q:Number, t:Number;
72
+ values[0] %= 360;
73
+ // check if black
74
+ if(values[2] == 0) { rgb = new Array(0, 0, 0); return; }
75
+ values[1] /= 100;
76
+ values[2] /= 100;
77
+ values[0] /= 60;
78
+ i = Math.floor(values[0]);
79
+ f = values[0] - i;
80
+ p = values[2] * (1-values[1]);
81
+ q = hsb[2] * (1-(values[1] * f));
82
+ t = values[2] * (1 - (values[1] * (1 - f)));
83
+ if (i == 0) { red = values[2]; green = t; blue = p; }
84
+ else if (i == 1) { red = q; green = values[2]; blue = p; }
85
+ else if (i == 2) { red = p; green = values[2]; blue = t; }
86
+ else if (i == 3) { red = p; green = q; blue = values[2]; }
87
+ else if (i == 4) { red = t; green = p; blue = values[2]; }
88
+ else if (i == 5) { red = values[2]; green = p; blue = q; }
89
+ red = Math.floor(red * 255);
90
+ green = Math.floor(green * 255);
91
+ blue = Math.floor(blue * 255);
92
+ rgb = new Array(red, green, blue);
93
+ return;
94
+ }
95
+ public function get hue():int { return this.hsb[0]; }
96
+ public function get saturation():int { return this.hsb[1]; }
97
+ public function get brightness():int { return this.hsb[2]; }
98
+ public function set hue(val:int):void { var hsb:Array = this.hsb; this.hsb = new Array(val, hsb[1], hsb[2]); }
99
+ public function set saturation(val:int):void { var hsb:Array = this.hsb; this.hsb = new Array(hsb[0], val, hsb[2]); }
100
+ public function set brightness(val:int):void { var hsb:Array = this.hsb; this.hsb = new Array(hsb[0], hsb[1], val); }
101
+ }
102
+ }
@@ -0,0 +1,65 @@
1
+ /* See the file "LICENSE.txt" for the full license governing this code. */
2
+ package nm.draw{
3
+ import flash.display.DisplayObject;
4
+ import flash.display.Sprite;
5
+ public class Draw{
6
+ static public function drawArray(target:Sprite, cmdArr:Array, color:* = 0, alpha:Number = 1):void{
7
+ if(target is Sprite){
8
+ if(color is Number){
9
+ if(isNaN(alpha)) alpha = 1
10
+ cmdArr.unshift({t:'SC', c:color, a:alpha});
11
+ }
12
+ else if(color is Object){
13
+ color.t = 'GC';
14
+ cmdArr.unshift(color);
15
+ }
16
+ var len:Number = cmdArr.length;
17
+ var cmd:Object
18
+ var i:int;
19
+ with(target.graphics){
20
+ lineStyle(null, null, 0);
21
+ for(i=0; i<len; i++){
22
+ cmd = cmdArr[i];
23
+ switch(cmd.t){
24
+ case 'M':
25
+ moveTo(cmd.x, cmd.y);
26
+ break;
27
+ case 'SC': // Solid Color Change
28
+ beginFill(cmd.c, cmd.a);
29
+ break;
30
+ case 'GC': // Gradient Color Change
31
+ beginGradientFill(cmd.s, cmd.c, cmd.a, cmd.r, cmd.m);
32
+ break;
33
+ case 'LS': // Line Style
34
+ lineStyle(cmd.s, cmd.c, cmd.a, cmd.ph, cmd.scale, cmd.cap, cmd.j, cmd.m)
35
+ break;
36
+ case 'GL': // Gradient Line Style
37
+ lineGradientStyle(cmd.s, cmd.c, cmd.a, cmd.r, cmd.m);
38
+ break;
39
+ case 'C': // curve to
40
+ curveTo(cmd.cx, cmd.cy, cmd.x, cmd.y);
41
+ break;
42
+ // New AS3 Drawing functions
43
+ case 'R': // Rectangle
44
+ drawRect(cmd.x, cmd.y, cmd.w, cmd.h);
45
+ break;
46
+ case 'RR': // Rounded Rectangle
47
+ drawRoundRect(cmd.x, cmd.y, cmd.w, cmd.h, cmd.ew, cmd.eh);
48
+ break;
49
+ case 'CIR': // Draw Circle
50
+ drawCircle(cmd.x, cmd.y, cmd.r);
51
+ break;
52
+ case 'E': // Draw Ellipse
53
+ drawEllipse(cmd.x, cmd.y, cmd.w, cmd.h)
54
+ break;
55
+ default: // Line to
56
+ lineTo(cmd.x, cmd.y);
57
+ break;
58
+ }
59
+ }
60
+ endFill();
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
@@ -0,0 +1,48 @@
1
+ /* See the file "LICENSE.txt" for the full license governing this code. */
2
+ package nm.draw.lines{
3
+ import flash.display.MovieClip;
4
+ import nm.draw.Draw;
5
+ public class Dashed{
6
+ public static function draw(target:MovieClip, startx:Number, starty:Number, endx:Number, endy:Number, len:Number, gap:Number, stroke:Number, fill:Number, alpha:Number):void{
7
+ target.graphics.lineStyle(stroke, fill, alpha)
8
+ var dArr:Array = new Array({t:'LS', s:stroke, c:fill, a:alpha, ph:true, scale:'normal', cap:'none', j:'bevel'})
9
+ // init vars
10
+ var seglength:Number, deltax:Number, deltay:Number, segs:Number, cx:Number, cy:Number;
11
+ // calculate the legnth of a segment
12
+ seglength = len + gap;
13
+ // calculate the length of the dashed line
14
+ deltax = endx - startx;
15
+ deltay = endy - starty;
16
+ var delta:Number = Math.sqrt((deltax * deltax) + (deltay * deltay));
17
+ // calculate the number of segments needed
18
+ segs = Math.floor(Math.abs(delta / seglength));
19
+ // get the angle of the line in radians
20
+ var radians:Number = Math.atan2(deltay,deltax);
21
+ // start the line here
22
+ cx = startx;
23
+ cy = starty;
24
+ // add these to cx, cy to get next seg start
25
+ deltax = Math.cos(radians)*seglength;
26
+ deltay = Math.sin(radians)*seglength;
27
+ // loop through each seg
28
+ for (var n:int = 0; n < segs; n++) {
29
+ dArr.push({t:'M', x:cx, y:cy})
30
+ dArr.push({x:cx+Math.cos(radians)*len,y:cy+Math.sin(radians)*len})
31
+ cx += deltax;
32
+ cy += deltay;
33
+ }
34
+ // handle last segment as it is likely to be partial
35
+ dArr.push({t:'M',x:cx, y:cy});
36
+ //target.moveTo(cx,cy);
37
+ delta = Math.sqrt((endx-cx)*(endx-cx)+(endy-cy)*(endy-cy));
38
+ if(delta>len){
39
+ // segment ends in the gap, so draw a full dash
40
+ dArr.push({x:cx+Math.cos(radians)*len,y:cy+Math.sin(radians)*len})
41
+ } else if(delta>0) {
42
+ dArr.push({x:cx+Math.cos(radians)*delta,y:cy+Math.sin(radians)*delta})
43
+ // segment is shorter than dash so only draw what is needed
44
+ }
45
+ Draw.drawArray(target, dArr, 0, 0);
46
+ }
47
+ }
48
+ }
@@ -0,0 +1,83 @@
1
+ /* See the file "LICENSE.txt" for the full license governing this code. */
2
+ /*
3
+ * Code written by Nick Birnbaum
4
+ NewMedia - Course Development & Web Services - University of Central Florida
5
+ */
6
+ package nm.draw.lines{
7
+ import flash.display.Graphics;
8
+ public class Dotted{
9
+ /**
10
+ * Draw a dotted line.
11
+ *
12
+ * @param theGraphics a Sprite's graphics to draw with
13
+ * @param startX the x value of the line start location
14
+ * @param startY the y value of the line start location
15
+ * @param endX the x value of the line end location
16
+ * @param endY the y value of the line end location
17
+ * @param size the lenght of the dashes and spaces in a dotted line
18
+ */
19
+ public static function lineTo(theGraphics:Graphics, startX:Number, startY:Number, endX:Number, endY:Number, size:Number):void
20
+ {
21
+ // draw a dotted line on graphics to xPos, yPos with dashes and spaces of lenght size
22
+ var switched:Boolean = false; // if the end and the beginning were switched to make things work
23
+ if(endX < startX){
24
+ switched = true;
25
+ var tmp:Number;
26
+ tmp = startX;
27
+ startX = endX;
28
+ endX = tmp;
29
+ tmp = startY;
30
+ startY = endY;
31
+ endY = tmp;
32
+ }
33
+ var rise:Number = endY - startY;
34
+ var run:Number = endX - startX;
35
+ var length:Number = Math.sqrt(rise*rise + run*run);
36
+ var angle:Number = Math.atan(rise/run);
37
+ var sizeX:Number = size * Math.cos(angle);
38
+ var sizeY:Number = size * Math.sin(angle);
39
+ var curX:Number = startX, curY:Number = startY;
40
+ theGraphics.moveTo(startX, startY);
41
+ var rising:Boolean = true;
42
+ if(curY < endY) rising = false;
43
+ if(curX == endX){ // vertical line
44
+ while(curY < endY){
45
+ curY += sizeY; if( curY > endY) curY = endY;
46
+ theGraphics.lineTo(curX, curY);
47
+ curY += sizeY; if( curY > endY) curY = endY;
48
+ theGraphics.moveTo(curX, curY);
49
+ }
50
+ }
51
+ else{
52
+ while(curX < endX ){
53
+ curX+= sizeX;
54
+ curY+= sizeY;
55
+ if(curX > endX) curX = endX;
56
+ if(! rising){ // stop and start line at the right place
57
+ if(curY > endY) curY = endY;
58
+ }
59
+ else{
60
+ if(curY < endY){
61
+ curY = endY;
62
+ }
63
+ }
64
+ theGraphics.lineTo(curX,curY); // a dash
65
+ curX+= sizeX;
66
+ curY+= sizeY;
67
+ if(! rising){ // stop and star the line at the right place
68
+ if(curY > endY) curY = endY;
69
+ }
70
+ else{
71
+ if(curY < endY){
72
+ curY = endY;
73
+ }
74
+ }
75
+ theGraphics.moveTo(curX, curY); // a space
76
+ }
77
+ }
78
+ if(switched){
79
+ theGraphics.moveTo(startX, startY); // this originally was the end, where the next line wants to pick up from
80
+ }
81
+ }
82
+ }
83
+ }
@@ -0,0 +1,27 @@
1
+ /* See the file "LICENSE.txt" for the full license governing this code. */
2
+ package nm.draw.shapes {
3
+ import flash.display.MovieClip;
4
+ import flash.display.Sprite;
5
+ import nm.draw.Draw;
6
+ public class Check
7
+ {
8
+ static public function draw(targ:MovieClip, x:Number, y:Number, w:Number, h:Number, fill:Number, stroke:Number, alpha:Number):void
9
+ {
10
+ if(isNaN(alpha)) alpha = 100
11
+ // make sure the stroke is reasonable
12
+ if(stroke > h/2 || stroke > w/2) stroke = (h >= w) ? h/2 : w/2
13
+ // keep the check box inside the bounding box by manipulating x,y,h,w to compensate
14
+ var hS:Number = stroke/2
15
+ x = x + hS;
16
+ y = y + hS;
17
+ w = w - stroke;
18
+ h = h - stroke
19
+ Draw.drawArray(targ,new Array(
20
+ {t:'LS', s:stroke, c:fill, a:alpha, ph:false, scale:true, cap:"round", j:"round", m:2},
21
+ {t:'M',x:x,y:y+h/2},
22
+ {x:x+w/3,y:y+h},
23
+ {x:w+x,y:y}
24
+ ));
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,12 @@
1
+ /* See the file "LICENSE.txt" for the full license governing this code. */
2
+ package nm.draw.shapes{
3
+ import flash.display.Sprite;
4
+ import nm.draw.Draw;
5
+ public class Rect
6
+ {
7
+ static public function draw(target:Sprite, x:Number, y:Number, w:Number, h:Number, fill:Number = 0, alpha:Number = 1):void
8
+ {
9
+ Draw.drawArray(target, new Array({t:'R', x:x, y:y, w:w, h:h}), fill, alpha);
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,35 @@
1
+ /* See the file "LICENSE.txt" for the full license governing this code. */
2
+ package nm.draw.shapes{
3
+ import flash.display.DisplayObject;
4
+ import flash.display.Sprite
5
+ import nm.draw.Draw;
6
+ public class RectBevel{
7
+ static public function draw(target:Sprite, x:Number, y:Number, w:Number, h:Number, thickness:Number, TopColor:Number, BottomColor:Number):void {
8
+ w += x; //Adjust values of w and h to take
9
+ h += y; //into acount x and y
10
+ var p1:Object = {x:w-thickness, y:y+thickness}
11
+ var p2:Object = {x:w, y:y}
12
+ var p3:Object = {x:x+thickness, y:h-thickness}
13
+ var p4:Object = {x:x, y:h}
14
+ Draw.drawArray(target, new Array(
15
+ {t:'SC', c:TopColor, a:100},
16
+ {t:'M',x:x,y:y},
17
+ p2,
18
+ p1,
19
+ {x:x+thickness,y:y+thickness},
20
+ p3,
21
+ p4,
22
+ {x:x,y:y},
23
+ {t:'SC', c:BottomColor, a:100},
24
+ {t:'M',x:w,y:h},
25
+ p2,
26
+ p1,
27
+ {x:w-thickness,y:h-thickness},
28
+ p3,
29
+ p4,
30
+ {x:w,y:h}
31
+ )
32
+ );
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,39 @@
1
+ /* See the file "LICENSE.txt" for the full license governing this code. */
2
+ /*
3
+ * Code written by Ian Turgeon
4
+ NewMedia - Course Development & Web Services - University of Central Florida
5
+ newmedia.cdws.ucf.edu cdws.ucf.edu ucf.edu
6
+ Unless expicetely given permission, you are prohibited from using this code or any derrivitives of it.
7
+ This code is provided as is and it's creators are not responsible for support or continuing development in any way.
8
+ */
9
+ package nm.draw.shapes{
10
+ import nm.draw.Draw
11
+ import flash.display.Sprite
12
+ public class RectBorder{
13
+ /**
14
+ * Draw a rectangular border
15
+ * @param targ[MovieClip] Target scope to draw on
16
+ * @param x[Number] X coordinate to start drawing the upper left corner at
17
+ * @param y[Number] Y coordinate to start drawwing the upper left corner at
18
+ * @param w[Number] Width of the rectangle
19
+ * @param h[Number] Height of the rectangle
20
+ * @param stroke[Number] Inward pixel width of the border
21
+ * @param fill[] Either a Numeric color or a gradient fill object
22
+ * @param alpha[Number] Alpha to draw the fill at
23
+ */
24
+ static public function draw(targ:Sprite, x:Number, y:Number, w:Number, h:Number, stroke:Number, fill:Number, alpha:Number = 1):void{
25
+ Draw.drawArray(targ,new Array(
26
+ {t:'M', x:x, y:y},
27
+ {x:w+x, y:y},
28
+ {x:w+x, y:y+h},
29
+ {x:x, y:y+h},
30
+ {x:x,y:y},
31
+ {t:'M', x:x+stroke, y:y+stroke},
32
+ {x:x+w-stroke, y:y+stroke},
33
+ {x:x+w-stroke, y:y+h-stroke},
34
+ {x:x+stroke, y:y+h-stroke},
35
+ {x:x+stroke, y:y+stroke}
36
+ ) ,fill, alpha);
37
+ }
38
+ }
39
+ }
@@ -0,0 +1,33 @@
1
+ /* See the file "LICENSE.txt" for the full license governing this code. */
2
+ package nm.draw.shapes {
3
+ import flash.display.Sprite;
4
+ import nm.draw.Draw;
5
+ public class RectRound{
6
+ static public function draw(targ:Sprite, x:Number, y:Number, w:Number, h:Number, radius:*, fill:Object=0, lineStyle:Array=null, alpha:Number=100):void{
7
+ var arr:Array = new Array()
8
+ var r1:Number
9
+ var r2:Number
10
+ var r3:Number
11
+ var r4:Number
12
+ // if r is a Number, use as3 graphics.drawRoundRect
13
+ if(radius is Number) {
14
+ var rNum:Number = Number(radius);
15
+ arr.push({t:'RR', x:x, y:y, w:w, h:h, ew:rNum*2, eh:rNum*2});
16
+ }
17
+ // if r is an array, use each of the four values for each corner
18
+ else{
19
+ var rArr:Array = radius as Array;
20
+ if(lineStyle != null) arr.push({t:'LS', s:lineStyle[0], c:lineStyle[1], a:lineStyle[2] == null ? 1 : lineStyle[2], ph:lineStyle[3], scale:lineStyle[4], cap:lineStyle[5], j:lineStyle[6], m:lineStyle[7]});
21
+ arr.push({t:'M', x:x, y:y+rArr[0]}) // move to the first point below the top left curve
22
+ arr.push({t:'C', cx:x, cy:y, x:x+rArr[0], y:y}) // curve the top left corner
23
+ arr.push({x:x+w-rArr[1], y:y}) // line to the top right corner
24
+ arr.push({t:'C',cx:x+w, cy:y, x:x+w, y:y+rArr[1]}) // curve for the top right corner
25
+ arr.push({x:x+w, y:y+h-rArr[2]}) // line to the bottom right
26
+ arr.push({t:'C', cx:x+w, cy:y+h, x:x+w-rArr[2], y:y+h}) // curve for the botton right
27
+ arr.push({x:x+rArr[3], y:y+h}) // line to the bottom left corner
28
+ arr.push({t:'C', cx:x, cy:y+h, x:x, y:y+h-rArr[3]}) // curve for the bottom left
29
+ }
30
+ Draw.drawArray(targ, arr, fill, alpha); // send the drawing array to the drawing class
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,62 @@
1
+ /* See the file "LICENSE.txt" for the full license governing this code. */
2
+ /*
3
+ * Code written by Anthony Reyes
4
+ NewMedia - Course Development & Web Services - University of Central Florida
5
+ newmedia.cdws.ucf.edu cdws.ucf.edu ucf.edu
6
+ Unless expicetely given permission, you are prohibited from using this code or any derrivitives of it.
7
+ This code is provided as is and it's creators are not responsible for support or continuing development in any way.
8
+ */
9
+ package nm.draw.shapes {
10
+ import flash.display.Sprite;
11
+ import nm.draw.Draw;
12
+ public class RectRoundBorder{
13
+ /**
14
+ * Draw a rectangular border
15
+ * @param targ[MovieClip] Target scope to draw on
16
+ * @param x[Number] X coordinate to start drawing the upper left corner at
17
+ * @param y[Number] Y coordinate to start drawwing the upper left corner at
18
+ * @param w[Number] Width of the rectangle
19
+ * @param h[Number] Height of the rectangle
20
+ * @param stroke[Number] Inward pixel width of the border
21
+ * @param fill[] Either a Numeric color or a gradient fill object
22
+ * @param alpha[Number] Alpha to draw the fill at
23
+ */
24
+ public static function draw(targ:Sprite, x:Number, y:Number, w:Number, h:Number, stroke:Number, radius:*, fill:Number, alpha:Number):void{
25
+ var r1:Number
26
+ var r2:Number
27
+ var r3:Number
28
+ var r4:Number
29
+ var r5:Number
30
+ // if r is a Number, use that value for all 4 corners
31
+ if(radius is Number) {
32
+ var rNum:Number = Number(radius);
33
+ r2 = r3 = r4 = r1 = rNum;
34
+ }
35
+ else{
36
+ var rArr:Array = radius as Array;
37
+ r1 = rArr[0] // top left
38
+ r2 = rArr[1] // top right
39
+ r3 = rArr[2] // bottom right
40
+ r4 = rArr[3] // bottom left
41
+ }
42
+ Draw.drawArray(targ,new Array(
43
+ {t:'M', x:x, y:y+r1},
44
+ {t:'C', cx:x, cy:y, x:x+r1, y:y},
45
+ {x:x+w-r2, y:y},
46
+ {t:'C', cx:x+w, cy:y, x:x+w, y:y+r2},
47
+ {x:x+w, y:y+h-r3},
48
+ {t:'C', cx:x+w, cy:y+h, x:x+w-r3, y:y+h},
49
+ {x:x+r4, y:y+h},
50
+ {t:'C', cx:x, cy:y+h, x:x, y:y+h-r4},
51
+ {t:'M', x:x+stroke, y:y+r1+stroke}, /* move to the first point below the top left curve */
52
+ {t:'C', cx:x+stroke, cy:y+stroke, x:x+r1+stroke, y:y+stroke}, /* curve the top left corner */
53
+ {x:x+w-r2-stroke, y:y+stroke}, /* line to the top right corner */
54
+ {t:'C', cx:x+w-stroke, cy:y+stroke, x:x+w-stroke, y:y+r2+stroke}, /* curve for the top right corner */
55
+ {x:x+w-stroke, y:y+h-r3-stroke}, /* line to the bottom right */
56
+ {t:'C', cx:x+w-stroke, cy:y+h-stroke, x:x+w-r3-stroke, y:y+h-stroke}, /* curve for the botton right */
57
+ {x:x+r4+stroke, y:y+h-stroke}, /* line to the bottom left corner */
58
+ {t:'C', cx:x+stroke, cy:y+h-stroke, x:x+stroke, y:y+h-r4-stroke} /* curve for the bottom left */
59
+ ) ,fill, alpha);
60
+ }
61
+ }
62
+ }
@@ -0,0 +1,25 @@
1
+ /* See the file "LICENSE.txt" for the full license governing this code. */
2
+ package nm.draw.shapes{
3
+ import nm.draw.Draw
4
+ import flash.display.Sprite
5
+ public class TriangleEquilateral{
6
+ static public function draw(targ:Sprite, direction:String, x:Number, y:Number, w:Number, h:Number, fill:Number = 0, alpha:Number = 100):void{
7
+ var arr:Array
8
+ switch(direction){
9
+ case 'up':
10
+ arr = [{t:'M', x:x, y:y+h}, {x:x+w, y:y+h}, {x:x+w/2,y:y}]
11
+ break;
12
+ case 'down':
13
+ arr = [{t:'M', x:x, y:y}, {x:x+w, y:y}, {x:x+w/2,y:y+h}]
14
+ break;
15
+ case 'right':
16
+ arr = [{t:'M', x:x, y:y}, {x:x, y:y+h}, {x:x+w,y:y+h/2}]
17
+ break;
18
+ case 'left':
19
+ arr = [{t:'M', x:x+w, y:y}, {x:x+w, y:y+h}, {x:x,y:y+h/2}]
20
+ break;
21
+ }
22
+ Draw.drawArray(targ,arr, fill, alpha);
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,28 @@
1
+ /* See the file "LICENSE.txt" for the full license governing this code. */
2
+ package nm.draw.shapes {
3
+ import flash.display.MovieClip;
4
+ import flash.display.Sprite;
5
+ import nm.draw.Draw;
6
+ public class X
7
+ {
8
+ static public function draw(targ:MovieClip, x:Number, y:Number, w:Number, h:Number, fill:Number, stroke:Number, alpha:Number):void
9
+ {
10
+ if(isNaN(alpha)) alpha = 100
11
+ // make sure the stroke is reasonable
12
+ if(stroke > h/2 || stroke > w/2) stroke = (h >= w) ? h/2 : w/2
13
+ // keep the check box inside the bounding box by manipulating x,y,h,w to compensate
14
+ var hS:Number = stroke/2
15
+ x = x + hS;
16
+ y = y + hS;
17
+ w = w - stroke;
18
+ h = h - stroke
19
+ Draw.drawArray(targ,new Array(
20
+ {t:'LS', s:stroke, c:fill, a:alpha, ph:false, scale:true, cap:"round", j:"round", m:2},
21
+ {t:'M',x:x,y:y},
22
+ {x:x+w,y:y+h},
23
+ {t:'M',x:x,y:y+h},
24
+ {x:w+x,y:y}
25
+ ));
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,10 @@
1
+ package nm.errors
2
+ {
3
+ public class ScoringError extends Error
4
+ {
5
+ public function ScoringError(message:* = "", id:* = 0)
6
+ {
7
+ super(message, id);
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,10 @@
1
+ package nm.errors
2
+ {
3
+ public class StorageError extends Error
4
+ {
5
+ public function StorageError(message:* = "", id:* = 0)
6
+ {
7
+ super(message, id);
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,25 @@
1
+ /* See the file "LICENSE.txt" for the full license governing this code. */
2
+ package nm.events
3
+ {
4
+ import flash.events.Event;
5
+ /**
6
+ * Handles events sent by the Button_base class
7
+ * @author Anthony Reyes
8
+ */
9
+ public class ButtonEvent extends Event
10
+ {
11
+ public static var PRESSED:String = "button-pressed";
12
+ public function ButtonEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
13
+ {
14
+ super(type, bubbles, cancelable);
15
+ }
16
+ public override function clone():Event
17
+ {
18
+ return new ButtonEvent(type, bubbles, cancelable);
19
+ }
20
+ public override function toString():String
21
+ {
22
+ return formatToString("ButtonEvent", "type", "bubbles", "cancelable", "eventPhase");
23
+ }
24
+ }
25
+ }
@@ -0,0 +1,14 @@
1
+ /* See the file "LICENSE.txt" for the full license governing this code. */
2
+ package nm.events
3
+ {
4
+ import flash.events.Event;
5
+ public class PayloadEvent extends Event
6
+ {
7
+ public var payload:Object
8
+ public function PayloadEvent(type:String, payload:Object, bubbles:Boolean=false, cancelable:Boolean=false)
9
+ {
10
+ super(type, bubbles, cancelable);
11
+ this.payload = payload
12
+ }
13
+ }
14
+ }
@@ -0,0 +1,26 @@
1
+ /* See the file "LICENSE.txt" for the full license governing this code. */
2
+ package nm.events
3
+ {
4
+ import flash.events.Event;
5
+ /**
6
+ * ...
7
+ * @author Luis Estrada
8
+ */
9
+ public class StandardEvent extends Event
10
+ {
11
+ public var result:*;
12
+ public function StandardEvent(type:String, result:*, bubbles:Boolean=false, cancelable:Boolean=false)
13
+ {
14
+ super(type, bubbles, cancelable);
15
+ this.result = result;
16
+ }
17
+ public override function clone():Event
18
+ {
19
+ return new StandardEvent(type, result, bubbles, cancelable);
20
+ }
21
+ public override function toString():String
22
+ {
23
+ return formatToString("StandardEvent2", "type", "result", "bubbles", "cancelable", "eventPhase");
24
+ }
25
+ }
26
+ }