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
data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/PopInstance.as
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
package com.adobe.ac.mxeffects.effectClasses
|
|
2
|
+
{
|
|
3
|
+
import com.adobe.ac.mxeffects.Distortion;
|
|
4
|
+
import com.adobe.ac.mxeffects.DistortionConstants;
|
|
5
|
+
import com.adobe.ac.mxeffects.Pop;
|
|
6
|
+
public class PopInstance extends DistortBaseInstance
|
|
7
|
+
{
|
|
8
|
+
public var mode : String;
|
|
9
|
+
private var distort : Distortion;
|
|
10
|
+
private var distortBack : Distortion;
|
|
11
|
+
private var noLightingUpdateMethod : Function;
|
|
12
|
+
public function PopInstance( target:Object )
|
|
13
|
+
{
|
|
14
|
+
super( target );
|
|
15
|
+
}
|
|
16
|
+
override public function play() : void
|
|
17
|
+
{
|
|
18
|
+
if( direction == null ) direction = Pop.defaultDirection;
|
|
19
|
+
if( mode == null ) mode = Pop.defaultMode;
|
|
20
|
+
if( buildMode == null ) buildMode = Pop.defaultBuildMode;
|
|
21
|
+
super.play();
|
|
22
|
+
startAnimation();
|
|
23
|
+
}
|
|
24
|
+
private function startAnimation() : void
|
|
25
|
+
{
|
|
26
|
+
initializeNextTarget();
|
|
27
|
+
nextAnimation();
|
|
28
|
+
}
|
|
29
|
+
private function nextAnimation() : void
|
|
30
|
+
{
|
|
31
|
+
initializeNextTarget();
|
|
32
|
+
distortBack = new Distortion( currentTarget );
|
|
33
|
+
applyCoordSpaceChange( distortBack, getContainerChild( siblings[ currentSibling - 1 ] ) );
|
|
34
|
+
applyDistortionMode( distortBack );
|
|
35
|
+
distortBack.renderSides( 100, 100, 100, 100 );
|
|
36
|
+
distortBack.container.x -= distortBack.offsetRect.x;
|
|
37
|
+
initializePreviousTarget();
|
|
38
|
+
startPop();
|
|
39
|
+
}
|
|
40
|
+
private function startPop() : void
|
|
41
|
+
{
|
|
42
|
+
distort = new Distortion( currentTarget );
|
|
43
|
+
applyCoordSpaceChange( distort, getContainerChild( siblings[ currentSibling ] ) );
|
|
44
|
+
applyDistortionMode( distort );
|
|
45
|
+
distort.renderSides( 100, 100, 100, 100 );
|
|
46
|
+
applyBlur( distort.container );
|
|
47
|
+
noLightingUpdateMethod = getNoLightingUpdateMethod();
|
|
48
|
+
var updateMethod : Function = noLightingUpdateMethod;
|
|
49
|
+
animate( 0, 100, siblingDuration, updateMethod, endAnimation );
|
|
50
|
+
}
|
|
51
|
+
private function getNoLightingUpdateMethod() : Function
|
|
52
|
+
{
|
|
53
|
+
var updateHandler : Function;
|
|
54
|
+
if( mode == DistortionConstants.DOWN )
|
|
55
|
+
{
|
|
56
|
+
updateHandler = updatePopDownAnimation;
|
|
57
|
+
}
|
|
58
|
+
else if( mode == DistortionConstants.UP )
|
|
59
|
+
{
|
|
60
|
+
updateHandler = updatePopUpAnimation;
|
|
61
|
+
}
|
|
62
|
+
return updateHandler;
|
|
63
|
+
}
|
|
64
|
+
private function updatePopDownAnimation( value : Object ) : void
|
|
65
|
+
{
|
|
66
|
+
if( liveUpdate ) distortBack.renderSides( 100, 100, 100, 100 );
|
|
67
|
+
distort.pop( Number( value ), direction, distortion );
|
|
68
|
+
}
|
|
69
|
+
private function updatePopUpAnimation( value : Object ) : void
|
|
70
|
+
{
|
|
71
|
+
if( liveUpdate ) distortBack.renderSides( 100, 100, 100, 100 );
|
|
72
|
+
distort.popUp( Number( value ), direction, distortion );
|
|
73
|
+
}
|
|
74
|
+
private function endAnimation( value : Object ) : void
|
|
75
|
+
{
|
|
76
|
+
distortBack.destroy();
|
|
77
|
+
distort.destroy( false );
|
|
78
|
+
currentSibling++;
|
|
79
|
+
var hasSiblings : Boolean = ( siblings.length > currentSibling + 1 );
|
|
80
|
+
if( hasSiblings )
|
|
81
|
+
{
|
|
82
|
+
currentSibling--;
|
|
83
|
+
startAnimation();
|
|
84
|
+
}
|
|
85
|
+
else
|
|
86
|
+
{
|
|
87
|
+
super.onTweenEnd( value );
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/PushInstance.as
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
package com.adobe.ac.mxeffects.effectClasses
|
|
2
|
+
{
|
|
3
|
+
import com.adobe.ac.mxeffects.Distortion;
|
|
4
|
+
import com.adobe.ac.mxeffects.Push;
|
|
5
|
+
public class PushInstance extends DistortBaseInstance
|
|
6
|
+
{
|
|
7
|
+
private var distort : Distortion;
|
|
8
|
+
private var distortBack : Distortion;
|
|
9
|
+
public function PushInstance( target:Object )
|
|
10
|
+
{
|
|
11
|
+
super( target );
|
|
12
|
+
}
|
|
13
|
+
override public function play() : void
|
|
14
|
+
{
|
|
15
|
+
if( direction == null ) direction = Push.defaultDirection;
|
|
16
|
+
if( buildMode == null ) buildMode = Push.defaultBuildMode;
|
|
17
|
+
super.play();
|
|
18
|
+
startAnimation();
|
|
19
|
+
}
|
|
20
|
+
private function startAnimation() : void
|
|
21
|
+
{
|
|
22
|
+
initializeNextTarget();
|
|
23
|
+
nextAnimation();
|
|
24
|
+
}
|
|
25
|
+
private function nextAnimation() : void
|
|
26
|
+
{
|
|
27
|
+
distortBack = new Distortion( currentTarget );
|
|
28
|
+
applyCoordSpaceChange( distortBack, getContainerChild( siblings[ currentSibling ] ) );
|
|
29
|
+
applyDistortionMode( distortBack );
|
|
30
|
+
distortBack.renderSides( 100, 100, 100, 100 );
|
|
31
|
+
initializeNextTarget();
|
|
32
|
+
startPush();
|
|
33
|
+
initializePreviousTarget();
|
|
34
|
+
}
|
|
35
|
+
private function startPush() : void
|
|
36
|
+
{
|
|
37
|
+
distort = new Distortion( currentTarget );
|
|
38
|
+
applyCoordSpaceChange( distort, getContainerChild( siblings[ currentSibling - 1 ] ) );
|
|
39
|
+
applyDistortionMode( distort );
|
|
40
|
+
applyBlur( distort.container );
|
|
41
|
+
var updateMethod : Function = updateAnimation;
|
|
42
|
+
animate( 0, 100, siblingDuration, updateMethod, endAnimation );
|
|
43
|
+
}
|
|
44
|
+
private function updateAnimation( value : Object ) : void
|
|
45
|
+
{
|
|
46
|
+
if( liveUpdate ) distortBack.renderSides( 100, 100, 100, 100 );
|
|
47
|
+
distort.push( Number( value ), direction, distortion );
|
|
48
|
+
}
|
|
49
|
+
private function updateWithLightingToWhite( value : Object ) : void
|
|
50
|
+
{
|
|
51
|
+
var updateValue : Number = Number( value );
|
|
52
|
+
updateAnimation( updateValue );
|
|
53
|
+
}
|
|
54
|
+
private function updateWithLightingFromBlack( value : Object ) : void
|
|
55
|
+
{
|
|
56
|
+
var updateValue : Number = Number( value );
|
|
57
|
+
updateAnimation( updateValue );
|
|
58
|
+
}
|
|
59
|
+
private function endAnimation( value : Object ) : void
|
|
60
|
+
{
|
|
61
|
+
distortBack.destroy( false );
|
|
62
|
+
distort.destroy();
|
|
63
|
+
currentSibling++;
|
|
64
|
+
var hasSiblings : Boolean = ( siblings.length > currentSibling + 1 );
|
|
65
|
+
if( hasSiblings )
|
|
66
|
+
{
|
|
67
|
+
currentSibling--;
|
|
68
|
+
startAnimation();
|
|
69
|
+
}
|
|
70
|
+
else
|
|
71
|
+
{
|
|
72
|
+
super.onTweenEnd( value );
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
package com.adobe.ac.util
|
|
2
|
+
{
|
|
3
|
+
import flash.display.DisplayObject;
|
|
4
|
+
import flash.display.DisplayObjectContainer;
|
|
5
|
+
import flash.geom.Matrix;
|
|
6
|
+
import flash.geom.Point;
|
|
7
|
+
import flash.geom.Rectangle;
|
|
8
|
+
public class DisplayObjectBounds
|
|
9
|
+
{
|
|
10
|
+
public var topLeft : Point;
|
|
11
|
+
public var topRight : Point;
|
|
12
|
+
public var bottomRight : Point;
|
|
13
|
+
public var bottomLeft : Point;
|
|
14
|
+
public var width : Number;
|
|
15
|
+
public var height : Number;
|
|
16
|
+
public var left : Number;
|
|
17
|
+
public var top : Number;
|
|
18
|
+
private var concatenatedMatrix : Matrix;
|
|
19
|
+
public function getBounds( targetInstance : DisplayObject, bounds : Rectangle = null ) : void
|
|
20
|
+
{
|
|
21
|
+
bounds = getSimpleBounds( targetInstance, bounds );
|
|
22
|
+
var x : Number = left = bounds.left;
|
|
23
|
+
var y : Number = top = bounds.top;
|
|
24
|
+
width = bounds.width;
|
|
25
|
+
height = bounds.height;
|
|
26
|
+
computePoints( x, y );
|
|
27
|
+
}
|
|
28
|
+
public function getActualBounds( targetInstance : DisplayObject,
|
|
29
|
+
bounds : Rectangle = null,
|
|
30
|
+
concatenatedMatrix : Matrix = null
|
|
31
|
+
) : void
|
|
32
|
+
{
|
|
33
|
+
bounds = getSimpleBounds( targetInstance, bounds );
|
|
34
|
+
var x : Number = left = bounds.left;
|
|
35
|
+
var y : Number = top = bounds.top;
|
|
36
|
+
if( concatenatedMatrix == null )
|
|
37
|
+
{
|
|
38
|
+
width = bounds.width;
|
|
39
|
+
height = bounds.height;
|
|
40
|
+
}
|
|
41
|
+
else
|
|
42
|
+
{
|
|
43
|
+
width = bounds.width * concatenatedMatrix.a;
|
|
44
|
+
height = bounds.height * concatenatedMatrix.d;
|
|
45
|
+
}
|
|
46
|
+
computePoints( x, y );
|
|
47
|
+
}
|
|
48
|
+
private function getSimpleBounds( targetInstance : DisplayObject, bounds : Rectangle ) : Rectangle
|
|
49
|
+
{
|
|
50
|
+
if( bounds == null )
|
|
51
|
+
{
|
|
52
|
+
bounds = targetInstance.getBounds( targetInstance );
|
|
53
|
+
}
|
|
54
|
+
return bounds;
|
|
55
|
+
}
|
|
56
|
+
private function computePoints( x : Number, y : Number ) : void
|
|
57
|
+
{
|
|
58
|
+
topLeft = new Point( x, y );
|
|
59
|
+
topRight = new Point( x + width, y );
|
|
60
|
+
bottomRight = new Point( x + width, y + height );
|
|
61
|
+
bottomLeft = new Point( x, y + height );
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
package com.adobe.ac.util
|
|
2
|
+
{
|
|
3
|
+
import flash.display.BitmapData;
|
|
4
|
+
import flash.display.DisplayObject;
|
|
5
|
+
import flash.geom.Matrix;
|
|
6
|
+
import flash.geom.Rectangle;
|
|
7
|
+
import mx.core.Container;
|
|
8
|
+
import mx.core.UIComponent;
|
|
9
|
+
public class DisplayObjectBoundsUtil extends SimpleDisplayObjectBoundsUtil
|
|
10
|
+
{
|
|
11
|
+
public function getFlexBoundsForOffsetRect( target : DisplayObject, offsetRect : Rectangle ) : Rectangle
|
|
12
|
+
{
|
|
13
|
+
var actualOffsetRect : Rectangle = computeFlexBounds( target );
|
|
14
|
+
if( offsetRect == null ) return actualOffsetRect;
|
|
15
|
+
return addToExistingOffsetRect( actualOffsetRect, offsetRect );
|
|
16
|
+
}
|
|
17
|
+
public function getFlexBounds( target : DisplayObject ) : Rectangle
|
|
18
|
+
{
|
|
19
|
+
return computeFlexBounds( target );
|
|
20
|
+
}
|
|
21
|
+
private function computeFlexBounds( target : DisplayObject ) : Rectangle
|
|
22
|
+
{
|
|
23
|
+
var offsetRect : Rectangle;
|
|
24
|
+
if( target is Container )
|
|
25
|
+
{
|
|
26
|
+
if( UIComponent( target ).getStyle( "dropShadowEnabled" ) )
|
|
27
|
+
{
|
|
28
|
+
offsetRect = new Rectangle( -1, 0, target.width + 2, target.height + 6 );
|
|
29
|
+
}
|
|
30
|
+
else
|
|
31
|
+
{
|
|
32
|
+
offsetRect = new Rectangle( 0, 0, target.width, target.height );
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
else
|
|
36
|
+
{
|
|
37
|
+
offsetRect = computeFilterBounds( target );
|
|
38
|
+
}
|
|
39
|
+
return offsetRect;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/util/SimpleDisplayObjectBoundsUtil.as
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
package com.adobe.ac.util
|
|
2
|
+
{
|
|
3
|
+
import flash.display.BitmapData;
|
|
4
|
+
import flash.display.DisplayObject;
|
|
5
|
+
import flash.geom.Matrix;
|
|
6
|
+
import flash.geom.Rectangle;
|
|
7
|
+
public class SimpleDisplayObjectBoundsUtil
|
|
8
|
+
{
|
|
9
|
+
public var offsetWidth : Number = 200;
|
|
10
|
+
public var offsetHeight : Number = 200;
|
|
11
|
+
public function getBoundsForOffsetRect( target : DisplayObject, offsetRect : Rectangle ) : Rectangle
|
|
12
|
+
{
|
|
13
|
+
var actualOffsetRect : Rectangle = computeFilterBounds( target );
|
|
14
|
+
if( offsetRect == null ) return actualOffsetRect;
|
|
15
|
+
return addToExistingOffsetRect( actualOffsetRect, offsetRect );
|
|
16
|
+
}
|
|
17
|
+
public function getBounds( target : DisplayObject ) : Rectangle
|
|
18
|
+
{
|
|
19
|
+
return computeFilterBounds( target );
|
|
20
|
+
}
|
|
21
|
+
protected function computeFilterBounds( target : DisplayObject ) : Rectangle
|
|
22
|
+
{
|
|
23
|
+
var x : Number = 0;
|
|
24
|
+
var y : Number = 0;
|
|
25
|
+
var width : Number = target.width;
|
|
26
|
+
var height : Number = target.height;
|
|
27
|
+
var halfOffsetWidth : Number = offsetWidth / 2;
|
|
28
|
+
var halfOffsetHeight : Number = offsetHeight / 2;
|
|
29
|
+
var bitmap : BitmapData = new BitmapData( width + offsetWidth, height + offsetHeight, true, 0x00000000 );
|
|
30
|
+
var m : Matrix = new Matrix();
|
|
31
|
+
m.translate( halfOffsetWidth, halfOffsetHeight );
|
|
32
|
+
bitmap.draw( target, m );
|
|
33
|
+
var actualBounds : Rectangle = bitmap.getColorBoundsRect( 0xFF000000, 0x00000000, false );
|
|
34
|
+
actualBounds.x = actualBounds.x - halfOffsetWidth;
|
|
35
|
+
actualBounds.y = actualBounds.y - halfOffsetHeight;
|
|
36
|
+
bitmap.dispose();
|
|
37
|
+
return actualBounds;
|
|
38
|
+
}
|
|
39
|
+
protected function addToExistingOffsetRect( newOffsetRect : Rectangle, existingOffsetRect : Rectangle ) : Rectangle
|
|
40
|
+
{
|
|
41
|
+
if( isNaN( existingOffsetRect.x ) )
|
|
42
|
+
{
|
|
43
|
+
existingOffsetRect.x = newOffsetRect.x;
|
|
44
|
+
}
|
|
45
|
+
if( isNaN( existingOffsetRect.y ) )
|
|
46
|
+
{
|
|
47
|
+
existingOffsetRect.y = newOffsetRect.y;
|
|
48
|
+
}
|
|
49
|
+
if( isNaN( existingOffsetRect.width ) )
|
|
50
|
+
{
|
|
51
|
+
existingOffsetRect.width = newOffsetRect.width;
|
|
52
|
+
}
|
|
53
|
+
if( isNaN( existingOffsetRect.height ) )
|
|
54
|
+
{
|
|
55
|
+
existingOffsetRect.height = newOffsetRect.height;
|
|
56
|
+
}
|
|
57
|
+
return existingOffsetRect;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2008, Adobe Systems Incorporated
|
|
3
|
+
All rights reserved.
|
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
|
5
|
+
modification, are permitted provided that the following conditions are
|
|
6
|
+
met:
|
|
7
|
+
* Redistributions of source code must retain the above copyright notice,
|
|
8
|
+
this list of conditions and the following disclaimer.
|
|
9
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
10
|
+
notice, this list of conditions and the following disclaimer in the
|
|
11
|
+
documentation and/or other materials provided with the distribution.
|
|
12
|
+
* Neither the name of Adobe Systems Incorporated nor the names of its
|
|
13
|
+
contributors may be used to endorse or promote products derived from
|
|
14
|
+
this software without specific prior written permission.
|
|
15
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
16
|
+
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
17
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
18
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
19
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
20
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
21
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
22
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
23
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
24
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
25
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
26
|
+
*/
|
|
27
|
+
package com.adobe.crypto {
|
|
28
|
+
import flash.utils.ByteArray;
|
|
29
|
+
import flash.utils.Endian;
|
|
30
|
+
import flash.utils.describeType;
|
|
31
|
+
/**
|
|
32
|
+
* Keyed-Hashing for Message Authentication
|
|
33
|
+
* Implementation based on algorithm description at
|
|
34
|
+
* http://www.faqs.org/rfcs/rfc2104.html
|
|
35
|
+
*/
|
|
36
|
+
public class HMAC
|
|
37
|
+
{
|
|
38
|
+
/**
|
|
39
|
+
* Performs the HMAC hash algorithm using byte arrays.
|
|
40
|
+
*
|
|
41
|
+
* @param secret The secret key
|
|
42
|
+
* @param message The message to hash
|
|
43
|
+
* @param algorithm Hash object to use
|
|
44
|
+
* @return A string containing the hash value of message
|
|
45
|
+
* @langversion ActionScript 3.0
|
|
46
|
+
* @playerversion Flash 8.5
|
|
47
|
+
* @tiptext
|
|
48
|
+
*/
|
|
49
|
+
public static function hash( secret:String, message:String, algorithm:Object = null ):String
|
|
50
|
+
{
|
|
51
|
+
var text:ByteArray = new ByteArray();
|
|
52
|
+
var k_secret:ByteArray = new ByteArray();
|
|
53
|
+
text.writeUTFBytes(message);
|
|
54
|
+
k_secret.writeUTFBytes(secret);
|
|
55
|
+
return hashBytes(k_secret, text, algorithm);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Performs the HMAC hash algorithm using string.
|
|
59
|
+
*
|
|
60
|
+
* @param secret The secret key
|
|
61
|
+
* @param message The message to hash
|
|
62
|
+
* @param algorithm Hash object to use
|
|
63
|
+
* @return A string containing the hash value of message
|
|
64
|
+
* @langversion ActionScript 3.0
|
|
65
|
+
* @playerversion Flash 8.5
|
|
66
|
+
* @tiptext
|
|
67
|
+
*/
|
|
68
|
+
public static function hashBytes( secret:ByteArray, message:ByteArray, algorithm:Object = null ):String
|
|
69
|
+
{
|
|
70
|
+
var ipad:ByteArray = new ByteArray();
|
|
71
|
+
var opad:ByteArray = new ByteArray();
|
|
72
|
+
var endian:String = Endian.BIG_ENDIAN;
|
|
73
|
+
if(algorithm == null){
|
|
74
|
+
algorithm = MD5;
|
|
75
|
+
}
|
|
76
|
+
if ( describeType(algorithm).@name.toString() == "com.adobe.crypto::MD5" ) {
|
|
77
|
+
endian = Endian.LITTLE_ENDIAN;
|
|
78
|
+
}
|
|
79
|
+
if ( secret.length > 64 ) {
|
|
80
|
+
algorithm.hashBytes(secret);
|
|
81
|
+
secret = new ByteArray();
|
|
82
|
+
secret.endian = endian;
|
|
83
|
+
while ( algorithm.digest.bytesAvailable != 0 ) {
|
|
84
|
+
secret.writeInt(algorithm.digest.readInt());
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
secret.length = 64
|
|
88
|
+
secret.position = 0;
|
|
89
|
+
for ( var x:int = 0; x < 64; x++ ) {
|
|
90
|
+
var byte:int = secret.readByte();
|
|
91
|
+
ipad.writeByte(0x36 ^ byte);
|
|
92
|
+
opad.writeByte(0x5c ^ byte);
|
|
93
|
+
}
|
|
94
|
+
ipad.writeBytes(message);
|
|
95
|
+
algorithm.hashBytes(ipad);
|
|
96
|
+
var tmp:ByteArray = new ByteArray();
|
|
97
|
+
tmp.endian = endian;
|
|
98
|
+
while ( algorithm.digest.bytesAvailable != 0 ) {
|
|
99
|
+
tmp.writeInt(algorithm.digest.readInt());
|
|
100
|
+
}
|
|
101
|
+
tmp.position = 0;
|
|
102
|
+
while ( tmp.bytesAvailable != 0 ) {
|
|
103
|
+
opad.writeByte(tmp.readUnsignedByte());
|
|
104
|
+
}
|
|
105
|
+
return algorithm.hashBytes( opad );
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) 2008, Adobe Systems Incorporated
|
|
3
|
+
All rights reserved.
|
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
|
5
|
+
modification, are permitted provided that the following conditions are
|
|
6
|
+
met:
|
|
7
|
+
* Redistributions of source code must retain the above copyright notice,
|
|
8
|
+
this list of conditions and the following disclaimer.
|
|
9
|
+
* Redistributions in binary form must reproduce the above copyright
|
|
10
|
+
notice, this list of conditions and the following disclaimer in the
|
|
11
|
+
documentation and/or other materials provided with the distribution.
|
|
12
|
+
* Neither the name of Adobe Systems Incorporated nor the names of its
|
|
13
|
+
contributors may be used to endorse or promote products derived from
|
|
14
|
+
this software without specific prior written permission.
|
|
15
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
|
16
|
+
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
|
17
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
18
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
19
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
20
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
21
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
22
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
23
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
24
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
25
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
26
|
+
*/
|
|
27
|
+
package com.adobe.crypto {
|
|
28
|
+
import com.adobe.utils.IntUtil;
|
|
29
|
+
import flash.utils.ByteArray;
|
|
30
|
+
/**
|
|
31
|
+
* The MD5 Message-Digest Algorithm
|
|
32
|
+
*
|
|
33
|
+
* Implementation based on algorithm description at
|
|
34
|
+
* http://www.faqs.org/rfcs/rfc1321.html
|
|
35
|
+
*/
|
|
36
|
+
public class MD5 {
|
|
37
|
+
public static var digest:ByteArray;
|
|
38
|
+
/**
|
|
39
|
+
* Performs the MD5 hash algorithm on a string.
|
|
40
|
+
*
|
|
41
|
+
* @param s The string to hash
|
|
42
|
+
* @return A string containing the hash value of s
|
|
43
|
+
* @langversion ActionScript 3.0
|
|
44
|
+
* @playerversion Flash 8.5
|
|
45
|
+
* @tiptext
|
|
46
|
+
*/
|
|
47
|
+
public static function hash(s:String) :String{
|
|
48
|
+
//Convert to byteArray and send through hashBinary function
|
|
49
|
+
// so as to only have complex code in one location
|
|
50
|
+
var ba:ByteArray = new ByteArray();
|
|
51
|
+
ba.writeUTFBytes(s);
|
|
52
|
+
return hashBinary(ba);
|
|
53
|
+
}
|
|
54
|
+
public static function hashBytes(s:ByteArray) :String{
|
|
55
|
+
return hashBinary(s);
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Performs the MD5 hash algorithm on a ByteArray.
|
|
59
|
+
*
|
|
60
|
+
* @param s The string to hash
|
|
61
|
+
* @return A string containing the hash value of s
|
|
62
|
+
* @langversion ActionScript 3.0
|
|
63
|
+
* @playerversion Flash 8.5
|
|
64
|
+
* @tiptext
|
|
65
|
+
*/
|
|
66
|
+
public static function hashBinary( s:ByteArray ):String {
|
|
67
|
+
// initialize the md buffers
|
|
68
|
+
var a:int = 1732584193;
|
|
69
|
+
var b:int = -271733879;
|
|
70
|
+
var c:int = -1732584194;
|
|
71
|
+
var d:int = 271733878;
|
|
72
|
+
// variables to store previous values
|
|
73
|
+
var aa:int;
|
|
74
|
+
var bb:int;
|
|
75
|
+
var cc:int;
|
|
76
|
+
var dd:int;
|
|
77
|
+
// create the blocks from the string and
|
|
78
|
+
// save the length as a local var to reduce
|
|
79
|
+
// lookup in the loop below
|
|
80
|
+
var x:Array = createBlocks( s );
|
|
81
|
+
var len:int = x.length;
|
|
82
|
+
// loop over all of the blocks
|
|
83
|
+
for ( var i:int = 0; i < len; i += 16) {
|
|
84
|
+
// save previous values
|
|
85
|
+
aa = a;
|
|
86
|
+
bb = b;
|
|
87
|
+
cc = c;
|
|
88
|
+
dd = d;
|
|
89
|
+
// Round 1
|
|
90
|
+
a = ff( a, b, c, d, x[int(i+ 0)], 7, -680876936 ); // 1
|
|
91
|
+
d = ff( d, a, b, c, x[int(i+ 1)], 12, -389564586 ); // 2
|
|
92
|
+
c = ff( c, d, a, b, x[int(i+ 2)], 17, 606105819 ); // 3
|
|
93
|
+
b = ff( b, c, d, a, x[int(i+ 3)], 22, -1044525330 ); // 4
|
|
94
|
+
a = ff( a, b, c, d, x[int(i+ 4)], 7, -176418897 ); // 5
|
|
95
|
+
d = ff( d, a, b, c, x[int(i+ 5)], 12, 1200080426 ); // 6
|
|
96
|
+
c = ff( c, d, a, b, x[int(i+ 6)], 17, -1473231341 ); // 7
|
|
97
|
+
b = ff( b, c, d, a, x[int(i+ 7)], 22, -45705983 ); // 8
|
|
98
|
+
a = ff( a, b, c, d, x[int(i+ 8)], 7, 1770035416 ); // 9
|
|
99
|
+
d = ff( d, a, b, c, x[int(i+ 9)], 12, -1958414417 ); // 10
|
|
100
|
+
c = ff( c, d, a, b, x[int(i+10)], 17, -42063 ); // 11
|
|
101
|
+
b = ff( b, c, d, a, x[int(i+11)], 22, -1990404162 ); // 12
|
|
102
|
+
a = ff( a, b, c, d, x[int(i+12)], 7, 1804603682 ); // 13
|
|
103
|
+
d = ff( d, a, b, c, x[int(i+13)], 12, -40341101 ); // 14
|
|
104
|
+
c = ff( c, d, a, b, x[int(i+14)], 17, -1502002290 ); // 15
|
|
105
|
+
b = ff( b, c, d, a, x[int(i+15)], 22, 1236535329 ); // 16
|
|
106
|
+
// Round 2
|
|
107
|
+
a = gg( a, b, c, d, x[int(i+ 1)], 5, -165796510 ); // 17
|
|
108
|
+
d = gg( d, a, b, c, x[int(i+ 6)], 9, -1069501632 ); // 18
|
|
109
|
+
c = gg( c, d, a, b, x[int(i+11)], 14, 643717713 ); // 19
|
|
110
|
+
b = gg( b, c, d, a, x[int(i+ 0)], 20, -373897302 ); // 20
|
|
111
|
+
a = gg( a, b, c, d, x[int(i+ 5)], 5, -701558691 ); // 21
|
|
112
|
+
d = gg( d, a, b, c, x[int(i+10)], 9, 38016083 ); // 22
|
|
113
|
+
c = gg( c, d, a, b, x[int(i+15)], 14, -660478335 ); // 23
|
|
114
|
+
b = gg( b, c, d, a, x[int(i+ 4)], 20, -405537848 ); // 24
|
|
115
|
+
a = gg( a, b, c, d, x[int(i+ 9)], 5, 568446438 ); // 25
|
|
116
|
+
d = gg( d, a, b, c, x[int(i+14)], 9, -1019803690 ); // 26
|
|
117
|
+
c = gg( c, d, a, b, x[int(i+ 3)], 14, -187363961 ); // 27
|
|
118
|
+
b = gg( b, c, d, a, x[int(i+ 8)], 20, 1163531501 ); // 28
|
|
119
|
+
a = gg( a, b, c, d, x[int(i+13)], 5, -1444681467 ); // 29
|
|
120
|
+
d = gg( d, a, b, c, x[int(i+ 2)], 9, -51403784 ); // 30
|
|
121
|
+
c = gg( c, d, a, b, x[int(i+ 7)], 14, 1735328473 ); // 31
|
|
122
|
+
b = gg( b, c, d, a, x[int(i+12)], 20, -1926607734 ); // 32
|
|
123
|
+
// Round 3
|
|
124
|
+
a = hh( a, b, c, d, x[int(i+ 5)], 4, -378558 ); // 33
|
|
125
|
+
d = hh( d, a, b, c, x[int(i+ 8)], 11, -2022574463 ); // 34
|
|
126
|
+
c = hh( c, d, a, b, x[int(i+11)], 16, 1839030562 ); // 35
|
|
127
|
+
b = hh( b, c, d, a, x[int(i+14)], 23, -35309556 ); // 36
|
|
128
|
+
a = hh( a, b, c, d, x[int(i+ 1)], 4, -1530992060 ); // 37
|
|
129
|
+
d = hh( d, a, b, c, x[int(i+ 4)], 11, 1272893353 ); // 38
|
|
130
|
+
c = hh( c, d, a, b, x[int(i+ 7)], 16, -155497632 ); // 39
|
|
131
|
+
b = hh( b, c, d, a, x[int(i+10)], 23, -1094730640 ); // 40
|
|
132
|
+
a = hh( a, b, c, d, x[int(i+13)], 4, 681279174 ); // 41
|
|
133
|
+
d = hh( d, a, b, c, x[int(i+ 0)], 11, -358537222 ); // 42
|
|
134
|
+
c = hh( c, d, a, b, x[int(i+ 3)], 16, -722521979 ); // 43
|
|
135
|
+
b = hh( b, c, d, a, x[int(i+ 6)], 23, 76029189 ); // 44
|
|
136
|
+
a = hh( a, b, c, d, x[int(i+ 9)], 4, -640364487 ); // 45
|
|
137
|
+
d = hh( d, a, b, c, x[int(i+12)], 11, -421815835 ); // 46
|
|
138
|
+
c = hh( c, d, a, b, x[int(i+15)], 16, 530742520 ); // 47
|
|
139
|
+
b = hh( b, c, d, a, x[int(i+ 2)], 23, -995338651 ); // 48
|
|
140
|
+
// Round 4
|
|
141
|
+
a = ii( a, b, c, d, x[int(i+ 0)], 6, -198630844 ); // 49
|
|
142
|
+
d = ii( d, a, b, c, x[int(i+ 7)], 10, 1126891415 ); // 50
|
|
143
|
+
c = ii( c, d, a, b, x[int(i+14)], 15, -1416354905 ); // 51
|
|
144
|
+
b = ii( b, c, d, a, x[int(i+ 5)], 21, -57434055 ); // 52
|
|
145
|
+
a = ii( a, b, c, d, x[int(i+12)], 6, 1700485571 ); // 53
|
|
146
|
+
d = ii( d, a, b, c, x[int(i+ 3)], 10, -1894986606 ); // 54
|
|
147
|
+
c = ii( c, d, a, b, x[int(i+10)], 15, -1051523 ); // 55
|
|
148
|
+
b = ii( b, c, d, a, x[int(i+ 1)], 21, -2054922799 ); // 56
|
|
149
|
+
a = ii( a, b, c, d, x[int(i+ 8)], 6, 1873313359 ); // 57
|
|
150
|
+
d = ii( d, a, b, c, x[int(i+15)], 10, -30611744 ); // 58
|
|
151
|
+
c = ii( c, d, a, b, x[int(i+ 6)], 15, -1560198380 ); // 59
|
|
152
|
+
b = ii( b, c, d, a, x[int(i+13)], 21, 1309151649 ); // 60
|
|
153
|
+
a = ii( a, b, c, d, x[int(i+ 4)], 6, -145523070 ); // 61
|
|
154
|
+
d = ii( d, a, b, c, x[int(i+11)], 10, -1120210379 ); // 62
|
|
155
|
+
c = ii( c, d, a, b, x[int(i+ 2)], 15, 718787259 ); // 63
|
|
156
|
+
b = ii( b, c, d, a, x[int(i+ 9)], 21, -343485551 ); // 64
|
|
157
|
+
a += aa;
|
|
158
|
+
b += bb;
|
|
159
|
+
c += cc;
|
|
160
|
+
d += dd;
|
|
161
|
+
}
|
|
162
|
+
digest = new ByteArray()
|
|
163
|
+
digest.writeInt(a);
|
|
164
|
+
digest.writeInt(b);
|
|
165
|
+
digest.writeInt(c);
|
|
166
|
+
digest.writeInt(d);
|
|
167
|
+
digest.position = 0;
|
|
168
|
+
// Finish up by concatening the buffers with their hex output
|
|
169
|
+
return IntUtil.toHex( a ) + IntUtil.toHex( b ) + IntUtil.toHex( c ) + IntUtil.toHex( d );
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Auxiliary function f as defined in RFC
|
|
173
|
+
*/
|
|
174
|
+
private static function f( x:int, y:int, z:int ):int {
|
|
175
|
+
return ( x & y ) | ( (~x) & z );
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Auxiliary function g as defined in RFC
|
|
179
|
+
*/
|
|
180
|
+
private static function g( x:int, y:int, z:int ):int {
|
|
181
|
+
return ( x & z ) | ( y & (~z) );
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* Auxiliary function h as defined in RFC
|
|
185
|
+
*/
|
|
186
|
+
private static function h( x:int, y:int, z:int ):int {
|
|
187
|
+
return x ^ y ^ z;
|
|
188
|
+
}
|
|
189
|
+
/**
|
|
190
|
+
* Auxiliary function i as defined in RFC
|
|
191
|
+
*/
|
|
192
|
+
private static function i( x:int, y:int, z:int ):int {
|
|
193
|
+
return y ^ ( x | (~z) );
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* A generic transformation function. The logic of ff, gg, hh, and
|
|
197
|
+
* ii are all the same, minus the function used, so pull that logic
|
|
198
|
+
* out and simplify the method bodies for the transoformation functions.
|
|
199
|
+
*/
|
|
200
|
+
private static function transform( func:Function, a:int, b:int, c:int, d:int, x:int, s:int, t:int):int {
|
|
201
|
+
var tmp:int = a + int( func( b, c, d ) ) + x + t;
|
|
202
|
+
return IntUtil.rol( tmp, s ) + b;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* ff transformation function
|
|
206
|
+
*/
|
|
207
|
+
private static function ff ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {
|
|
208
|
+
return transform( f, a, b, c, d, x, s, t );
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* gg transformation function
|
|
212
|
+
*/
|
|
213
|
+
private static function gg ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {
|
|
214
|
+
return transform( g, a, b, c, d, x, s, t );
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* hh transformation function
|
|
218
|
+
*/
|
|
219
|
+
private static function hh ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {
|
|
220
|
+
return transform( h, a, b, c, d, x, s, t );
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* ii transformation function
|
|
224
|
+
*/
|
|
225
|
+
private static function ii ( a:int, b:int, c:int, d:int, x:int, s:int, t:int ):int {
|
|
226
|
+
return transform( i, a, b, c, d, x, s, t );
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Converts a string to a sequence of 16-word blocks
|
|
230
|
+
* that we'll do the processing on. Appends padding
|
|
231
|
+
* and length in the process.
|
|
232
|
+
*
|
|
233
|
+
* @param s The string to split into blocks
|
|
234
|
+
* @return An array containing the blocks that s was
|
|
235
|
+
* split into.
|
|
236
|
+
*/
|
|
237
|
+
private static function createBlocks( s:ByteArray ):Array {
|
|
238
|
+
var blocks:Array = new Array();
|
|
239
|
+
var len:int = s.length * 8;
|
|
240
|
+
var mask:int = 0xFF; // ignore hi byte of characters > 0xFF
|
|
241
|
+
for( var i:int = 0; i < len; i += 8 ) {
|
|
242
|
+
blocks[ int(i >> 5) ] |= ( s[ i / 8 ] & mask ) << ( i % 32 );
|
|
243
|
+
}
|
|
244
|
+
// append padding and length
|
|
245
|
+
blocks[ int(len >> 5) ] |= 0x80 << ( len % 32 );
|
|
246
|
+
blocks[ int(( ( ( len + 64 ) >>> 9 ) << 4 ) + 14) ] = len;
|
|
247
|
+
return blocks;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|