mako 0.0.0
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.
- data/bin/mako +133 -0
- data/lib/mako/build.rb +336 -0
- data/lib/mako/data/flash_widget_dev_core/Dependencies.txt +10 -0
- data/lib/mako/data/flash_widget_dev_core/libs/Degrafa_.2.11.swc +0 -0
- data/lib/mako/data/flash_widget_dev_core/libs/KogneatoGraphics.swc +0 -0
- data/lib/mako/data/flash_widget_dev_core/libs/KogneatoSymbols.swc +0 -0
- data/lib/mako/data/flash_widget_dev_core/libs/flash.swc +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/images/RichTextEditor.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/fonts/ARLRDBD.TTF +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/fonts/FTD_____.TTF +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/fonts/verdana.ttf +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/fonts/verdanab.ttf +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/fonts/verdanai.ttf +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/fonts/verdanaz.ttf +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/DefaultError.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/barbgfill.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/barshadow.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/bold.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/bullets.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/center.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/close-x.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/fullscreenPopup_close.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/gameTypeIcons/mc.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/gameTypeIcons/mc2.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/gameTypeIcons/mc3.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/gameTypeIcons/qa.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/gameTypeIcons/so.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/importIcon.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/italic.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/justify.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/kogLogo.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/left.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-href-disabled.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-href.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-pagelink-disabled.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-pagelink.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-tooltip-delete.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-tooltip-disabled.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-tooltip-edit.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/oml-tooltip.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/pencil.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/right.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/underline.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayButton.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerPauseButton.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerPauseButton_over.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerPlayButton.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerPlayButton_over.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerSoundButton.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/images/videoPlayerSoundButton_over.png +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/styles/creatorStyle.css +57 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/styles/style.css +929 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/swf/embeddedfonts.swf +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/swf/helpBubble.swf +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/swf/kogneatoSymbols.swf +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/assets/materia/swf/videobg.swf +0 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/LICENSE.txt +27 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/CubeRotate.as +48 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/Distortion.as +168 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/DistortionConstants.as +16 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/Door.as +57 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/Flip.as +62 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/Gate.as +57 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/Pop.as +53 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/Push.as +48 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/SimpleDistortion.as +619 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/CubeRotateInstance.as +94 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/DistortBaseInstance.as +258 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/DoorInstance.as +116 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/FlipInstance.as +79 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/GateInstance.as +163 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/PopInstance.as +91 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/PushInstance.as +76 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/util/DisplayObjectBounds.as +64 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/util/DisplayObjectBoundsUtil.as +42 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/util/SimpleDisplayObjectBoundsUtil.as +60 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/HMAC.as +108 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/MD5.as +250 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/MD5Stream.as +343 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/SHA1.as +250 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/SHA224.as +226 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/SHA256.as +229 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/crypto/WSSEUsernameToken.as +100 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/effects/SaturationFade.as +107 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/effects/SaturationFadeInstance.as +178 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/effects/SaturationFadePopUpBlocker.as +88 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/errors/IllegalStateError.as +57 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/fileformats/vcard/Address.as +41 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/fileformats/vcard/Email.as +34 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/fileformats/vcard/Phone.as +34 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/fileformats/vcard/VCard.as +47 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/fileformats/vcard/VCardParser.as +234 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/images/BitString.as +34 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/images/JPGEncoder.as +584 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/images/PNGEncoder.as +133 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/net/DynamicURLLoader.as +48 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/net/IURIResolver.as +70 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/net/MimeTypeMap.as +192 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/net/URI.as +2139 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/net/URIEncodingBitmap.as +122 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/net/proxies/RFC2817Socket.as +179 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/Database.as +55 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/Definition.as +59 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/Dict.as +322 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/DictionaryServer.as +50 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/MatchStrategy.as +55 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/Response.as +59 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/ConnectedEvent.as +44 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/DatabaseEvent.as +54 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/DefinitionEvent.as +55 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/DefinitionHeaderEvent.as +55 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/DictionaryServerEvent.as +55 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/DisconnectedEvent.as +44 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/ErrorEvent.as +64 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/MatchEvent.as +54 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/MatchStrategiesEvent.as +56 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/events/NoMatchEvent.as +44 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/util/CompleteResponseEvent.as +55 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/protocols/dict/util/SocketHelper.as +70 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSON.as +76 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSONDecoder.as +303 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSONEncoder.as +277 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSONParseError.as +79 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSONToken.as +79 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSONTokenType.as +49 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/serialization/json/JSONTokenizer.as +605 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/ArrayUtil.as +166 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/DateUtil.as +657 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/DictionaryUtil.as +73 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/IntUtil.as +85 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/NumberFormatter.as +63 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/StringUtil.as +220 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/utils/XMLUtil.as +148 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/webapis/ServiceBase.as +39 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/webapis/URLLoaderBase.as +93 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/adobe/webapis/events/ServiceEvent.as +67 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/geom/ColorMatrix.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/GTween.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/GTweenTimeline.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/GTweener.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Back.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Bounce.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Circular.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Cubic.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Elastic.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Exponential.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Linear.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Quadratic.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Quartic.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Quintic.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/easing/Sine.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/AutoHidePlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/BlurPlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/ColorAdjustPlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/ColorTransformPlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/CurrentFramePlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/IGTweenPlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/MatrixPlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/MotionBlurPlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/SmartRotationPlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/SnappingPlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/SoundTransformPlugin.as +1 -0
- data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/utils/SWFBridgeAS3.as +83 -0
- data/lib/mako/data/flash_widget_dev_core/src/etc/GUID.as +82 -0
- data/lib/mako/data/flash_widget_dev_core/src/etc/MathExt.as +114 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/OverwriteManager.as +143 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/TweenFilterLite.as +502 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/TweenLite.as +512 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/TweenMax.as +987 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Back.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Bounce.as +22 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Circ.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Cubic.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Elastic.as +27 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Expo.as +16 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Linear.as +16 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Quad.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Quart.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Quint.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Sine.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/Strong.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/easing/easing_readme.txt +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/events/TweenEvent.as +26 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/BevelFilterVars.as +63 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/BlurFilterVars.as +42 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/ColorMatrixFilterVars.as +86 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/DropShadowFilterVars.as +66 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/GlowFilterVars.as +57 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/TweenFilterLiteVars.as +93 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/TweenLiteVars.as +269 -0
- data/lib/mako/data/flash_widget_dev_core/src/gs/utils/tween/TweenMaxVars.as +103 -0
- data/lib/mako/data/flash_widget_dev_core/src/it/animation/TweenEvent.as +17 -0
- data/lib/mako/data/flash_widget_dev_core/src/it/animation/TweenObject.as +27 -0
- data/lib/mako/data/flash_widget_dev_core/src/it/animation/TweenSingleton.as +86 -0
- data/lib/mako/data/flash_widget_dev_core/src/it/animation/methods/Constant.as +7 -0
- data/lib/mako/data/flash_widget_dev_core/src/it/animation/methods/FastSlow.as +7 -0
- data/lib/mako/data/flash_widget_dev_core/src/it/animation/methods/FastSlowFast.as +8 -0
- data/lib/mako/data/flash_widget_dev_core/src/it/animation/methods/Shake.as +12 -0
- data/lib/mako/data/flash_widget_dev_core/src/it/animation/methods/SlowFast.as +7 -0
- data/lib/mako/data/flash_widget_dev_core/src/it/animation/methods/SlowFastSlow.as +8 -0
- data/lib/mako/data/flash_widget_dev_core/src/jac/image/ImageUtils.as +173 -0
- data/lib/mako/data/flash_widget_dev_core/src/jac/image/ResizeStyle.as +52 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/CreatorBase.mxml +504 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/CreatorConfig.as +45 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/CreatorEvents.as +38 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/Dialog.as +35 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/MateriaButton.as +35 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/PopUpAlert.mxml +271 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/GradientBackground.as +41 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/PercentField.mxml +104 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/ScrollableSizableImage.mxml +654 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/TextAreaWithDefaultText.mxml +94 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/TextInputWithDefaultText.mxml +94 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/VertCenterTextRenderer.mxml +37 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/importer/ImportEvent.as +22 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/importer/itemRenderers/CheckBoxColumn.mxml +23 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/importer/questions/QuestionDetails.mxml +68 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/importer/questions/QuestionDisplay.mxml +38 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/importer/questions/QuestionsDataGrid.mxml +247 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/importer/questions/QuestionsDataGridEvent.as +20 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/questionAnswerDataGrid/QuestionAnswerColumn.as +13 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/questionAnswerDataGrid/QuestionAnswerDataGrid.mxml +692 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/questionAnswerDataGrid/TextInputItem.mxml +584 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/questionAnswerDataGrid/TextInputObject.as +28 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/toolTips/KogneatoToolTip.as +196 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/components/toolTips/TipManager.as +150 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/help/HelpBubble.mxml +245 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/help/HelpDot.mxml +21 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/help/HelpManager.as +92 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/help/HelpObject.as +33 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/help/IHelpGuided.as +7 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/media/ImageCacherImage.mxml +56 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/media/MateriaUploader.as +61 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/questionStorage/Question.as +386 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/questionStorage/QuestionGroup.as +313 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/questionStorage/QuestionSet.as +21 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/toolTips/KogneatoToolTip.as +196 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/toolTips/TipManager.as +150 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/utils/CommonUtils.as +186 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/utils/DateUtils.as +273 -0
- data/lib/mako/data/flash_widget_dev_core/src/materia/utils/ImageCacher.as +93 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/arrays/Randomize.as +19 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/arrays/SimpleClone.as +32 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/Color.as +102 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/Draw.as +65 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/lines/Dashed.as +48 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/lines/Dotted.as +83 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/Check.as +27 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/Rect.as +12 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/RectBevel.as +35 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/RectBorder.as +39 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/RectRound.as +33 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/RectRoundBorder.as +62 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/TriangleEquilateral.as +25 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/draw/shapes/X.as +28 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/errors/ScoringError.as +10 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/errors/StorageError.as +10 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/events/ButtonEvent.as +25 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/events/PayloadEvent.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/events/StandardEvent.as +26 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/Question.as +72 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/QuestionGroup.as +87 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/QuestionSet.as +35 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/WidgetSettings.as +14 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/coms/ServerEvents.as +17 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/coms/ServerMessageEvent.as +31 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/logging/Log.as +92 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/scoring/Scoring.as +87 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/storage/StorageManager.as +91 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/common/storage/StorageTable.as +72 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/gameServ/engines/EngineCore.as +222 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/geom/Dimension.as +76 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/respondus/Respondus.as +612 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/respondus/RespondusAnswer.as +11 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/respondus/RespondusError.as +18 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/respondus/RespondusQuestion.as +43 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/respondus/RespondusQuiz.as +68 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/AlertWindow.as +182 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/BlueButton.as +102 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/Button.as +88 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/Button_base.as +168 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/Component.as +98 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ContentBlocker.as +38 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/FlexUIScaler.as +59 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/FormInput.as +191 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/GrabZoomClip.as +305 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/HelpLayer.as +55 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/Label.as +25 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/List.as +62 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/List_Base.as +644 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ProcessingBar.as +112 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ProgressBar.as +35 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ProgressBar_base.as +69 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ScrollBar.as +163 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ScrollBar_base.as +378 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ScrollClip.as +468 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ScrollText.as +29 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ScrollText_base.as +295 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/SimpleScrollBar.as +247 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/StageRef.as +34 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/StorageTank.as +233 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/StorageTankHorizontal.as +109 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/ToolTip.as +930 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/TweeningDragDropBankList.as +503 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/Window.as +144 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/Window_base.as +385 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/layout/CenterScale.as +27 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/layout/WindowManager.as +163 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/ui/layout/WindowStage.as +96 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/util/BitField.as +99 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/util/ObjPeek.as +148 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/util/Objects.as +49 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/util/Printer.as +548 -0
- data/lib/mako/data/flash_widget_dev_core/src/nm/util/StringUtil.as +12 -0
- data/lib/mako/data/flash_widget_dev_core/src/org/rubyamf/remoting/ssr/FaultEvent.as +37 -0
- data/lib/mako/data/flash_widget_dev_core/src/org/rubyamf/remoting/ssr/RemotingCall.as +211 -0
- data/lib/mako/data/flash_widget_dev_core/src/org/rubyamf/remoting/ssr/RemotingConnection.as +41 -0
- data/lib/mako/data/flash_widget_dev_core/src/org/rubyamf/remoting/ssr/RemotingService.as +214 -0
- data/lib/mako/data/flash_widget_dev_core/src/org/rubyamf/remoting/ssr/ResultEvent.as +36 -0
- data/lib/mako/data/flash_widget_dev_core/src/sandy/util/DistortImage.as +281 -0
- data/lib/mako/data/flash_widget_dev_core/src/sandy/util/SandyPoint.as +29 -0
- data/lib/mako/data/flash_widget_dev_core/src/sandy/util/Triangle.as +32 -0
- data/lib/mako/data/html/thistest.html +0 -0
- data/lib/mako/data/template_creator/src/Creator.mxml +138 -0
- data/lib/mako/data/template_creator/src/assets/images/RichTextEditor.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/DefaultError.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/barbgfill.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/barshadow.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/bold.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/bullets.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/center.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/close-x.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/fullscreenPopup_close.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/importIcon.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/italic.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/justify.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/left.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-href-disabled.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-href.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-pagelink-disabled.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-pagelink.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip-delete.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip-disabled.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip-edit.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/oml-tooltip.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/pencil.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/right.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/underline.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayButton.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPauseButton.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPauseButton_over.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPlayButton.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerPlayButton_over.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerSoundButton.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/images/videoPlayerSoundButton_over.png +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/styles/creatorStyle.css +63 -0
- data/lib/mako/data/template_creator/src/assets/materia/styles/style.css +1127 -0
- data/lib/mako/data/template_creator/src/assets/materia/swf/embeddedfonts.swf +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/swf/helpBubble.swf +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/swf/kogneatoSymbols.swf +0 -0
- data/lib/mako/data/template_creator/src/assets/materia/swf/videobg.swf +0 -0
- data/lib/mako/data/template_creator/src/components/SmallRichTextEditor.mxml +678 -0
- data/lib/mako/data/template_creator/src/components/SmallRichTextEditorToolbar.mxml +133 -0
- data/lib/mako/data/templates/html/README.md +11 -0
- data/lib/mako/data/templates/html/_creator/build.yaml +12 -0
- data/lib/mako/data/templates/html/_creator/creator.html +19 -0
- data/lib/mako/data/templates/html/_creator/css/creator.less +29 -0
- data/lib/mako/data/templates/html/_creator/js/creator.coffee +122 -0
- data/lib/mako/data/templates/html/_creator/test.html +0 -0
- data/lib/mako/data/templates/html/_engine/build.yaml +12 -0
- data/lib/mako/data/templates/html/_engine/css/widget.scss +18 -0
- data/lib/mako/data/templates/html/_engine/js/widget.coffee +143 -0
- data/lib/mako/data/templates/html/_engine/widget.html +21 -0
- data/lib/mako/data/templates/html/_icons/icon-275.png +0 -0
- data/lib/mako/data/templates/html/_icons/icon-394.png +0 -0
- data/lib/mako/data/templates/html/_icons/icon-60.png +0 -0
- data/lib/mako/data/templates/html/_icons/icon-92.png +0 -0
- data/lib/mako/data/templates/html/_score/score_module.php +48 -0
- data/lib/mako/data/templates/html/_score/test_score_module.php +157 -0
- data/lib/mako/data/templates/html/_screen-shots/1-thumb.png +0 -0
- data/lib/mako/data/templates/html/_screen-shots/1.png +0 -0
- data/lib/mako/data/templates/html/_screen-shots/2-thumb.png +0 -0
- data/lib/mako/data/templates/html/_screen-shots/2.png +0 -0
- data/lib/mako/data/templates/html/_screen-shots/3-thumb.png +0 -0
- data/lib/mako/data/templates/html/_screen-shots/3.png +0 -0
- data/lib/mako/data/templates/html/build.yaml +4 -0
- data/lib/mako/data/templates/html/demo.yaml +7 -0
- data/lib/mako/data/templates/html/install.yaml +94 -0
- data/lib/mako/path.rb +48 -0
- data/lib/mako/scaffold.rb +69 -0
- metadata +597 -0
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
|
|
3
|
+
cornerRadius="12"
|
|
4
|
+
borderStyle="solid"
|
|
5
|
+
borderThickness="0"
|
|
6
|
+
creationComplete="{onCreationComplete();}"
|
|
7
|
+
removedFromStage="{onRemovedFromStage();}"
|
|
8
|
+
styleName="alertPopup"
|
|
9
|
+
dropShadowEnabled="true"
|
|
10
|
+
minWidth="351"
|
|
11
|
+
>
|
|
12
|
+
<mx:Number id="minButtonWidth">60</mx:Number>
|
|
13
|
+
<mx:Text id="titleText" styleName="alertPopupTitle" text="{_title}" right="10"
|
|
14
|
+
height="42" left="10" top="11" textAlign="center" selectable="false"/>
|
|
15
|
+
<mx:VBox id="messageArea"
|
|
16
|
+
right="25"
|
|
17
|
+
left="25"
|
|
18
|
+
top="40"
|
|
19
|
+
bottom="55">
|
|
20
|
+
<mx:Text id="messageText"
|
|
21
|
+
width="100%"
|
|
22
|
+
text="{_message}"
|
|
23
|
+
textAlign="center"
|
|
24
|
+
selectable="false"/>
|
|
25
|
+
</mx:VBox>
|
|
26
|
+
<mx:HBox id="buttonHolder"
|
|
27
|
+
height="36" left="9" right="11" bottom="6"
|
|
28
|
+
horizontalAlign="center">
|
|
29
|
+
</mx:HBox>
|
|
30
|
+
<mx:Script>
|
|
31
|
+
<![CDATA[
|
|
32
|
+
import mx.controls.Button;
|
|
33
|
+
import mx.core.Application;
|
|
34
|
+
import mx.events.CloseEvent;
|
|
35
|
+
import mx.managers.PopUpManager;
|
|
36
|
+
protected static var TRACE_STRING:String = "PopUpAlert.mxml";
|
|
37
|
+
// parallel arrays to store button info
|
|
38
|
+
protected var _buttonCloseEventDetailsList:Array = null;
|
|
39
|
+
protected var _buttons:Array = null;
|
|
40
|
+
protected var _buttonCloseCallbacksList:Array; // an array of functions called when the associated button is pressed
|
|
41
|
+
protected var _buttonCloseCallbackArgsList:Array; // an array that keeps track of the args desired for each callback
|
|
42
|
+
protected var _indexOfCurrentSelectedButton:int = -1;
|
|
43
|
+
[Bindable] protected var _title:String = "Text";
|
|
44
|
+
[Bindable] protected var _message:String = "Text";
|
|
45
|
+
protected var _originalHeight:Number;
|
|
46
|
+
protected var _isCreationComplete:Boolean = false;
|
|
47
|
+
// a list of components to add to the messageArea on creation complete
|
|
48
|
+
protected var _componentsToInit:Array = null;
|
|
49
|
+
/// A shortcut for making popup messages with an ok button that dismisses the popup.
|
|
50
|
+
public static function quickMessagePopup(theTitle:String, theMessage:String, theParentStage:*):void
|
|
51
|
+
{
|
|
52
|
+
var p:PopUpAlert = new PopUpAlert();
|
|
53
|
+
p.title = theTitle;
|
|
54
|
+
p.message = theMessage;
|
|
55
|
+
p.addButton("OK",0);
|
|
56
|
+
p.show(theParentStage);
|
|
57
|
+
}
|
|
58
|
+
protected function onCreationComplete():void
|
|
59
|
+
{
|
|
60
|
+
_isCreationComplete = true;
|
|
61
|
+
_originalHeight = height;
|
|
62
|
+
makeSureButtonListsAreInit();
|
|
63
|
+
// there could be buttons waiting to be added
|
|
64
|
+
for(var i:int=0; i< _buttons.length; i++)
|
|
65
|
+
{
|
|
66
|
+
buttonHolder.addChild(_buttons[i]);
|
|
67
|
+
}
|
|
68
|
+
updateButtonSelection();
|
|
69
|
+
stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown, false, 0, true);
|
|
70
|
+
stage.focus = this;
|
|
71
|
+
if(_componentsToInit != null)
|
|
72
|
+
{
|
|
73
|
+
addAdditionalMessageComponents(_componentsToInit);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
protected function onKeyDown(e:KeyboardEvent):void
|
|
77
|
+
{
|
|
78
|
+
//trace(TRACE_STRING + "::onKeyDown");
|
|
79
|
+
if(e.keyCode == Keyboard.ENTER) // press the current selected button
|
|
80
|
+
{
|
|
81
|
+
pressCurrentButton();
|
|
82
|
+
}
|
|
83
|
+
else if(e.keyCode == Keyboard.LEFT)
|
|
84
|
+
{
|
|
85
|
+
moveSelectionLeft();
|
|
86
|
+
}
|
|
87
|
+
else if(e.keyCode == Keyboard.RIGHT)
|
|
88
|
+
{
|
|
89
|
+
moveSelectionRight();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
protected function onRemovedFromStage():void
|
|
93
|
+
{
|
|
94
|
+
//trace(TRACE_STRING + "::onRemovedFromStage");
|
|
95
|
+
for(var i:int =0; i< _buttons.length; i++)
|
|
96
|
+
{
|
|
97
|
+
(_buttons[i] as Button).removeEventListener(MouseEvent.CLICK, onButtonClick);
|
|
98
|
+
}
|
|
99
|
+
stage.removeEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
|
|
100
|
+
}
|
|
101
|
+
protected function updateButtonSelection():void
|
|
102
|
+
{
|
|
103
|
+
for(var i:int = 0; i< _buttons.length; i++)
|
|
104
|
+
{
|
|
105
|
+
if(_indexOfCurrentSelectedButton == i)
|
|
106
|
+
{
|
|
107
|
+
(_buttons[i] as Button).styleName = "blueButton";
|
|
108
|
+
}
|
|
109
|
+
else
|
|
110
|
+
{
|
|
111
|
+
(_buttons[i] as Button).styleName = "DefaultButton";
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
public function set message(message:String):void
|
|
116
|
+
{
|
|
117
|
+
_message = message;
|
|
118
|
+
}
|
|
119
|
+
public function set title(title:String):void
|
|
120
|
+
{
|
|
121
|
+
_title = title;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Adds a button to the popup.
|
|
125
|
+
* Clicking the button will close the popup. And fire a close event with .details = closeEventDetails.
|
|
126
|
+
* isDefault will specify if the button will be the defaul selected button for pressing with the enter key.
|
|
127
|
+
* */
|
|
128
|
+
public function addButton(label:String, closeEventDetails:int, isDefault:Boolean = false):void
|
|
129
|
+
{
|
|
130
|
+
var b:Button = new Button();
|
|
131
|
+
b.minWidth = minButtonWidth;
|
|
132
|
+
b.label = label;
|
|
133
|
+
makeSureButtonListsAreInit();
|
|
134
|
+
_buttonCloseEventDetailsList.push(closeEventDetails);
|
|
135
|
+
_buttonCloseCallbacksList.push(null);
|
|
136
|
+
_buttonCloseCallbackArgsList.push(null);
|
|
137
|
+
_buttons.push(b);
|
|
138
|
+
if(isDefault == true) // make this button the default selected
|
|
139
|
+
{
|
|
140
|
+
_indexOfCurrentSelectedButton = _buttons.length -1;
|
|
141
|
+
}
|
|
142
|
+
if(buttonHolder != null)
|
|
143
|
+
{
|
|
144
|
+
buttonHolder.addChild(b);
|
|
145
|
+
}
|
|
146
|
+
b.addEventListener(MouseEvent.CLICK, onButtonClick, false, 0, true);
|
|
147
|
+
}
|
|
148
|
+
public function addButtonWithCallback(label:String, closeCallback:Function, isDefault:Boolean = false, callbackArgs:Array = null):void
|
|
149
|
+
{
|
|
150
|
+
var b:Button = new Button();
|
|
151
|
+
b.minWidth = minButtonWidth;
|
|
152
|
+
b.label = label;
|
|
153
|
+
makeSureButtonListsAreInit();
|
|
154
|
+
_buttonCloseEventDetailsList.push(-1);
|
|
155
|
+
_buttonCloseCallbacksList.push(closeCallback);
|
|
156
|
+
_buttonCloseCallbackArgsList.push(callbackArgs);
|
|
157
|
+
_buttons.push(b);
|
|
158
|
+
if(isDefault == true) // make this button the default selected
|
|
159
|
+
{
|
|
160
|
+
_indexOfCurrentSelectedButton = _buttons.length -1;
|
|
161
|
+
}
|
|
162
|
+
if(buttonHolder != null)
|
|
163
|
+
{
|
|
164
|
+
buttonHolder.addChild(b);
|
|
165
|
+
}
|
|
166
|
+
b.addEventListener(MouseEvent.CLICK, onButtonClick, false, 0, true);
|
|
167
|
+
}
|
|
168
|
+
public function onButtonClick(e:MouseEvent):void
|
|
169
|
+
{
|
|
170
|
+
// get the index of the button
|
|
171
|
+
var index:int = getButtonIndex(e.currentTarget as Button);
|
|
172
|
+
mx.managers.PopUpManager.removePopUp(this);
|
|
173
|
+
if(_buttonCloseCallbacksList[index] != null)
|
|
174
|
+
{
|
|
175
|
+
var tt:Function;
|
|
176
|
+
_buttonCloseCallbacksList[index].apply(this, _buttonCloseCallbackArgsList[index]);
|
|
177
|
+
}
|
|
178
|
+
else
|
|
179
|
+
{
|
|
180
|
+
dispatchEvent(new CloseEvent(Event.CLOSE, false, false, _buttonCloseEventDetailsList[index]));
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* This will add the componets onto the message are of the popup.
|
|
185
|
+
*
|
|
186
|
+
*/
|
|
187
|
+
public function addAdditionalMessageComponents(theComponents:Array):void
|
|
188
|
+
{
|
|
189
|
+
if(messageArea != null)
|
|
190
|
+
{
|
|
191
|
+
function addComponent(item:*, index:int, array:Array):void
|
|
192
|
+
{
|
|
193
|
+
messageArea.addChild(item);
|
|
194
|
+
}
|
|
195
|
+
theComponents.forEach(addComponent);
|
|
196
|
+
}
|
|
197
|
+
else
|
|
198
|
+
{
|
|
199
|
+
// these will be initialized after creation complete
|
|
200
|
+
_componentsToInit = theComponents;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
public function show(parent:*):void
|
|
204
|
+
{
|
|
205
|
+
//trace("parent = " + parent);
|
|
206
|
+
if(parent == null)
|
|
207
|
+
{
|
|
208
|
+
//HACKEY but i dont know whats going on yet
|
|
209
|
+
parent = Application.application;
|
|
210
|
+
}
|
|
211
|
+
mx.managers.PopUpManager.addPopUp(this, parent, true);
|
|
212
|
+
mx.managers.PopUpManager.centerPopUp(this);
|
|
213
|
+
}
|
|
214
|
+
protected function getButtonIndex(b:Button):int
|
|
215
|
+
{
|
|
216
|
+
var index:int = -1;
|
|
217
|
+
for(var i:int =0; i< _buttons.length; i++)
|
|
218
|
+
{
|
|
219
|
+
if( _buttons[i] == b)
|
|
220
|
+
{
|
|
221
|
+
index = i;
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
return index;
|
|
226
|
+
}
|
|
227
|
+
protected function makeSureButtonListsAreInit():void
|
|
228
|
+
{
|
|
229
|
+
if(_buttons == null)
|
|
230
|
+
{
|
|
231
|
+
_buttons = [];
|
|
232
|
+
}
|
|
233
|
+
if(_buttonCloseEventDetailsList == null)
|
|
234
|
+
{
|
|
235
|
+
_buttonCloseEventDetailsList = [];
|
|
236
|
+
}
|
|
237
|
+
if(_buttonCloseCallbacksList == null)
|
|
238
|
+
{
|
|
239
|
+
_buttonCloseCallbacksList = [];
|
|
240
|
+
_buttonCloseCallbackArgsList = []
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
protected function pressCurrentButton():void
|
|
244
|
+
{
|
|
245
|
+
if(_indexOfCurrentSelectedButton != -1)
|
|
246
|
+
{
|
|
247
|
+
mx.managers.PopUpManager.removePopUp(this);
|
|
248
|
+
dispatchEvent(new CloseEvent(Event.CLOSE,false,false,_buttonCloseEventDetailsList[_indexOfCurrentSelectedButton]));
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
protected function moveSelectionRight():void
|
|
252
|
+
{
|
|
253
|
+
_indexOfCurrentSelectedButton++;
|
|
254
|
+
if(_indexOfCurrentSelectedButton >= _buttons.length)
|
|
255
|
+
{
|
|
256
|
+
_indexOfCurrentSelectedButton = _buttons.length-1;
|
|
257
|
+
}
|
|
258
|
+
updateButtonSelection();
|
|
259
|
+
}
|
|
260
|
+
protected function moveSelectionLeft():void
|
|
261
|
+
{
|
|
262
|
+
_indexOfCurrentSelectedButton--;
|
|
263
|
+
if(_indexOfCurrentSelectedButton < 0)
|
|
264
|
+
{
|
|
265
|
+
_indexOfCurrentSelectedButton = 0;
|
|
266
|
+
}
|
|
267
|
+
updateButtonSelection();
|
|
268
|
+
}
|
|
269
|
+
]]>
|
|
270
|
+
</mx:Script>
|
|
271
|
+
</mx:Canvas>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
package materia.components
|
|
2
|
+
{
|
|
3
|
+
import mx.skins.ProgrammaticSkin;
|
|
4
|
+
import flash.geom.Matrix;
|
|
5
|
+
public class GradientBackground extends ProgrammaticSkin
|
|
6
|
+
{
|
|
7
|
+
override public function get measuredWidth():Number
|
|
8
|
+
{
|
|
9
|
+
return 45;
|
|
10
|
+
}
|
|
11
|
+
override public function get measuredHeight():Number
|
|
12
|
+
{
|
|
13
|
+
return 45;
|
|
14
|
+
}
|
|
15
|
+
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
|
|
16
|
+
{
|
|
17
|
+
var fillColors:Array = getStyle("fillColors");
|
|
18
|
+
var fillAlphas:Array = getStyle("fillAlphas");
|
|
19
|
+
var gradientType:String = getStyle("gradientType");
|
|
20
|
+
var angle:Number = getStyle("angle");
|
|
21
|
+
var focalPointRatio:Number = getStyle("focalPointRatio");
|
|
22
|
+
// Default values, if styles aren’t defined
|
|
23
|
+
if (fillColors == null)
|
|
24
|
+
fillColors = [0xEEEEEE, 0x999999];
|
|
25
|
+
if (fillAlphas == null)
|
|
26
|
+
fillAlphas = [1, 1];
|
|
27
|
+
if (gradientType == "" || gradientType == null)
|
|
28
|
+
gradientType = "linear";
|
|
29
|
+
if (isNaN(angle))
|
|
30
|
+
angle = 90;
|
|
31
|
+
if (isNaN(focalPointRatio))
|
|
32
|
+
focalPointRatio = 0.5;
|
|
33
|
+
var matrix:Matrix = new Matrix();
|
|
34
|
+
matrix.createGradientBox(unscaledWidth, unscaledHeight, angle * Math.PI / 180);
|
|
35
|
+
graphics.clear();
|
|
36
|
+
graphics.beginGradientFill(gradientType, fillColors, fillAlphas, [0, 255] , matrix, "pad", "rgb", focalPointRatio);
|
|
37
|
+
graphics.drawRect(0, 0, unscaledWidth, unscaledHeight);
|
|
38
|
+
graphics.endFill();
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="{onCreationComplete()}"
|
|
3
|
+
mouseDown="{onMouseDown(event)}" mouseUp="{onMouseUp(event)}">
|
|
4
|
+
<mx:HBox left="5" right="5" verticalAlign="middle" height="100%">
|
|
5
|
+
<mx:CheckBox id="checkBox"
|
|
6
|
+
change="{checkBoxChange()}"
|
|
7
|
+
scaleX="1.4" scaleY="1.4"/>
|
|
8
|
+
<mx:TextInput id="textInput"
|
|
9
|
+
width="100%"
|
|
10
|
+
focusIn="{onFocusIn()}"
|
|
11
|
+
focusOut="{textInputChange()}"/>
|
|
12
|
+
</mx:HBox>
|
|
13
|
+
<mx:Script>
|
|
14
|
+
<![CDATA[
|
|
15
|
+
public override function set data(value:Object):void
|
|
16
|
+
{
|
|
17
|
+
super.data = value;
|
|
18
|
+
if(data.value == undefined)
|
|
19
|
+
{
|
|
20
|
+
data.value = 0;
|
|
21
|
+
}
|
|
22
|
+
textInput.text = data.value + "%";
|
|
23
|
+
if(data.value == 0)
|
|
24
|
+
{
|
|
25
|
+
checkBox.selected = false;
|
|
26
|
+
checkBox.alpha = 100;
|
|
27
|
+
}
|
|
28
|
+
else
|
|
29
|
+
{
|
|
30
|
+
checkBox.selected = true;
|
|
31
|
+
checkBox.alpha = data.value/100;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
protected function onCreationComplete():void
|
|
35
|
+
{
|
|
36
|
+
// NOTE: this will fire for all the item renderers
|
|
37
|
+
// that is not too bad? or do something to identify them?
|
|
38
|
+
stage.addEventListener(KeyboardEvent.KEY_UP, keyDown, false, 0, true);
|
|
39
|
+
}
|
|
40
|
+
// stopping mouse down and up event propigation to prevent dragging
|
|
41
|
+
// a datagrid item while using this component
|
|
42
|
+
// might not be the best way to do this?
|
|
43
|
+
protected function onMouseDown(e:Event):void
|
|
44
|
+
{
|
|
45
|
+
e.stopPropagation();
|
|
46
|
+
}
|
|
47
|
+
protected function onMouseUp(e:Event):void
|
|
48
|
+
{
|
|
49
|
+
e.stopPropagation();
|
|
50
|
+
}
|
|
51
|
+
protected function keyDown(e:KeyboardEvent):void
|
|
52
|
+
{
|
|
53
|
+
if( e.keyCode == Keyboard.ENTER)
|
|
54
|
+
{
|
|
55
|
+
textInputChange();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
protected function checkBoxChange():void
|
|
59
|
+
{
|
|
60
|
+
if(checkBox.selected == true)
|
|
61
|
+
{
|
|
62
|
+
data.value = 100;
|
|
63
|
+
}
|
|
64
|
+
else
|
|
65
|
+
{
|
|
66
|
+
data.value = 0;
|
|
67
|
+
}
|
|
68
|
+
checkBox.alpha = 100;
|
|
69
|
+
textInput.text = data.value + "%";
|
|
70
|
+
}
|
|
71
|
+
protected function textInputChange():void
|
|
72
|
+
{
|
|
73
|
+
// TODO: i think it is calling this function more than it needs to
|
|
74
|
+
var text:String = textInput.text.split("%")[0];
|
|
75
|
+
var n:Number = Number(text);
|
|
76
|
+
var i:int = Math.floor(n); // Note: this handles when n is NaN
|
|
77
|
+
if( i > 100 )
|
|
78
|
+
{
|
|
79
|
+
i = 100;
|
|
80
|
+
}
|
|
81
|
+
else if( i < 0 )
|
|
82
|
+
{
|
|
83
|
+
i = 0;
|
|
84
|
+
}
|
|
85
|
+
data.value = i;
|
|
86
|
+
textInput.text = data.value + "%";
|
|
87
|
+
if(data.value == 0)
|
|
88
|
+
{
|
|
89
|
+
checkBox.selected = false;
|
|
90
|
+
checkBox.alpha = 100;
|
|
91
|
+
}
|
|
92
|
+
else
|
|
93
|
+
{
|
|
94
|
+
checkBox.selected = true;
|
|
95
|
+
checkBox.alpha = data.value/100;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
protected function onFocusIn():void
|
|
99
|
+
{
|
|
100
|
+
textInput.setSelection(0, textInput.text.length);
|
|
101
|
+
}
|
|
102
|
+
]]>
|
|
103
|
+
</mx:Script>
|
|
104
|
+
</mx:Canvas>
|