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,14 @@
|
|
1
|
+
package gs.easing {
|
2
|
+
public class Back {
|
3
|
+
public static function easeIn (t:Number, b:Number, c:Number, d:Number, s:Number = 1.70158):Number {
|
4
|
+
return c*(t/=d)*t*((s+1)*t - s) + b;
|
5
|
+
}
|
6
|
+
public static function easeOut (t:Number, b:Number, c:Number, d:Number, s:Number = 1.70158):Number {
|
7
|
+
return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
|
8
|
+
}
|
9
|
+
public static function easeInOut (t:Number, b:Number, c:Number, d:Number, s:Number = 1.70158):Number {
|
10
|
+
if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
|
11
|
+
return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
package gs.easing {
|
2
|
+
public class Bounce {
|
3
|
+
public static function easeOut (t:Number, b:Number, c:Number, d:Number):Number {
|
4
|
+
if ((t/=d) < (1/2.75)) {
|
5
|
+
return c*(7.5625*t*t) + b;
|
6
|
+
} else if (t < (2/2.75)) {
|
7
|
+
return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
|
8
|
+
} else if (t < (2.5/2.75)) {
|
9
|
+
return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
|
10
|
+
} else {
|
11
|
+
return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
public static function easeIn (t:Number, b:Number, c:Number, d:Number):Number {
|
15
|
+
return c - easeOut(d-t, 0, c, d) + b;
|
16
|
+
}
|
17
|
+
public static function easeInOut (t:Number, b:Number, c:Number, d:Number):Number {
|
18
|
+
if (t < d/2) return easeIn (t*2, 0, c, d) * .5 + b;
|
19
|
+
else return easeOut (t*2-d, 0, c, d) * .5 + c*.5 + b;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
package gs.easing {
|
2
|
+
public class Circ {
|
3
|
+
public static function easeIn (t:Number, b:Number, c:Number, d:Number):Number {
|
4
|
+
return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
|
5
|
+
}
|
6
|
+
public static function easeOut (t:Number, b:Number, c:Number, d:Number):Number {
|
7
|
+
return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
|
8
|
+
}
|
9
|
+
public static function easeInOut (t:Number, b:Number, c:Number, d:Number):Number {
|
10
|
+
if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
|
11
|
+
return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
package gs.easing {
|
2
|
+
public class Cubic {
|
3
|
+
public static function easeIn (t:Number, b:Number, c:Number, d:Number):Number {
|
4
|
+
return c*(t/=d)*t*t + b;
|
5
|
+
}
|
6
|
+
public static function easeOut (t:Number, b:Number, c:Number, d:Number):Number {
|
7
|
+
return c*((t=t/d-1)*t*t + 1) + b;
|
8
|
+
}
|
9
|
+
public static function easeInOut (t:Number, b:Number, c:Number, d:Number):Number {
|
10
|
+
if ((t/=d/2) < 1) return c/2*t*t*t + b;
|
11
|
+
return c/2*((t-=2)*t*t + 2) + b;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
package gs.easing {
|
2
|
+
public class Elastic {
|
3
|
+
private static const _2PI:Number = Math.PI * 2;
|
4
|
+
public static function easeIn (t:Number, b:Number, c:Number, d:Number, a:Number = 0, p:Number = 0):Number {
|
5
|
+
var s:Number;
|
6
|
+
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
7
|
+
if (!a || a < Math.abs(c)) { a=c; s = p/4; }
|
8
|
+
else s = p/_2PI * Math.asin (c/a);
|
9
|
+
return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*_2PI/p )) + b;
|
10
|
+
}
|
11
|
+
public static function easeOut (t:Number, b:Number, c:Number, d:Number, a:Number = 0, p:Number = 0):Number {
|
12
|
+
var s:Number;
|
13
|
+
if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3;
|
14
|
+
if (!a || a < Math.abs(c)) { a=c; s = p/4; }
|
15
|
+
else s = p/_2PI * Math.asin (c/a);
|
16
|
+
return (a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*_2PI/p ) + c + b);
|
17
|
+
}
|
18
|
+
public static function easeInOut (t:Number, b:Number, c:Number, d:Number, a:Number = 0, p:Number = 0):Number {
|
19
|
+
var s:Number;
|
20
|
+
if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5);
|
21
|
+
if (!a || a < Math.abs(c)) { a=c; s = p/4; }
|
22
|
+
else s = p/_2PI * Math.asin (c/a);
|
23
|
+
if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*_2PI/p )) + b;
|
24
|
+
return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*_2PI/p )*.5 + c + b;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
package gs.easing {
|
2
|
+
public class Expo {
|
3
|
+
public static function easeIn(t:Number, b:Number, c:Number, d:Number):Number {
|
4
|
+
return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b - c * 0.001;
|
5
|
+
}
|
6
|
+
public static function easeOut(t:Number, b:Number, c:Number, d:Number):Number {
|
7
|
+
return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
|
8
|
+
}
|
9
|
+
public static function easeInOut(t:Number, b:Number, c:Number, d:Number):Number {
|
10
|
+
if (t==0) return b;
|
11
|
+
if (t==d) return b+c;
|
12
|
+
if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
|
13
|
+
return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
package gs.easing {
|
2
|
+
public class Linear {
|
3
|
+
public static function easeNone (t:Number, b:Number, c:Number, d:Number):Number {
|
4
|
+
return c*t/d + b;
|
5
|
+
}
|
6
|
+
public static function easeIn (t:Number, b:Number, c:Number, d:Number):Number {
|
7
|
+
return c*t/d + b;
|
8
|
+
}
|
9
|
+
public static function easeOut (t:Number, b:Number, c:Number, d:Number):Number {
|
10
|
+
return c*t/d + b;
|
11
|
+
}
|
12
|
+
public static function easeInOut (t:Number, b:Number, c:Number, d:Number):Number {
|
13
|
+
return c*t/d + b;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
package gs.easing {
|
2
|
+
public class Quad {
|
3
|
+
public static function easeIn (t:Number, b:Number, c:Number, d:Number):Number {
|
4
|
+
return c*(t/=d)*t + b;
|
5
|
+
}
|
6
|
+
public static function easeOut (t:Number, b:Number, c:Number, d:Number):Number {
|
7
|
+
return -c *(t/=d)*(t-2) + b;
|
8
|
+
}
|
9
|
+
public static function easeInOut (t:Number, b:Number, c:Number, d:Number):Number {
|
10
|
+
if ((t/=d/2) < 1) return c/2*t*t + b;
|
11
|
+
return -c/2 * ((--t)*(t-2) - 1) + b;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
package gs.easing {
|
2
|
+
public class Quart {
|
3
|
+
public static function easeIn (t:Number, b:Number, c:Number, d:Number):Number {
|
4
|
+
return c*(t/=d)*t*t*t + b;
|
5
|
+
}
|
6
|
+
public static function easeOut (t:Number, b:Number, c:Number, d:Number):Number {
|
7
|
+
return -c * ((t=t/d-1)*t*t*t - 1) + b;
|
8
|
+
}
|
9
|
+
public static function easeInOut (t:Number, b:Number, c:Number, d:Number):Number {
|
10
|
+
if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
|
11
|
+
return -c/2 * ((t-=2)*t*t*t - 2) + b;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
package gs.easing {
|
2
|
+
public class Quint {
|
3
|
+
public static function easeIn (t:Number, b:Number, c:Number, d:Number):Number {
|
4
|
+
return c*(t/=d)*t*t*t*t + b;
|
5
|
+
}
|
6
|
+
public static function easeOut (t:Number, b:Number, c:Number, d:Number):Number {
|
7
|
+
return c*((t=t/d-1)*t*t*t*t + 1) + b;
|
8
|
+
}
|
9
|
+
public static function easeInOut (t:Number, b:Number, c:Number, d:Number):Number {
|
10
|
+
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
|
11
|
+
return c/2*((t-=2)*t*t*t*t + 2) + b;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
package gs.easing {
|
2
|
+
public class Sine {
|
3
|
+
private static const _HALF_PI:Number = Math.PI / 2;
|
4
|
+
public static function easeIn (t:Number, b:Number, c:Number, d:Number):Number {
|
5
|
+
return -c * Math.cos(t/d * _HALF_PI) + c + b;
|
6
|
+
}
|
7
|
+
public static function easeOut (t:Number, b:Number, c:Number, d:Number):Number {
|
8
|
+
return c * Math.sin(t/d * _HALF_PI) + b;
|
9
|
+
}
|
10
|
+
public static function easeInOut (t:Number, b:Number, c:Number, d:Number):Number {
|
11
|
+
return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
package gs.easing {
|
2
|
+
public class Strong {
|
3
|
+
public static function easeIn(t:Number, b:Number, c:Number, d:Number):Number {
|
4
|
+
return c*(t/=d)*t*t*t*t + b;
|
5
|
+
}
|
6
|
+
public static function easeOut(t:Number, b:Number, c:Number, d:Number):Number {
|
7
|
+
return c*((t=t/d-1)*t*t*t*t + 1) + b;
|
8
|
+
}
|
9
|
+
public static function easeInOut(t:Number, b:Number, c:Number, d:Number):Number {
|
10
|
+
if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
|
11
|
+
return c/2*((t-=2)*t*t*t*t + 2) + b;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
This readme file applies to all eases in this directory EXCEPT the CustomEase.
|
2
|
+
============================================================================================
|
3
|
+
Easing Equations
|
4
|
+
(c) 2003 Robert Penner, all rights reserved.
|
5
|
+
This work is subject to the terms in http://www.robertpenner.com/easing_terms_of_use.html.
|
6
|
+
============================================================================================
|
7
|
+
TERMS OF USE - EASING EQUATIONS
|
8
|
+
Open source under the BSD License.
|
9
|
+
All rights reserved.
|
10
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
11
|
+
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
12
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
13
|
+
* Neither the name of the author nor the names of contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
14
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
@@ -0,0 +1,26 @@
|
|
1
|
+
/*
|
2
|
+
VERSION: 0.9
|
3
|
+
DATE: 7/15/2008
|
4
|
+
ACTIONSCRIPT VERSION: 3.0 (Requires Flash Player 9)
|
5
|
+
DESCRIPTION:
|
6
|
+
Used for Event dispatching from the AS3 version of TweenMax (www.tweenmax.com)
|
7
|
+
CODED BY: Jack Doyle, jack@greensock.com
|
8
|
+
Copyright 2008, GreenSock (This work is subject to the terms at http://www.greensock.com/terms_of_use.html.)
|
9
|
+
*/
|
10
|
+
package gs.events {
|
11
|
+
import flash.events.Event;
|
12
|
+
public class TweenEvent extends Event {
|
13
|
+
public static const version:Number = 0.9;
|
14
|
+
public static const START:String = "start";
|
15
|
+
public static const UPDATE:String = "update";
|
16
|
+
public static const COMPLETE:String = "complete";
|
17
|
+
public var info:Object;
|
18
|
+
public function TweenEvent($type:String, $info:Object = null, $bubbles:Boolean = false, $cancelable:Boolean = false){
|
19
|
+
super($type, $bubbles, $cancelable);
|
20
|
+
this.info = $info;
|
21
|
+
}
|
22
|
+
public override function clone():Event{
|
23
|
+
return new TweenEvent(this.type, this.info, this.bubbles, this.cancelable);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
/*
|
2
|
+
VERSION: 0.9
|
3
|
+
DATE: 8/5/2008
|
4
|
+
ACTIONSCRIPT VERSION: 3.0
|
5
|
+
DESCRIPTION:
|
6
|
+
This class works in conjunction with the TweenFilterLiteVars or TweenMaxVars class to grant
|
7
|
+
strict data typing and code hinting (in most code editors) for filter tweens. See the documentation in
|
8
|
+
the TweenFilterLiteVars, or TweenMaxVars for more information.
|
9
|
+
USAGE:
|
10
|
+
Instead of TweenMax.to(my_mc, 1, {bevelFilter:{distance:5, blurX:10, blurY:10, strength:2}, onComplete:myFunction}), you could use this utility like:
|
11
|
+
var myVars:TweenMaxVars = new TweenMaxVars();
|
12
|
+
myVars.bevelFilter = new BevelFilterVars(5, 10, 10, 2);
|
13
|
+
myVars.onComplete = myFunction;
|
14
|
+
TweenMax.to(my_mc, 1, myVars);
|
15
|
+
NOTES:
|
16
|
+
- This utility is completely optional. If you prefer the shorter synatax in the regular TweenFilterLite/TweenMax class, feel
|
17
|
+
free to use it. The purpose of this utility is simply to enable code hinting and to allow for strict data typing.
|
18
|
+
- You cannot define relative tween values with this utility. If you need relative values, just use the shorter (non strictly
|
19
|
+
data typed) syntax, like TweenMax.to(my_mc, 1, {bevelFilter:{blurX:"-5", blurY:"3"}});
|
20
|
+
CODED BY: Jack Doyle, jack@greensock.com
|
21
|
+
Copyright 2008, GreenSock (This work is subject to the terms in http://www.greensock.com/terms_of_use.html.)
|
22
|
+
*/
|
23
|
+
package gs.utils.tween {
|
24
|
+
public class BevelFilterVars {
|
25
|
+
public var distance:Number;
|
26
|
+
public var blurX:Number;
|
27
|
+
public var blurY:Number;
|
28
|
+
public var strength:Number;
|
29
|
+
public var angle:Number;
|
30
|
+
public var highlightAlpha:Number;
|
31
|
+
public var highlightColor:uint;
|
32
|
+
public var shadowAlpha:Number;
|
33
|
+
public var shadowColor:uint
|
34
|
+
public var quality:uint;
|
35
|
+
public function BevelFilterVars($distance:Number=4, $blurX:Number=4, $blurY:Number=4, $strength:Number=1, $angle:Number=45, $highlightAlpha:Number=1, $highlightColor:uint=0xFFFFFF, $shadowAlpha:Number=1, $shadowColor:uint=0x000000, $quality:uint=2) {
|
36
|
+
this.distance = $distance;
|
37
|
+
this.blurX = $blurX;
|
38
|
+
this.blurY = $blurY;
|
39
|
+
this.strength = $strength;
|
40
|
+
this.angle = $angle;
|
41
|
+
this.highlightAlpha = $highlightAlpha;
|
42
|
+
this.highlightColor = $highlightColor;
|
43
|
+
this.shadowAlpha = $shadowAlpha;
|
44
|
+
this.shadowColor = $shadowColor;
|
45
|
+
this.quality = $quality;
|
46
|
+
}
|
47
|
+
public static function createFromGeneric($vars:Object):BevelFilterVars { //for parsing values that are passed in as generic Objects, like blurFilter:{blurX:5, blurY:3} (typically via the constructor)
|
48
|
+
if ($vars is BevelFilterVars) {
|
49
|
+
return $vars as BevelFilterVars;
|
50
|
+
}
|
51
|
+
return new BevelFilterVars($vars.distance || 0,
|
52
|
+
$vars.blurX || 0,
|
53
|
+
$vars.blurY || 0,
|
54
|
+
($vars.strength == null) ? 1 : $vars.strength,
|
55
|
+
($vars.angle == null) ? 45 : $vars.angle,
|
56
|
+
($vars.highlightAlpha == null) ? 1 : $vars.highlightAlpha,
|
57
|
+
($vars.highlightColor == null) ? 0xFFFFFF : $vars.highlightColor,
|
58
|
+
($vars.shadowAlpha == null) ? 1 : $vars.shadowAlpha,
|
59
|
+
($vars.shadowColor == null) ? 0xFFFFFF : $vars.shadowColor,
|
60
|
+
$vars.quality || 2);
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
/*
|
2
|
+
VERSION: 0.9
|
3
|
+
DATE: 8/5/2008
|
4
|
+
ACTIONSCRIPT VERSION: 3.0
|
5
|
+
DESCRIPTION:
|
6
|
+
This class works in conjunction with the TweenFilterLiteVars or TweenMaxVars class to grant
|
7
|
+
strict data typing and code hinting (in most code editors) for filter tweens. See the documentation in
|
8
|
+
the TweenFilterLiteVars, or TweenMaxVars for more information.
|
9
|
+
USAGE:
|
10
|
+
Instead of TweenMax.to(my_mc, 1, {blurFilter:{blurX:10, blurY:10}, onComplete:myFunction}), you could use this utility like:
|
11
|
+
var myVars:TweenMaxVars = new TweenMaxVars();
|
12
|
+
myVars.blurFilter = new BlurFilterVars(10, 10);
|
13
|
+
myVars.onComplete = myFunction;
|
14
|
+
TweenMax.to(my_mc, 1, myVars);
|
15
|
+
NOTES:
|
16
|
+
- This utility is completely optional. If you prefer the shorter synatax in the regular TweenFilterLite/TweenMax class, feel
|
17
|
+
free to use it. The purpose of this utility is simply to enable code hinting and to allow for strict data typing.
|
18
|
+
- You cannot define relative tween values with this utility. If you need relative values, just use the shorter (non strictly
|
19
|
+
data typed) syntax, like TweenMax.to(my_mc, 1, {blurFilter:{blurX:"-5", blurY:"3"}});
|
20
|
+
CODED BY: Jack Doyle, jack@greensock.com
|
21
|
+
Copyright 2008, GreenSock (This work is subject to the terms in http://www.greensock.com/terms_of_use.html.)
|
22
|
+
*/
|
23
|
+
package gs.utils.tween {
|
24
|
+
public class BlurFilterVars {
|
25
|
+
public var blurX:Number;
|
26
|
+
public var blurY:Number;
|
27
|
+
public var quality:uint;
|
28
|
+
public function BlurFilterVars($blurX:Number=10, $blurY:Number=10, $quality:uint=2) {
|
29
|
+
this.blurX = $blurX;
|
30
|
+
this.blurY = $blurY;
|
31
|
+
this.quality = $quality;
|
32
|
+
}
|
33
|
+
public static function createFromGeneric($vars:Object):BlurFilterVars { //for parsing values that are passed in as generic Objects, like blurFilter:{blurX:5, blurY:3} (typically via the constructor)
|
34
|
+
if ($vars is BlurFilterVars) {
|
35
|
+
return $vars as BlurFilterVars;
|
36
|
+
}
|
37
|
+
return new BlurFilterVars($vars.blurX || 0,
|
38
|
+
$vars.blurY || 0,
|
39
|
+
$vars.quality || 2);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
/*
|
2
|
+
VERSION: 0.9
|
3
|
+
DATE: 8/5/2008
|
4
|
+
ACTIONSCRIPT VERSION: 3.0
|
5
|
+
DESCRIPTION:
|
6
|
+
This class works in conjunction with the TweenFilterLiteVars or TweenMaxVars class to grant
|
7
|
+
strict data typing and code hinting (in most code editors) for filter tweens. See the documentation in
|
8
|
+
the TweenFilterLiteVars, or TweenMaxVars for more information.
|
9
|
+
USAGE:
|
10
|
+
Instead of TweenMax.to(my_mc, 1, {colorMatrixFilter:{colorize:0xFF0000, amount:0.5}, onComplete:myFunction}), you could use this utility like:
|
11
|
+
var myVars:TweenMaxVars = new TweenMaxVars();
|
12
|
+
myVars.colorMatrixFilter = new ColorMatrixFilterVars(0xFF0000, 0.5);
|
13
|
+
myVars.onComplete = myFunction;
|
14
|
+
TweenMax.to(my_mc, 1, myVars);
|
15
|
+
NOTES:
|
16
|
+
- This utility is completely optional. If you prefer the shorter synatax in the regular TweenFilterLite/TweenMax class, feel
|
17
|
+
free to use it. The purpose of this utility is simply to enable code hinting and to allow for strict data typing.
|
18
|
+
- You cannot define relative tween values with this utility. If you need relative values, just use the shorter (non strictly
|
19
|
+
data typed) syntax, like TweenMax.to(my_mc, 1, {colorMatrixFilter:{contrast:0.5, relative:true}});
|
20
|
+
CODED BY: Jack Doyle, jack@greensock.com
|
21
|
+
Copyright 2008, GreenSock (This work is subject to the terms in http://www.greensock.com/terms_of_use.html.)
|
22
|
+
*/
|
23
|
+
package gs.utils.tween {
|
24
|
+
import gs.TweenFilterLite;
|
25
|
+
public class ColorMatrixFilterVars {
|
26
|
+
private static var _ID_MATRIX:Array = [1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];
|
27
|
+
public var matrix:Array;
|
28
|
+
public function ColorMatrixFilterVars($colorize:uint=0xFFFFFF, $amount:Number=1, $saturation:Number=1, $contrast:Number=1, $brightness:Number=1, $hue:Number=0, $threshold:Number=-1) {
|
29
|
+
this.matrix = _ID_MATRIX.slice();
|
30
|
+
if ($brightness != 1) {
|
31
|
+
setBrightness($brightness);
|
32
|
+
}
|
33
|
+
if ($contrast != 1) {
|
34
|
+
setContrast($contrast);
|
35
|
+
}
|
36
|
+
if ($hue != 0) {
|
37
|
+
setHue($hue);
|
38
|
+
}
|
39
|
+
if ($saturation != 1) {
|
40
|
+
setSaturation($saturation);
|
41
|
+
}
|
42
|
+
if ($threshold != -1) {
|
43
|
+
setThreshold($threshold);
|
44
|
+
}
|
45
|
+
if ($colorize != 0xFFFFFF) {
|
46
|
+
setColorize($colorize, $amount);
|
47
|
+
}
|
48
|
+
}
|
49
|
+
public function setBrightness($n:Number):void {
|
50
|
+
this.matrix = TweenFilterLite.setBrightness(this.matrix, $n);
|
51
|
+
}
|
52
|
+
public function setContrast($n:Number):void {
|
53
|
+
this.matrix = TweenFilterLite.setContrast(this.matrix, $n);
|
54
|
+
}
|
55
|
+
public function setHue($n:Number):void {
|
56
|
+
this.matrix = TweenFilterLite.setHue(this.matrix, $n);
|
57
|
+
}
|
58
|
+
public function setSaturation($n:Number):void {
|
59
|
+
this.matrix = TweenFilterLite.setSaturation(this.matrix, $n);
|
60
|
+
}
|
61
|
+
public function setThreshold($n:Number):void {
|
62
|
+
this.matrix = TweenFilterLite.setThreshold(this.matrix, $n);
|
63
|
+
}
|
64
|
+
public function setColorize($color:uint, $amount:Number=1):void {
|
65
|
+
this.matrix = TweenFilterLite.colorize(this.matrix, $color, $amount);
|
66
|
+
}
|
67
|
+
public static function createFromGeneric($vars:Object):ColorMatrixFilterVars { //for parsing values that are passed in as generic Objects, like blurFilter:{blurX:5, blurY:3} (typically via the constructor)
|
68
|
+
var v:ColorMatrixFilterVars;
|
69
|
+
if ($vars is ColorMatrixFilterVars) {
|
70
|
+
v = $vars as ColorMatrixFilterVars;
|
71
|
+
} else if ($vars.matrix != null) {
|
72
|
+
v = new ColorMatrixFilterVars();
|
73
|
+
v.matrix = $vars.matrix;
|
74
|
+
} else {
|
75
|
+
v = new ColorMatrixFilterVars($vars.colorize || 0xFFFFFF,
|
76
|
+
($vars.amount == null) ? 1 : $vars.amount,
|
77
|
+
($vars.saturation == null) ? 1 : $vars.saturation,
|
78
|
+
($vars.contrast == null) ? 1 : $vars.contrast,
|
79
|
+
($vars.brightness == null) ? 1 : $vars.brightness,
|
80
|
+
$vars.hue || 0,
|
81
|
+
($vars.threshold == null) ? -1 : $vars.threshold);
|
82
|
+
}
|
83
|
+
return v;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
/*
|
2
|
+
VERSION: 0.9
|
3
|
+
DATE: 8/5/2008
|
4
|
+
ACTIONSCRIPT VERSION: 3.0
|
5
|
+
DESCRIPTION:
|
6
|
+
This class works in conjunction with the TweenFilterLiteVars or TweenMaxVars class to grant
|
7
|
+
strict data typing and code hinting (in most code editors) for filter tweens. See the documentation in
|
8
|
+
the TweenFilterLiteVars, or TweenMaxVars for more information.
|
9
|
+
USAGE:
|
10
|
+
Instead of TweenMax.to(my_mc, 1, {dropShadowFilter:{distance:5, blurX:10, blurY:10, color:0xFF0000}, onComplete:myFunction}), you could use this utility like:
|
11
|
+
var myVars:TweenMaxVars = new TweenMaxVars();
|
12
|
+
myVars.dropShadowFilter = new DropShadowFilterVars(5, 10, 10, 1, 45, 0xFF0000);
|
13
|
+
myVars.onComplete = myFunction;
|
14
|
+
TweenMax.to(my_mc, 1, myVars);
|
15
|
+
NOTES:
|
16
|
+
- This utility is completely optional. If you prefer the shorter synatax in the regular TweenFilterLite/TweenMax class, feel
|
17
|
+
free to use it. The purpose of this utility is simply to enable code hinting and to allow for strict data typing.
|
18
|
+
- You cannot define relative tween values with this utility. If you need relative values, just use the shorter (non strictly
|
19
|
+
data typed) syntax, like TweenMax.to(my_mc, 1, {dropShadowFilter:{blurX:"-5", blurY:"3"}});
|
20
|
+
CODED BY: Jack Doyle, jack@greensock.com
|
21
|
+
Copyright 2008, GreenSock (This work is subject to the terms in http://www.greensock.com/terms_of_use.html.)
|
22
|
+
*/
|
23
|
+
package gs.utils.tween {
|
24
|
+
public class DropShadowFilterVars {
|
25
|
+
public var distance:Number;
|
26
|
+
public var blurX:Number;
|
27
|
+
public var blurY:Number;
|
28
|
+
public var alpha:Number;
|
29
|
+
public var angle:Number;
|
30
|
+
public var color:uint;
|
31
|
+
public var strength:Number;
|
32
|
+
public var inner:Boolean;
|
33
|
+
public var knockout:Boolean;
|
34
|
+
public var hideObject:Boolean;
|
35
|
+
public var quality:uint;
|
36
|
+
public function DropShadowFilterVars($distance:Number=4, $blurX:Number=4, $blurY:Number=4, $alpha:Number=1, $angle:Number=45, $color:uint=0x000000, $strength:Number=2, $inner:Boolean=false, $knockout:Boolean=false, $hideObject:Boolean=false, $quality:uint=2) {
|
37
|
+
this.distance = $distance;
|
38
|
+
this.blurX = $blurX;
|
39
|
+
this.blurY = $blurY;
|
40
|
+
this.alpha = $alpha;
|
41
|
+
this.angle = $angle;
|
42
|
+
this.color = $color;
|
43
|
+
this.strength = $strength;
|
44
|
+
this.inner = $inner;
|
45
|
+
this.knockout = $knockout;
|
46
|
+
this.hideObject = $hideObject;
|
47
|
+
this.quality = $quality;
|
48
|
+
}
|
49
|
+
public static function createFromGeneric($vars:Object):DropShadowFilterVars { //for parsing values that are passed in as generic Objects, like blurFilter:{blurX:5, blurY:3} (typically via the constructor)
|
50
|
+
if ($vars is DropShadowFilterVars) {
|
51
|
+
return $vars as DropShadowFilterVars;
|
52
|
+
}
|
53
|
+
return new DropShadowFilterVars($vars.distance || 0,
|
54
|
+
$vars.blurX || 0,
|
55
|
+
$vars.blurY || 0,
|
56
|
+
$vars.alpha || 0,
|
57
|
+
($vars.angle == null) ? 45 : $vars.angle,
|
58
|
+
($vars.color == null) ? 0x000000 : $vars.color,
|
59
|
+
($vars.strength == null) ? 2 : $vars.strength,
|
60
|
+
Boolean($vars.inner),
|
61
|
+
Boolean($vars.knockout),
|
62
|
+
Boolean($vars.hideObject),
|
63
|
+
$vars.quality || 2);
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
/*
|
2
|
+
VERSION: 0.9
|
3
|
+
DATE: 8/5/2008
|
4
|
+
ACTIONSCRIPT VERSION: 3.0
|
5
|
+
DESCRIPTION:
|
6
|
+
This class works in conjunction with the TweenFilterLiteVars or TweenMaxVars class to grant
|
7
|
+
strict data typing and code hinting (in most code editors) for filter tweens. See the documentation in
|
8
|
+
the TweenFilterLiteVars, or TweenMaxVars for more information.
|
9
|
+
USAGE:
|
10
|
+
Instead of TweenMax.to(my_mc, 1, {glowFilter:{blurX:10, blurY:10, color:0xFF0000}, onComplete:myFunction}), you could use this utility like:
|
11
|
+
var myVars:TweenMaxVars = new TweenMaxVars();
|
12
|
+
myVars.glowFilter = new GlowFilterVars(10, 10);
|
13
|
+
myVars.onComplete = myFunction;
|
14
|
+
TweenMax.to(my_mc, 1, myVars);
|
15
|
+
NOTES:
|
16
|
+
- This utility is completely optional. If you prefer the shorter synatax in the regular TweenFilterLite/TweenMax class, feel
|
17
|
+
free to use it. The purpose of this utility is simply to enable code hinting and to allow for strict data typing.
|
18
|
+
- You cannot define relative tween values with this utility. If you need relative values, just use the shorter (non strictly
|
19
|
+
data typed) syntax, like TweenMax.to(my_mc, 1, {glowFilter:{blurX:"-5", blurY:"3"}});
|
20
|
+
CODED BY: Jack Doyle, jack@greensock.com
|
21
|
+
Copyright 2008, GreenSock (This work is subject to the terms in http://www.greensock.com/terms_of_use.html.)
|
22
|
+
*/
|
23
|
+
package gs.utils.tween {
|
24
|
+
public class GlowFilterVars {
|
25
|
+
public var blurX:Number;
|
26
|
+
public var blurY:Number;
|
27
|
+
public var color:uint;
|
28
|
+
public var alpha:Number;
|
29
|
+
public var strength:Number;
|
30
|
+
public var inner:Boolean;
|
31
|
+
public var knockout:Boolean;
|
32
|
+
public var quality:uint;
|
33
|
+
public function GlowFilterVars($blurX:Number=10, $blurY:Number=10, $color:uint=0xFFFFFF, $alpha:Number=1, $strength:Number=2, $inner:Boolean=false, $knockout:Boolean=false, $quality:uint=2) {
|
34
|
+
this.blurX = $blurX;
|
35
|
+
this.blurY = $blurY;
|
36
|
+
this.color = $color;
|
37
|
+
this.alpha = $alpha;
|
38
|
+
this.strength = $strength;
|
39
|
+
this.inner = $inner;
|
40
|
+
this.knockout = $knockout;
|
41
|
+
this.quality = $quality;
|
42
|
+
}
|
43
|
+
public static function createFromGeneric($vars:Object):GlowFilterVars { //for parsing values that are passed in as generic Objects, like blurFilter:{blurX:5, blurY:3} (typically via the constructor)
|
44
|
+
if ($vars is GlowFilterVars) {
|
45
|
+
return $vars as GlowFilterVars;
|
46
|
+
}
|
47
|
+
return new GlowFilterVars($vars.blurX || 0,
|
48
|
+
$vars.blurY || 0,
|
49
|
+
($vars.color == null) ? 0x000000 : $vars.color,
|
50
|
+
$vars.alpha || 0,
|
51
|
+
($vars.strength == null) ? 2 : $vars.strength,
|
52
|
+
Boolean($vars.inner),
|
53
|
+
Boolean($vars.knockout),
|
54
|
+
$vars.quality || 2);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
/*
|
2
|
+
VERSION: 1.01
|
3
|
+
DATE: 8/29/2008
|
4
|
+
ACTIONSCRIPT VERSION: 3.0
|
5
|
+
DESCRIPTION:
|
6
|
+
There are 2 primary benefits of using this utility to define your TweenFilterLite variables:
|
7
|
+
1) In most code editors, code hinting will be activated which helps remind you which special properties are available in TweenFilterLite
|
8
|
+
2) It allows you to code using strict datatyping (although it doesn't force you to).
|
9
|
+
USAGE:
|
10
|
+
Instead of TweenFilterLite.to(my_mc, 1, {x:300, colorMatrixFilter:{colorize:0xFF0000, amount:0.5}, onComplete:myFunction}), you could use this utility like:
|
11
|
+
var myVars:TweenFilterLiteVars = new TweenFilterLiteVars();
|
12
|
+
myVars.addProp("x", 300); // use addProp() to add any property that doesn't already exist in the TweenFilterLiteVars instance.
|
13
|
+
myVars.colorMatrixFilter = new ColorMatrixFilterVars(0xFF0000, 0.5);
|
14
|
+
myVars.onComplete = myFunction;
|
15
|
+
TweenFilterLite.to(my_mc, 1, myVars);
|
16
|
+
Or if you just want to add multiple (non-filter) properties with one function, you can add up to 15 with the addProps() function, like:
|
17
|
+
var myVars:TweenFilterLiteVars = new TweenFilterLiteVars();
|
18
|
+
myVars.addProps("x", 300, false, "y", 100, false, "scaleX", 1.5, false, "scaleY", 1.5, false);
|
19
|
+
myVars.onComplete = myFunction;
|
20
|
+
TweenFilterLite.to(my_mc, 1, myVars);
|
21
|
+
NOTES:
|
22
|
+
- This class adds about 4 Kb to your published SWF.
|
23
|
+
- This utility is completely optional. If you prefer the shorter synatax in the regular TweenFilterLite class, feel
|
24
|
+
free to use it. The purpose of this utility is simply to enable code hinting and to allow for strict datatyping.
|
25
|
+
- You may add custom properties to this class if you want, but in order to expose them to TweenFilterLite, make sure
|
26
|
+
you also add a getter and a setter that adds the property to the _exposedInternalProps Object.
|
27
|
+
- You can reuse a single TweenFilterLiteVars Object for multiple tweens if you want, but be aware that there are a few
|
28
|
+
properties that must be handled in a special way, and once you set them, you cannot remove them. Those properties
|
29
|
+
are: frame, visible, tint, and volume. If you are altering these values, it might be better to avoid reusing a TweenFilterLiteVars
|
30
|
+
Object.
|
31
|
+
CODED BY: Jack Doyle, jack@greensock.com
|
32
|
+
Copyright 2008, GreenSock (This work is subject to the terms in http://www.greensock.com/terms_of_use.html.)
|
33
|
+
*/
|
34
|
+
package gs.utils.tween {
|
35
|
+
import gs.utils.tween.TweenLiteVars;
|
36
|
+
import gs.utils.tween.BevelFilterVars;
|
37
|
+
import gs.utils.tween.BlurFilterVars;
|
38
|
+
import gs.utils.tween.ColorMatrixFilterVars;
|
39
|
+
import gs.utils.tween.DropShadowFilterVars;
|
40
|
+
import gs.utils.tween.GlowFilterVars;
|
41
|
+
dynamic public class TweenFilterLiteVars extends TweenLiteVars {
|
42
|
+
public static const version:Number = 1.01;
|
43
|
+
/**
|
44
|
+
* Adds a BlurFilter. Available properties: blurX, blurY, quality
|
45
|
+
*/
|
46
|
+
public var blurFilter:BlurFilterVars;
|
47
|
+
/**
|
48
|
+
* Adds a ColorMatrixFilter. Available properties: colorize, amount, contrast, brightness, saturation, hue, threshold, relative, matrix
|
49
|
+
*/
|
50
|
+
public var colorMatrixFilter:ColorMatrixFilterVars;
|
51
|
+
/**
|
52
|
+
* Adds a GlowFilter. Available properties: alpha, blurX, blurY, color, strength, quality, inner, knockout
|
53
|
+
*/
|
54
|
+
public var glowFilter:GlowFilterVars;
|
55
|
+
/**
|
56
|
+
* Adds a DropShadowFilter. Available properties: alpha, angle, blurX, blurY, color, distance, strength, quality
|
57
|
+
*/
|
58
|
+
public var dropShadowFilter:DropShadowFilterVars;
|
59
|
+
/**
|
60
|
+
* Adds a BevelFilter. Available properties: angle, blurX, blurY, distance, highlightAlpha, highlightColor, shadowAlpha, shadowColor, strength, quality
|
61
|
+
*/
|
62
|
+
public var bevelFilter:BevelFilterVars;
|
63
|
+
/**
|
64
|
+
* Multiplier that controls the speed of the tween. 1 = normal speed, 0.5 = half speed, 2 = double speed, etc.
|
65
|
+
*/
|
66
|
+
public var timeScale:Number;
|
67
|
+
/**
|
68
|
+
*
|
69
|
+
* @param $vars An Object containing properties that correspond to the properties you'd like to add to this TweenFilterLiteVars Object. For example, TweenFilterLiteVars({blurFilter:{blurX:10, blurY:20}, onComplete:myFunction})
|
70
|
+
*
|
71
|
+
*/
|
72
|
+
public function TweenFilterLiteVars($vars:Object = null) {
|
73
|
+
super($vars);
|
74
|
+
if ($vars != null) {
|
75
|
+
if ($vars.blurFilter != null) {
|
76
|
+
this.blurFilter = BlurFilterVars.createFromGeneric($vars.blurFilter);
|
77
|
+
}
|
78
|
+
if ($vars.bevelFilter != null) {
|
79
|
+
this.bevelFilter = BevelFilterVars.createFromGeneric($vars.bevelFilter);
|
80
|
+
}
|
81
|
+
if ($vars.colorMatrixFilter != null) {
|
82
|
+
this.colorMatrixFilter = ColorMatrixFilterVars.createFromGeneric($vars.colorMatrixFilter);
|
83
|
+
}
|
84
|
+
if ($vars.dropShadowFilter != null) {
|
85
|
+
this.dropShadowFilter = DropShadowFilterVars.createFromGeneric($vars.dropShadowFilter);
|
86
|
+
}
|
87
|
+
if ($vars.glowFilter != null) {
|
88
|
+
this.glowFilter = GlowFilterVars.createFromGeneric($vars.glowFilter);
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|