mako 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,468 @@
|
|
1
|
+
/* See the file "LICENSE.txt" for the full license governing this code. */
|
2
|
+
package nm.ui{
|
3
|
+
import flash.display.Sprite;
|
4
|
+
import flash.events.Event;
|
5
|
+
import flash.geom.Rectangle;
|
6
|
+
public class ScrollClip extends Component {
|
7
|
+
private var content_mc:Sprite;
|
8
|
+
private var background_mc:Sprite;
|
9
|
+
private var scrollarea_mc:Sprite;
|
10
|
+
private var corner_mc:Sprite;
|
11
|
+
private var vert_sb:ScrollBar;
|
12
|
+
private var horz_sb:ScrollBar;
|
13
|
+
private var maskRect:Rectangle;
|
14
|
+
private var autoHide:Boolean;
|
15
|
+
private var drawVertSb:Boolean;
|
16
|
+
private var drawHorzSb:Boolean;
|
17
|
+
private var mouseWheelEnabled:Boolean;
|
18
|
+
private var stickToBottom:Boolean;
|
19
|
+
private var stickToRight:Boolean;
|
20
|
+
private var _hScrollEnabled:Boolean;
|
21
|
+
private var _vScrollEnabled:Boolean;
|
22
|
+
/**
|
23
|
+
* ScrollClip creates a Sprite and then masks it, as well as adds scrollbars to provide user fuctionality to move the viewing window.
|
24
|
+
* After creating a new ScrollClip object, you should get ScrollClip.clip to get a reference to the content Sprite that is being masked
|
25
|
+
* by ScrollClip.
|
26
|
+
* @param width Number. The width of the viewing area window.
|
27
|
+
* @param height Number. The height of the viewing area window.
|
28
|
+
* @param autoRedraw Boolean. Default false. Auto-calls redraw() on width and height changes.
|
29
|
+
* @param autoHide Boolean. Default true. If true, scrollbars are not displayed when not necessary, otherwise, scrollbars are always displayed.
|
30
|
+
*/
|
31
|
+
//function ScrollClip(target_mc:Sprite, instName:String, depth:Number, x:Number, y:Number, width:Number, height:Number, autoRedraw:Boolean, autoHide:Boolean) {
|
32
|
+
public function ScrollClip(width:Number, height:Number, autoRedraw:Boolean, autoHide:Boolean=true)
|
33
|
+
{
|
34
|
+
super(autoRedraw, width, height);
|
35
|
+
////trace("****************SCROLLCLIP CONSTRUCTOR");
|
36
|
+
//addEventListener("mouseMove", function(e:*):void {////trace("MOVED:::");});
|
37
|
+
this.autoHide = autoHide;
|
38
|
+
drawVertSb = drawHorzSb = ! this.autoHide;
|
39
|
+
mouseWheelEnabled = true;
|
40
|
+
content_mc = new Sprite(); // this was in draw,
|
41
|
+
content_mc.addEventListener(Event.ADDED, onAddToClip, false, 0, true);
|
42
|
+
//scroll bars are enabled by default
|
43
|
+
_vScrollEnabled = true;
|
44
|
+
_hScrollEnabled = true;
|
45
|
+
// moving this here so we can add content before draw is called
|
46
|
+
maskRect = new Rectangle(x, y, width, height); // moving this here too
|
47
|
+
}
|
48
|
+
/**
|
49
|
+
* Creates the Sprites needed. This is automatically called when this class is created.
|
50
|
+
*/
|
51
|
+
public override function draw():void
|
52
|
+
{
|
53
|
+
super.draw();
|
54
|
+
//comp_mc = target_mc.createEmptySprite("comp", depth);
|
55
|
+
background_mc = new Sprite(); addChild(background_mc);//this.createEmptySprite("background", -1);
|
56
|
+
scrollarea_mc = new Sprite(); addChild(scrollarea_mc);//this.createEmptySprite("scrollarea", 0);
|
57
|
+
scrollarea_mc.addChild(content_mc); //scrollarea_mc.createEmptySprite("content", 0);
|
58
|
+
maskRect = new Rectangle(x, y, width, height);
|
59
|
+
drawBackground();
|
60
|
+
drawScrollBars();
|
61
|
+
drawCorner();
|
62
|
+
positionScrollBars();
|
63
|
+
applyMask();
|
64
|
+
redraw();
|
65
|
+
}
|
66
|
+
public function drawBackground():void
|
67
|
+
{
|
68
|
+
background_mc.graphics.clear();
|
69
|
+
//Rect.draw(background_mc, 0, 0, width, height, getStyle("bgFill"), getStyle("bgAlpha"));
|
70
|
+
background_mc.graphics.beginFill(getStyle("bgFill"), getStyle("bgAlpha"));
|
71
|
+
background_mc.graphics.drawRect(0, 0, width, height);
|
72
|
+
}
|
73
|
+
private function drawCorner():void
|
74
|
+
{
|
75
|
+
corner_mc = new Sprite(); addChild(corner_mc);//this.createEmptySprite("corner", 1);
|
76
|
+
var sbWidth:Number = getStyle("sbWidth")
|
77
|
+
//Rect.draw(corner_mc, 0, 0, sbWidth, sbWidth, vert_sb.getStyle("sliderColor"), 100);
|
78
|
+
corner_mc.graphics.beginFill(vert_sb.getStyle("sliderColor"));
|
79
|
+
corner_mc.graphics.drawRect(0, 0, sbWidth, sbWidth);
|
80
|
+
}
|
81
|
+
private function drawScrollBars():void
|
82
|
+
{
|
83
|
+
var sbWidth:Number = getStyle("sbWidth");
|
84
|
+
vert_sb = new ScrollBar(sbWidth, _height - sbWidth, content_mc.height - sbWidth, maskRect.height - sbWidth, y, false);
|
85
|
+
addChild(vert_sb);
|
86
|
+
horz_sb = new ScrollBar(sbWidth, _width - sbWidth, content_mc.width - sbWidth, maskRect.width - sbWidth, x, true);
|
87
|
+
addChild(horz_sb);
|
88
|
+
vert_sb.wheelEnabled = mouseWheelEnabled;
|
89
|
+
vert_sb.addEventListener("scroll", onVertScroll);
|
90
|
+
horz_sb.addEventListener("scroll", onHorzScroll);
|
91
|
+
}
|
92
|
+
private function positionScrollBars():void
|
93
|
+
{
|
94
|
+
var sbWidth:Number = getStyle("sbWidth")
|
95
|
+
vert_sb.x = width - sbWidth;
|
96
|
+
horz_sb.y = height - sbWidth;
|
97
|
+
horz_sb.x = 0;
|
98
|
+
if(drawVertSb && drawHorzSb) {
|
99
|
+
corner_mc.visible = true;
|
100
|
+
corner_mc.x = width - sbWidth;
|
101
|
+
corner_mc.y = height - sbWidth;
|
102
|
+
} else {
|
103
|
+
corner_mc.visible = false;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
private function onAddToClip(e:Event):void
|
107
|
+
{
|
108
|
+
if(vert_sb != null && stage != null)
|
109
|
+
{
|
110
|
+
update();
|
111
|
+
}
|
112
|
+
}
|
113
|
+
private function onVertScroll(evt:*):void {
|
114
|
+
var p:Number = evt.result;
|
115
|
+
var t:Number = content_mc.height - maskRect.height;
|
116
|
+
if(drawHorzSb) t += getStyle("sbWidth");
|
117
|
+
maskRect.y = t * p / 100;
|
118
|
+
applyMask();
|
119
|
+
dispatchEvent(new Event('vScroll'));//dispatchEvent({type:"vScroll", target:this, result:p});
|
120
|
+
}
|
121
|
+
private function onHorzScroll(evt:*):void {
|
122
|
+
var p:Number = evt.result;
|
123
|
+
var t:Number = content_mc.width - maskRect.width;
|
124
|
+
if(drawVertSb) {
|
125
|
+
t += getStyle("sbWidth");
|
126
|
+
//t += sbWidth * 2;
|
127
|
+
}
|
128
|
+
maskRect.x = t * p / 100;
|
129
|
+
applyMask();
|
130
|
+
dispatchEvent(new Event("hScroll")); //dispatchEvent({type:"hScroll", target:this, result:p});
|
131
|
+
}
|
132
|
+
private function applyMask():void
|
133
|
+
{
|
134
|
+
scrollarea_mc.scrollRect = maskRect;
|
135
|
+
}
|
136
|
+
/**
|
137
|
+
* Resizes the mask window, as well as repositions and resizes the scrollbars.
|
138
|
+
*/
|
139
|
+
public override function redraw():void {
|
140
|
+
// make sure draw was called before redrawing
|
141
|
+
if(background_mc == null) {
|
142
|
+
return;
|
143
|
+
}
|
144
|
+
//redraw background:
|
145
|
+
drawBackground();
|
146
|
+
var vertLen:Number = maskRect.height;
|
147
|
+
var horzLen:Number = maskRect.width;
|
148
|
+
if(drawHorzSb) vertLen -= getStyle("sbWidth");
|
149
|
+
if (drawVertSb) horzLen -= getStyle("sbWidth");
|
150
|
+
if(autoHide) {
|
151
|
+
// check to see if the content is too tall
|
152
|
+
if (vertLen < content_mc.height && _vScrollEnabled == true) {
|
153
|
+
drawVertSb = true;
|
154
|
+
if(vert_sb.visible == false) {
|
155
|
+
vert_sb.wheelEnabled = mouseWheelEnabled;
|
156
|
+
vert_sb.visible = true;
|
157
|
+
}
|
158
|
+
} else {
|
159
|
+
drawVertSb = false;
|
160
|
+
horzLen = maskRect.width;
|
161
|
+
if(vert_sb.visible == true) {
|
162
|
+
vert_sb.wheelEnabled = false;
|
163
|
+
vert_sb.visible = false;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
// check to see if the content is too wide
|
167
|
+
if(horzLen < content_mc.width && _hScrollEnabled == true) {
|
168
|
+
drawHorzSb = true;
|
169
|
+
if(horz_sb.visible == false) horz_sb.visible = true;
|
170
|
+
} else {
|
171
|
+
drawHorzSb = false;
|
172
|
+
if(horz_sb.visible == true) horz_sb.visible = false;
|
173
|
+
vertLen = maskRect.height;
|
174
|
+
}
|
175
|
+
}
|
176
|
+
vert_sb.totalLines = content_mc.height;
|
177
|
+
horz_sb.totalLines = content_mc.width;
|
178
|
+
vert_sb.height = vertLen;
|
179
|
+
horz_sb.height = horzLen;
|
180
|
+
if (horz_sb.visible) vert_sb.height -= getStyle("sbWidth");
|
181
|
+
if (vert_sb.visible) horz_sb.height -= getStyle("sbWidth");
|
182
|
+
positionScrollBars();
|
183
|
+
applyMask();
|
184
|
+
vert_sb.linesPerPage = vertLen;
|
185
|
+
horz_sb.linesPerPage = horzLen;
|
186
|
+
if(vertLen + maskRect.y >= content_mc.height) {
|
187
|
+
stickToBottom = true;
|
188
|
+
} else {
|
189
|
+
stickToRight = false;
|
190
|
+
}
|
191
|
+
if(horzLen + maskRect.x >= content_mc.width) {
|
192
|
+
stickToRight = true;
|
193
|
+
} else {
|
194
|
+
stickToRight = false;
|
195
|
+
}
|
196
|
+
if(stickToBottom) {
|
197
|
+
maskRect.y = content_mc.height - maskRect.height + (drawHorzSb ? getStyle("sbWidth") : 0);
|
198
|
+
if(vertLen >= content_mc.height) {
|
199
|
+
stickToBottom = false;
|
200
|
+
maskRect.y = 0;
|
201
|
+
vert_sb.scroll = 0;
|
202
|
+
}
|
203
|
+
}
|
204
|
+
if(stickToRight) {
|
205
|
+
maskRect.x = content_mc.width - maskRect.width + (drawVertSb ? getStyle("sbWidth") : 0);
|
206
|
+
if(horzLen >= content_mc.width) {
|
207
|
+
stickToRight = false;
|
208
|
+
maskRect.x = 0;
|
209
|
+
horz_sb.scroll = 0;
|
210
|
+
}
|
211
|
+
}
|
212
|
+
}
|
213
|
+
/*/**
|
214
|
+
* Redraws the content and content mask, but does not draw the scrollbars.
|
215
|
+
*/
|
216
|
+
/* public function redrawNoScrollBars():void {
|
217
|
+
//redraw background:
|
218
|
+
drawBackground();
|
219
|
+
applyMask();
|
220
|
+
}*/
|
221
|
+
/**
|
222
|
+
* The scrollbars do not automatically update when the contents of the masked Sprite change.
|
223
|
+
* Therefore, you should call update()
|
224
|
+
* when the contents of the Sprite change.
|
225
|
+
*/
|
226
|
+
public function update():void {
|
227
|
+
vert_sb.totalLines = content_mc.height;
|
228
|
+
horz_sb.totalLines = content_mc.width;
|
229
|
+
redraw();
|
230
|
+
}
|
231
|
+
/**
|
232
|
+
* Hide scroll bars
|
233
|
+
*/
|
234
|
+
public function hideScrollBars():void {
|
235
|
+
vert_sb.visible = false;
|
236
|
+
horz_sb.visible = false;
|
237
|
+
}
|
238
|
+
/**
|
239
|
+
* Unhide scroll bars
|
240
|
+
*/
|
241
|
+
public function showScrollBars():void {
|
242
|
+
vert_sb.visible = true;
|
243
|
+
horz_sb.visible = true;
|
244
|
+
}
|
245
|
+
/**
|
246
|
+
* Sets the x position of the maksed Sprite.
|
247
|
+
* @param percent Number. 0 is the far left, 100 is the far right.
|
248
|
+
*/
|
249
|
+
public function setHScroll(percent:Number):void {
|
250
|
+
horz_sb.scroll = percent;
|
251
|
+
}
|
252
|
+
/**
|
253
|
+
* @return Percentage (0-100) of the x position of the masked Sprite.
|
254
|
+
*/
|
255
|
+
public function getHScroll():Number {
|
256
|
+
if(drawHorzSb) return horz_sb.scroll;
|
257
|
+
return 0;
|
258
|
+
}
|
259
|
+
/**
|
260
|
+
* Sets the y position of the maksed Sprite.
|
261
|
+
* @param percent Number. 0 is the top, 100 is the bottom.
|
262
|
+
*/
|
263
|
+
public function setVScroll(percent:Number):void {
|
264
|
+
vert_sb.scroll = percent;
|
265
|
+
}
|
266
|
+
/**
|
267
|
+
* @return Percentage (0-100) of the y position of the masked Sprite.
|
268
|
+
*/
|
269
|
+
public function getVScroll():Number {
|
270
|
+
if(drawVertSb) return vert_sb.scroll;
|
271
|
+
return 0;
|
272
|
+
}
|
273
|
+
protected override function styleDefaults():void {
|
274
|
+
setStyle("bgFill", 0x9b9b9b);
|
275
|
+
setStyle("bgAlpha", .55);
|
276
|
+
setStyle("sbWidth", 14);
|
277
|
+
}
|
278
|
+
public function objectIsScrollBar(obj:*):Boolean
|
279
|
+
{
|
280
|
+
// returns true if the passed object is part of the scrollbars
|
281
|
+
if (vert_sb == obj) return true;
|
282
|
+
if (horz_sb == obj) return true;
|
283
|
+
if (corner_mc == obj) return true;
|
284
|
+
if (checkChildren(obj, vert_sb)) return true;
|
285
|
+
if (checkChildren(obj, horz_sb)) return true;
|
286
|
+
return false;
|
287
|
+
}
|
288
|
+
private function checkChildren(obj:*, curParent:*):Boolean
|
289
|
+
{
|
290
|
+
for (var i:int = 0; i < curParent.numChildren; i++)
|
291
|
+
{
|
292
|
+
if (curParent.getChildAt(i) == obj){
|
293
|
+
return true;
|
294
|
+
}
|
295
|
+
else if( curParent.getChildAt(i).hasOwnProperty("getChildAt"))
|
296
|
+
{
|
297
|
+
if (containsContent(obj, curParent.getChildAt(i))){
|
298
|
+
return true
|
299
|
+
}
|
300
|
+
}
|
301
|
+
}
|
302
|
+
return false;
|
303
|
+
}
|
304
|
+
public function containsContent(obj:*, p:* = null):Boolean{ // this function will probably not be needed
|
305
|
+
if (p == null) p = clip;
|
306
|
+
if (p == obj) return true;
|
307
|
+
if (checkChildren(obj, p)) return true;
|
308
|
+
return false;
|
309
|
+
}
|
310
|
+
public override function destroy():void
|
311
|
+
{
|
312
|
+
vert_sb.destroy();
|
313
|
+
horz_sb.destroy();
|
314
|
+
super.destroy();
|
315
|
+
}
|
316
|
+
/**
|
317
|
+
* Sets the width of the scrollbars (by default this is 10).
|
318
|
+
* @param val Number.
|
319
|
+
*/
|
320
|
+
public function set scrollBarSize(val:Number):void {
|
321
|
+
setStyle("sbWidth", val);
|
322
|
+
vert_sb.width = horz_sb.width = val;
|
323
|
+
positionScrollBars();
|
324
|
+
drawCorner();
|
325
|
+
}
|
326
|
+
/**
|
327
|
+
* @return Number. Size of scrollbars.
|
328
|
+
*/
|
329
|
+
public function get scrollBarSize():Number {
|
330
|
+
return getStyle("sbWidth");
|
331
|
+
}
|
332
|
+
/**
|
333
|
+
* @return Number. Size of scrollbars.
|
334
|
+
*/
|
335
|
+
public function get horizScrollBar():Sprite {
|
336
|
+
return horz_sb;
|
337
|
+
}
|
338
|
+
/**
|
339
|
+
* @return Number. Size of scrollbars.
|
340
|
+
*/
|
341
|
+
public function get vertScrollBar():Sprite {
|
342
|
+
return vert_sb;
|
343
|
+
}
|
344
|
+
/**
|
345
|
+
* @param val Boolean. If true then you can use the mouse wheel to move the viewing window vertically. By default this is false.
|
346
|
+
*/
|
347
|
+
public function set wheelEnabled(val:Boolean):void {
|
348
|
+
vert_sb.wheelEnabled = mouseWheelEnabled = val;
|
349
|
+
}
|
350
|
+
/**
|
351
|
+
* @return If the mouse wheel is enabled or not for vertical scrolling.
|
352
|
+
*/
|
353
|
+
public function get wheelEnabled():Boolean {
|
354
|
+
return mouseWheelEnabled;
|
355
|
+
}
|
356
|
+
/**
|
357
|
+
* @return vert_sb
|
358
|
+
*/
|
359
|
+
public function get showVertScrollBar():Boolean {
|
360
|
+
return drawVertSb;
|
361
|
+
}
|
362
|
+
/**
|
363
|
+
* @return horz_sb
|
364
|
+
*/
|
365
|
+
public function get showHorizScrollBar():Boolean {
|
366
|
+
return drawHorzSb;
|
367
|
+
}
|
368
|
+
/**
|
369
|
+
* You will need to get this value after creating a new ScrollClip object.
|
370
|
+
* @return Reference to the content Sprite.
|
371
|
+
*/
|
372
|
+
public function get clip():Sprite {
|
373
|
+
return content_mc;
|
374
|
+
}
|
375
|
+
/**
|
376
|
+
* Sets the width of the viewing window.
|
377
|
+
* @param val
|
378
|
+
*/
|
379
|
+
public override function set width(val:Number):void {
|
380
|
+
maskRect.width = _width = val;
|
381
|
+
//if(_autoRedraw) redraw();
|
382
|
+
//maskRect.width = val;
|
383
|
+
super.width = val;
|
384
|
+
}
|
385
|
+
/**
|
386
|
+
* Sets the height of the viewing window.
|
387
|
+
* @param val
|
388
|
+
*/
|
389
|
+
public override function set height(val:Number):void {
|
390
|
+
maskRect.height = _height = val;
|
391
|
+
//if(_autoRedraw) redraw();
|
392
|
+
//maskRect.height = val;
|
393
|
+
super.height = val;
|
394
|
+
}
|
395
|
+
/**
|
396
|
+
* @return Width of the viewing window.
|
397
|
+
*/
|
398
|
+
public override function get width():Number {
|
399
|
+
return _width;
|
400
|
+
}
|
401
|
+
/**
|
402
|
+
* @return Height of the viewing window.
|
403
|
+
*/
|
404
|
+
public override function get height():Number {
|
405
|
+
return _height;
|
406
|
+
}
|
407
|
+
/**
|
408
|
+
* Sets the vertical scroll rate.
|
409
|
+
* @param val Number. Represents the rate % of scroll per viewing window. If set to 100, every mouse click will move the window
|
410
|
+
* by one viewing-window (Similar effect to PageUp or PageDown on a keyboard).
|
411
|
+
*/
|
412
|
+
public function set vScrollRate(val:Number):void {
|
413
|
+
vert_sb.scrollByPercent = val;
|
414
|
+
}
|
415
|
+
/**
|
416
|
+
* @return The vertical scroll rate.
|
417
|
+
*/
|
418
|
+
public function get vScrollRate():Number {
|
419
|
+
return vert_sb.scrollByPercent;
|
420
|
+
}
|
421
|
+
/**
|
422
|
+
* Sets the horizontal scroll rate.
|
423
|
+
* @param val Number. Represents the rate % of scroll per viewing window. If set to 100, every mouse click will move the window
|
424
|
+
* by one viewing-window (Similar effect to PageUp or PageDown on a keyboard).
|
425
|
+
*/
|
426
|
+
public function set hScrollRate(val:Number):void {
|
427
|
+
horz_sb.scrollByPercent = val;
|
428
|
+
}
|
429
|
+
public function get vScroll():Number {
|
430
|
+
return getVScroll();
|
431
|
+
}
|
432
|
+
public function set vScroll(val:Number):void {
|
433
|
+
setVScroll(val);
|
434
|
+
}
|
435
|
+
public function get hScroll():Number {
|
436
|
+
return getHScroll();
|
437
|
+
}
|
438
|
+
public function set hScroll(val:Number):void {
|
439
|
+
setHScroll(val);
|
440
|
+
}
|
441
|
+
/**
|
442
|
+
* @return The horizontal scroll rate.
|
443
|
+
*/
|
444
|
+
public function get hScrollRate():Number {
|
445
|
+
return horz_sb.scrollByPercent;
|
446
|
+
}
|
447
|
+
public function get vScrollActive():Boolean {
|
448
|
+
return drawVertSb;
|
449
|
+
}
|
450
|
+
public function get hScrollActive():Boolean {
|
451
|
+
return drawHorzSb;
|
452
|
+
}
|
453
|
+
public function set hScrollEnabled(val:Boolean):void {
|
454
|
+
_hScrollEnabled = val;
|
455
|
+
}
|
456
|
+
public function set vScrollEnabled(val:Boolean):void {
|
457
|
+
_vScrollEnabled = val;
|
458
|
+
}
|
459
|
+
/*public function set _contentArea(w:Number, h:Number){
|
460
|
+
}*/
|
461
|
+
public function get _contentArea():Object
|
462
|
+
{
|
463
|
+
var space:Number = getStyle('borderSpacing');
|
464
|
+
var temp:Object = { w:(width - vert_sb.width), h:(height - horz_sb.width) };
|
465
|
+
return temp;
|
466
|
+
}
|
467
|
+
}
|
468
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/* See the file "LICENSE.txt" for the full license governing this code. */
|
2
|
+
package nm.ui
|
3
|
+
{
|
4
|
+
import nm.ui.ScrollText_base
|
5
|
+
import flash.text.TextFormat;
|
6
|
+
public class ScrollText extends ScrollText_base
|
7
|
+
{
|
8
|
+
public function ScrollText(width:Number, height:Number, text:String = "", textFormat:TextFormat = null)
|
9
|
+
{
|
10
|
+
super(width, height, text, textFormat);
|
11
|
+
}
|
12
|
+
protected override function styleDefaults():void{
|
13
|
+
super.styleDefaults();
|
14
|
+
setStyle('bgAlpha', 1);
|
15
|
+
setStyle('bgColor', 0xFFFFFF)
|
16
|
+
setStyle('frameColor', 0x000000);
|
17
|
+
}
|
18
|
+
protected override function drawBG():void
|
19
|
+
{
|
20
|
+
graphics.clear();
|
21
|
+
if(getStyle('showBorder'))
|
22
|
+
{
|
23
|
+
graphics.lineStyle(getStyle('frameW'), getStyle('frameColor'));
|
24
|
+
graphics.beginFill(getStyle('bgColor'), getStyle('bgAlpha'));
|
25
|
+
graphics.drawRect(0, 0, width, height);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|