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,502 @@
|
|
1
|
+
/*
|
2
|
+
VERSION: 8.21
|
3
|
+
DATE: 9/8/2008
|
4
|
+
ACTIONSCRIPT VERSION: 3.0 (AS2 version is available)
|
5
|
+
UPDATES & MORE DETAILED DOCUMENTATION AT: http://www.TweenFilterLite.com (has link to AS3 version)
|
6
|
+
DESCRIPTION:
|
7
|
+
TweenFilterLite extends the extremely lightweight (about 3k), powerful TweenLite class, adding the ability to tween filters (like blurs,
|
8
|
+
glows, drop shadows, bevels, etc.) as well as image effects like contrast, colorization, brightness, saturation, hue, and threshold (combined size: about 6k).
|
9
|
+
The syntax is identical to the TweenLite class. If you're unfamiliar with TweenLite, I'd highly recommend that you check it out.
|
10
|
+
It provides easy way to tween multiple object properties over time including a MovieClip's position, alpha, volume, color, etc.
|
11
|
+
Just like the TweenLite class, TweenFilterLite allows you to build in a delay, call any function when the tween starts or has completed
|
12
|
+
(even passing any number of parameters you define), automatically kill other tweens that are affecting the same object (to avoid conflicts),
|
13
|
+
tween arrays, etc. One of the big benefits of this class (and the reason "Lite" is in the name) is that it was carefully built to
|
14
|
+
minimize file size. There are several other Tweening engines out there, but in my experience, they required more than triple the
|
15
|
+
file size which was unacceptable when dealing with strict file size requirements (like banner ads). I haven't been able to find a
|
16
|
+
faster tweening engine either. TweenFilterLite is simple, very fast, and extremely lightweight.
|
17
|
+
If you're looking for more features, check out TweenFilterLite's big brother, TweenMax at www.TweenMax.com
|
18
|
+
ARGUMENTS:
|
19
|
+
1) $target : Object - Target whose properties we're tweening
|
20
|
+
2) $duration : Number - Duration (in seconds) of the effect
|
21
|
+
3) $vars : Object - An object containing the end values of all the properties you'd like to have tweened (or if you're using the
|
22
|
+
TweenFilterLite.from() method, these variables would define the BEGINNING values). Pass in one object for each filter
|
23
|
+
(named appropriately, like blurFilter, glowFilter, colorMatrixFilter, etc.) Filter objects can contain any number of
|
24
|
+
properties specific to that filter, like blurX, blurY, contrast, color, distance, colorize, brightness, highlightAlpha, etc.
|
25
|
+
SPECIAL PROPERTIES:
|
26
|
+
delay : Number - Amount of delay before the tween should begin (in seconds).
|
27
|
+
ease : Function - You can specify a function to use for the easing with this variable. For example,
|
28
|
+
fl.motion.easing.Elastic.easeOut. The Default is Regular.easeOut.
|
29
|
+
easeParams : Array - An array of extra parameters to feed the easing equation. This can be useful when you
|
30
|
+
use an equation like Elastic and want to control extra parameters like the amplitude and period.
|
31
|
+
Most easing equations, however, don't require extra parameters so you won't need to pass in any easeParams.
|
32
|
+
autoAlpha : Number - Use it instead of the alpha property to gain the additional feature of toggling
|
33
|
+
the visible property to false when alpha reaches 0. It will also toggle visible
|
34
|
+
to true before the tween starts if the value of autoAlpha is greater than zero.
|
35
|
+
visible : Boolean - To set a DisplayObject's "visible" property at the end of the tween, use this special property.
|
36
|
+
volume : Number - Tweens the volume of an object with a soundTransform property (MovieClip/SoundChannel/NetStream, etc.)
|
37
|
+
tint : Number - To change a DisplayObject's tint/color, set this to the hex value of the tint you'd like
|
38
|
+
to end up at(or begin at if you're using TweenFilterLite.from()). An example hex value would be 0xFF0000.
|
39
|
+
removeTint : Boolean - If you'd like to remove the tint that's applied to a DisplayObject, pass true for this special property.
|
40
|
+
frame : Number - Use this to tween a MovieClip to a particular frame.
|
41
|
+
onStart : Function - If you'd like to call a function as soon as the tween begins, pass in a reference to it here.
|
42
|
+
This is useful for when there's a delay.
|
43
|
+
onStartParams : Array - An array of parameters to pass the onStart function. (this is optional)
|
44
|
+
onUpdate : Function - If you'd like to call a function every time the property values are updated (on every frame during
|
45
|
+
the time the tween is active), pass a reference to it here.
|
46
|
+
onUpdateParams : Array - An array of parameters to pass the onUpdate function (this is optional)
|
47
|
+
onComplete : Function - If you'd like to call a function when the tween has finished, use this.
|
48
|
+
onCompleteParams : Array - An array of parameters to pass the onComplete function (this is optional)
|
49
|
+
persist : Boolean - if true, the TweenLite instance will NOT automatically be removed by the garbage collector when it is complete.
|
50
|
+
However, it is still eligible to be overwritten by new tweens even if persist is true. By default, it is false.
|
51
|
+
renderOnStart : Boolean - If you're using TweenFilterLite.from() with a delay and want to prevent the tween from rendering until it
|
52
|
+
actually begins, set this to true. By default, it's false which causes TweenFilterLite.from() to render
|
53
|
+
its values immediately, even before the delay has expired.
|
54
|
+
timeScale : Number - Multiplier that controls the speed of the tween (perceived duration) where 1 = normal speed, 0.5 = half speed, 2 = double speed, etc.
|
55
|
+
NOTE: There is also a static TweenFilterLite.globalTimeScale property that affects ALL TweenMax and TweenFilterLite tweens (not TweenLite though)
|
56
|
+
overwrite : int - Controls how other tweens of the same object are handled when this tween is created. Here are the options:
|
57
|
+
- 0 (NONE): No tweens are overwritten. This is the fastest mode, but you need to be careful not to create any
|
58
|
+
tweens with overlapping properties, otherwise they'll conflict with each other.
|
59
|
+
- 1 (ALL): (this is the default unless OverwriteManager.init() has been called) All tweens of the same object
|
60
|
+
are completely overwritten immediately when the tween is created.
|
61
|
+
TweenLite.to(mc, 1, {x:100, y:200});
|
62
|
+
TweenLite.to(mc, 1, {x:300, delay:2, overwrite:1}); //immediately overwrites the previous tween
|
63
|
+
- 2 (AUTO): (used by default if OverwriteManager.init() has been called) Searches for and overwrites only
|
64
|
+
individual overlapping properties in tweens that are active when the tween begins.
|
65
|
+
TweenLite.to(mc, 1, {x:100, y:200});
|
66
|
+
TweenLite.to(mc, 1, {x:300, overwrite:2}); //only overwrites the "x" property in the previous tween
|
67
|
+
- 3 (CONCURRENT): Overwrites all tweens of the same object that are active when the tween begins.
|
68
|
+
TweenLite.to(mc, 1, {x:100, y:200});
|
69
|
+
TweenLite.to(mc, 1, {x:300, delay:2, overwrite:3}); //does NOT overwrite the previous tween because the first tween will have finished by the time this one begins.
|
70
|
+
blurFilter : Object - To apply a BlurFilter, pass an object with one or more of the following properties:
|
71
|
+
blurX, blurY, quality
|
72
|
+
glowFilter : Object - To apply a GlowFilter, pass an object with one or more of the following properties:
|
73
|
+
alpha, blurX, blurY, color, strength, quality, inner, knockout
|
74
|
+
colorMatrixFilter : Object - To apply a ColorMatrixFilter, pass an object with one or more of the following properties:
|
75
|
+
colorize, amount, contrast, brightness, saturation, hue, threshold, relative, matrix
|
76
|
+
dropShadowFilter : Object - To apply a ColorMatrixFilter, pass an object with one or more of the following properties:
|
77
|
+
alpha, angle, blurX, blurY, color, distance, strength, quality
|
78
|
+
bevelFilter : Object - To apply a BevelFilter, pass an object with one or more of the following properties:
|
79
|
+
angle, blurX, blurY, distance, highlightAlpha, highlightColor, shadowAlpha, shadowColor, strength, quality
|
80
|
+
EXAMPLES:
|
81
|
+
As a simple example, you could tween the blur of clip_mc from where it's at now to 20 over the course of 1.5 seconds by:
|
82
|
+
import gs.TweenFilterLite;
|
83
|
+
TweenFilterLite.to(clip_mc, 1.5, {blurFilter:{blurX:20, blurY:20}});
|
84
|
+
To set up a sequence where we colorize a MovieClip red over the course of 2 seconds, and then blur it over the course of 1 second,:
|
85
|
+
import gs.*;
|
86
|
+
TweenFilterLite.to(clip_mc, 2, {colorMatrixFilter:{colorize:0xFF0000, amount:1}});
|
87
|
+
TweenFilterLite.to(clip_mc, 1, {blurFilter:{blurX:20, blurY:20}, delay:2, overwrite:false});
|
88
|
+
If you want to get more advanced and tween the clip_mc MovieClip over 5 seconds, changing the saturation to 0,
|
89
|
+
delay starting the whole tween by 2 seconds, and then call a function named "onFinishTween" when it has
|
90
|
+
completed and pass in a few arguments to that function (a value of 5 and a reference to the clip_mc), you'd
|
91
|
+
do so like:
|
92
|
+
import gs.*;
|
93
|
+
import gs.easing.*;
|
94
|
+
TweenFilterLite.to(clip_mc, 5, {colorMatrixFilter:{saturation:0}, delay:2, onComplete:onFinishTween, onCompleteParams:[5, clip_mc]});
|
95
|
+
function onFinishTween(argument1:Number, argument2:MovieClip):void {
|
96
|
+
////trace("The tween has finished! argument1 = " + argument1 + ", and argument2 = " + argument2);
|
97
|
+
}
|
98
|
+
If you have a MovieClip on the stage that already has the properties you'd like to end at, and you'd like to
|
99
|
+
start with a colorized version (red: 0xFF0000) and tween to the current properties, you could:
|
100
|
+
import gs.*;
|
101
|
+
TweenFilterLite.from(clip_mc, 5, {type:"color", colorize:0xFF0000});
|
102
|
+
NOTES:
|
103
|
+
- This class (along with the TweenLite class which it extends) will add about 6kb total to your Flash file.
|
104
|
+
- Requires that you target Flash 9 Player or later (ActionScript 3.0).
|
105
|
+
- Quality defaults to a level of "2" for all filters, but you can pass in a value to override it.
|
106
|
+
- The image filter (colorMatrixFilter) functions were built so that you can leverage this class to manipulate matrixes for the
|
107
|
+
ColorMatrixFilter by calling the static functions directly (so you don't necessarily have to be tweening
|
108
|
+
anything). For example, you could colorize a matrix by:
|
109
|
+
var myNewMatrix:Array = TweenFilterLite.colorize(myOldMatrix, 0xFF0000, 1);
|
110
|
+
- Special thanks to Mario Klingemann (http://www.quasimondo.com) for the work he did on his ColorMatrix class.
|
111
|
+
It was very helpful for the image effects.
|
112
|
+
CHANGE LOG:
|
113
|
+
8.21:
|
114
|
+
- If a tween completed without persist:true and the globalTimeScale was updated between that time and the time restart(), reverse(), or resume() was called, it could have an incorrect timeScale. That's fixed now.
|
115
|
+
8.2:
|
116
|
+
- Added setGlobalTimeScale() function to control the speed of all TweenFilterLite and TweenMax instances
|
117
|
+
- Added static "globalTimeScale" property to TweenMax and TweenFilterLite classes. You can even tween it like TweenLite.to(TweenFilterLite, 1, {globalTimeScale:0.5});
|
118
|
+
- Changed timeScale so that it also affects the delay (if any)
|
119
|
+
8.17:
|
120
|
+
- Removed defaultEase from TweenFilterLite because it was just a waste of Kb - use TweenLite.defaultEase to affect all default easing, even in TweenFilterLite.
|
121
|
+
8.15:
|
122
|
+
- Fixed bug in overwrite management
|
123
|
+
- Fixed bug with tweens that have a zero-length duration
|
124
|
+
8.12:
|
125
|
+
- Fixed bug in timeScale
|
126
|
+
8.1:
|
127
|
+
- Added timeScale special property
|
128
|
+
8.05:
|
129
|
+
- Added the ability to overwrite only individual overlapping properties with the new OverwriteManager class and "autoOverwrite" special property
|
130
|
+
- Added the killVars() method
|
131
|
+
- Fixed potential garbage collection bug
|
132
|
+
- added static removeTween() method
|
133
|
+
7.35:
|
134
|
+
- Improved compatibility with TweenFilterLiteVars utility class (for strict data typing and code hinting)
|
135
|
+
- Speed optimizations
|
136
|
+
7.3:
|
137
|
+
- Added "persist" special property
|
138
|
+
- Added "removeTint" special property
|
139
|
+
- Added compatibility with TweenFilterLiteVars utility class
|
140
|
+
7.2:
|
141
|
+
- Added "visible" special property
|
142
|
+
7.11:
|
143
|
+
- Fixed 1009 error in from() calls that was introduced in version 7.1
|
144
|
+
7.1:
|
145
|
+
- Enhanced speed by tweaking some internal code.
|
146
|
+
7.04:
|
147
|
+
- Added ability to define a "matrix" property for colorMatrixFilters.
|
148
|
+
7.03:
|
149
|
+
- Fixed to() and from() methods to accept an Object as the target instead of only DisplayObjects
|
150
|
+
7.01:
|
151
|
+
- SIGNIFICANT: Changed the syntax for defining filters. OLD: TweenFilterLite.to(mc, 2, {type:"blur", blurX:20, blurY:20}), NEW: TweenFilterLite.to(mc, 2, {blurFilter:{blurX:20, blurY:20}})
|
152
|
+
CODED BY: Jack Doyle, jack@greensock.com
|
153
|
+
Copyright 2008, GreenSock (This work is subject to the terms in http://www.greensock.com/terms_of_use.html.)
|
154
|
+
*/
|
155
|
+
package gs {
|
156
|
+
import flash.filters.*;
|
157
|
+
import flash.utils.Dictionary;
|
158
|
+
public class TweenFilterLite extends TweenLite {
|
159
|
+
public static var version:Number = 8.21;
|
160
|
+
public static var delayedCall:Function = TweenLite.delayedCall; //Otherwise TweenFilterLite.delayedCall() would throw errors (it's a static method of TweenLite)
|
161
|
+
public static var killTweensOf:Function = TweenLite.killTweensOf; //Otherwise TweenFilterLite.killTweensOf() would throw errors (it's a static method of TweenLite)
|
162
|
+
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf; //Otherwise TweenFilterLite.killDelayedCallsTo() would throw errors (it's a static method of TweenLite)
|
163
|
+
public static var removeTween:Function = TweenLite.removeTween;
|
164
|
+
protected static var _globalTimeScale:Number = 1;
|
165
|
+
private static var _idMatrix:Array = [1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];
|
166
|
+
private static var _lumR:Number = 0.212671; //Red constant - used for a few color matrix filter functions
|
167
|
+
private static var _lumG:Number = 0.715160; //Green constant - used for a few color matrix filter functions
|
168
|
+
private static var _lumB:Number = 0.072169; //Blue constant - used for a few color matrix filter functions
|
169
|
+
protected var _matrix:Array;
|
170
|
+
protected var _endMatrix:Array;
|
171
|
+
protected var _cmf:ColorMatrixFilter;
|
172
|
+
protected var _clrsa:Array; //Array that pertains to any color properties (like "color", "highlightColor", "shadowColor", etc.)
|
173
|
+
protected var _hf:Boolean = false; //Has filters
|
174
|
+
protected var _filters:Array = []; //Contains objects, one for each filter that's being tweened. Each object contains the following properties: filter, type
|
175
|
+
protected var _originalEase:Function; //in TweenMax, on the up phase of a yoyo or when reverse() is called, we temporarily swap out the easing function for a reverse one, so we store the original here.
|
176
|
+
protected var _uncombinedTimeScale:Number; //If a tween completes and persist is NOT true, it gets taken out of the _all Dictionary which means its _timeScale won't get updated when the globalTimeScale is updated, and then if the restart() or resume() or reverse() gets called, it'll potentially have an old globalTimeScale incorporated. This is only an issue in AS3 because instances can hang around after being removed from _all.
|
177
|
+
public function TweenFilterLite($target:Object, $duration:Number, $vars:Object) {
|
178
|
+
super($target, $duration, $vars);
|
179
|
+
_originalEase = this.vars.ease;
|
180
|
+
_uncombinedTimeScale = _timeScale;
|
181
|
+
_timeScale *= _globalTimeScale; //speeds processing in important functions like render().
|
182
|
+
if (_timeScale != 1 && this.delay != 0) {
|
183
|
+
this.startTime = this.initTime + (this.delay * (1000 / _timeScale));
|
184
|
+
}
|
185
|
+
if (TweenLite.version < 8.16) {
|
186
|
+
////trace("TweenFilterLite error! Please update your TweenLite class or try deleting your ASO files. TweenFilterLite requires a more recent version. Download updates at http://www.TweenLite.com.");
|
187
|
+
}
|
188
|
+
if ($vars.type != undefined) { //warning about backwards compatibility
|
189
|
+
////trace("TweenFilterLite error: " + $target + " is using deprecated syntax. Please update to the new syntax. See http://www.TweenFilterLite.com for details.");
|
190
|
+
}
|
191
|
+
}
|
192
|
+
public static function to($target:Object, $duration:Number, $vars:Object):TweenFilterLite {
|
193
|
+
return new TweenFilterLite($target, $duration, $vars);
|
194
|
+
}
|
195
|
+
//This function really helps if there are MovieClips whose filters we want to animate into place (they are already in their end state on the stage for example).
|
196
|
+
public static function from($target:Object, $duration:Number, $vars:Object):TweenFilterLite {
|
197
|
+
$vars.runBackwards = true;
|
198
|
+
return new TweenFilterLite($target, $duration, $vars);
|
199
|
+
}
|
200
|
+
override public function initTweenVals($hrp:Boolean = false, $reservedProps:String = ""):void {
|
201
|
+
if (!$hrp && this.delay != 0 && TweenLite.overwriteManager.enabled) {
|
202
|
+
TweenLite.overwriteManager.manageOverwrites(this, _all[this.target]);
|
203
|
+
}
|
204
|
+
_clrsa = [];
|
205
|
+
_filters = [];
|
206
|
+
_matrix = _idMatrix.slice();
|
207
|
+
$reservedProps += " blurFilter glowFilter colorMatrixFilter dropShadowFilter bevelFilter ";
|
208
|
+
if (_isDisplayObject) {
|
209
|
+
var i:int, fv:Object; //filter vars
|
210
|
+
if (this.vars.blurFilter != null) {
|
211
|
+
fv = this.vars.blurFilter;
|
212
|
+
addFilter("blurFilter", fv, BlurFilter, ["blurX", "blurY", "quality"], new BlurFilter(0, 0, fv.quality || 2));
|
213
|
+
}
|
214
|
+
if (this.vars.glowFilter != null) {
|
215
|
+
fv = this.vars.glowFilter;
|
216
|
+
addFilter("glowFilter", fv, GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength", "inner", "knockout"], new GlowFilter(0xFFFFFF, 0, 0, 0, fv.strength || 1, fv.quality || 2, fv.inner, fv.knockout));
|
217
|
+
}
|
218
|
+
if (this.vars.colorMatrixFilter != null) {
|
219
|
+
fv = this.vars.colorMatrixFilter;
|
220
|
+
var cmf:Object = addFilter("colorMatrixFilter", fv, ColorMatrixFilter, [], new ColorMatrixFilter(_matrix));
|
221
|
+
_cmf = cmf.filter;
|
222
|
+
_matrix = ColorMatrixFilter(_cmf).matrix;
|
223
|
+
if (fv.matrix != null && fv.matrix is Array) {
|
224
|
+
_endMatrix = fv.matrix;
|
225
|
+
} else {
|
226
|
+
if (fv.relative == true) {
|
227
|
+
_endMatrix = _matrix.slice();
|
228
|
+
} else {
|
229
|
+
_endMatrix = _idMatrix.slice();
|
230
|
+
}
|
231
|
+
_endMatrix = setBrightness(_endMatrix, fv.brightness);
|
232
|
+
_endMatrix = setContrast(_endMatrix, fv.contrast);
|
233
|
+
_endMatrix = setHue(_endMatrix, fv.hue);
|
234
|
+
_endMatrix = setSaturation(_endMatrix, fv.saturation);
|
235
|
+
_endMatrix = setThreshold(_endMatrix, fv.threshold);
|
236
|
+
if (!isNaN(fv.colorize)) {
|
237
|
+
_endMatrix = colorize(_endMatrix, fv.colorize, fv.amount);
|
238
|
+
} else if (!isNaN(fv.color)) { //Just in case they define "color" instead of "colorize"
|
239
|
+
_endMatrix = colorize(_endMatrix, fv.color, fv.amount);
|
240
|
+
}
|
241
|
+
}
|
242
|
+
for (i = 0; i < _endMatrix.length; i++) {
|
243
|
+
if (_matrix[i] != _endMatrix[i] && _matrix[i] != undefined) {
|
244
|
+
this.tweens[this.tweens.length] = {o:_matrix, p:i.toString(), s:_matrix[i], c:_endMatrix[i] - _matrix[i], name:"colorMatrixFilter"};
|
245
|
+
}
|
246
|
+
}
|
247
|
+
}
|
248
|
+
if (this.vars.dropShadowFilter != null) {
|
249
|
+
fv = this.vars.dropShadowFilter;
|
250
|
+
addFilter("dropShadowFilter", fv, DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength", "inner", "knockout", "hideObject"], new DropShadowFilter(0, 45, 0x000000, 0, 0, 0, 1, fv.quality || 2, fv.inner, fv.knockout, fv.hideObject));
|
251
|
+
}
|
252
|
+
if (this.vars.bevelFilter != null) {
|
253
|
+
fv = this.vars.bevelFilter;
|
254
|
+
addFilter("bevelFilter", fv, BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new BevelFilter(0, 0, 0xFFFFFF, 0.5, 0x000000, 0.5, 2, 2, 0, fv.quality || 2));
|
255
|
+
}
|
256
|
+
if (this.vars.runBackwards == true) {
|
257
|
+
var tp:Object;
|
258
|
+
for (i = _clrsa.length - 1; i > -1; i--) {
|
259
|
+
tp = _clrsa[i];
|
260
|
+
tp.sr += tp.cr;
|
261
|
+
tp.cr *= -1;
|
262
|
+
tp.sg += tp.cg;
|
263
|
+
tp.cg *= -1;
|
264
|
+
tp.sb += tp.cb;
|
265
|
+
tp.cb *= -1;
|
266
|
+
tp.f[tp.p] = (tp.sr << 16 | tp.sg << 8 | tp.sb); //Translates RGB to HEX
|
267
|
+
}
|
268
|
+
}
|
269
|
+
super.initTweenVals(true, $reservedProps);
|
270
|
+
} else {
|
271
|
+
super.initTweenVals($hrp, $reservedProps);
|
272
|
+
}
|
273
|
+
}
|
274
|
+
private function addFilter($name:String, $fv:Object, $filterType:Class, $props:Array, $defaultFilter:BitmapFilter):Object {
|
275
|
+
var f:Object = {type:$filterType, name:$name}, fltrs:Array = this.target.filters, i:int, prop:String, valChange:Number, begin:Object, end:Object;
|
276
|
+
for (i = 0; i < fltrs.length; i++) {
|
277
|
+
if (fltrs[i] is $filterType) {
|
278
|
+
f.filter = fltrs[i];
|
279
|
+
break;
|
280
|
+
}
|
281
|
+
}
|
282
|
+
if (f.filter == undefined) {
|
283
|
+
f.filter = $defaultFilter;
|
284
|
+
fltrs[fltrs.length] = f.filter;
|
285
|
+
this.target.filters = fltrs;
|
286
|
+
}
|
287
|
+
for (i = 0; i < $props.length; i++) {
|
288
|
+
prop = $props[i];
|
289
|
+
if ($fv[prop] != undefined) {
|
290
|
+
if (prop == "color" || prop == "highlightColor" || prop == "shadowColor") {
|
291
|
+
begin = HEXtoRGB(f.filter[prop]);
|
292
|
+
end = HEXtoRGB($fv[prop]);
|
293
|
+
_clrsa[_clrsa.length] = {f:f.filter, p:prop, sr:begin.rb, cr:end.rb - begin.rb, sg:begin.gb, cg:end.gb - begin.gb, sb:begin.bb, cb:end.bb - begin.bb};
|
294
|
+
} else if (prop == "quality" || prop == "inner" || prop == "knockout" || prop == "hideObject") {
|
295
|
+
f.filter[prop] = $fv[prop];
|
296
|
+
} else {
|
297
|
+
if (typeof($fv[prop]) == "number") {
|
298
|
+
valChange = $fv[prop] - f.filter[prop];
|
299
|
+
} else {
|
300
|
+
valChange = Number($fv[prop]);
|
301
|
+
}
|
302
|
+
this.tweens[this.tweens.length] = {o:f.filter, p:prop, s:f.filter[prop], c:valChange, name:$name};
|
303
|
+
}
|
304
|
+
}
|
305
|
+
}
|
306
|
+
_filters[_filters.length] = f;
|
307
|
+
_hf = true;
|
308
|
+
return f;
|
309
|
+
}
|
310
|
+
override public function render($t:uint):void {
|
311
|
+
var time:Number = ($t - this.startTime) / 1000 * _timeScale, factor:Number, tp:Object, i:int;
|
312
|
+
if (time >= this.duration) {
|
313
|
+
time = this.duration;
|
314
|
+
factor = (_originalEase == this.vars.ease || this.duration == 0.001) ? 1 : 0; //to accommodate TweenMax.reverse(). Without this, the last frame would render incorrectly
|
315
|
+
} else {
|
316
|
+
factor = this.vars.ease(time, 0, 1, this.duration);
|
317
|
+
}
|
318
|
+
for (i = this.tweens.length - 1; i > -1; i--) {
|
319
|
+
tp = this.tweens[i];
|
320
|
+
tp.o[tp.p] = tp.s + (factor * tp.c);
|
321
|
+
}
|
322
|
+
if (_hf) { //has filters
|
323
|
+
var r:Number, g:Number, b:Number, j:int;
|
324
|
+
for (i = _clrsa.length - 1; i > -1; i--) {
|
325
|
+
tp = _clrsa[i];
|
326
|
+
r = tp.sr + (factor * tp.cr);
|
327
|
+
g = tp.sg + (factor * tp.cg);
|
328
|
+
b = tp.sb + (factor * tp.cb);
|
329
|
+
tp.f[tp.p] = (r << 16 | g << 8 | b); //Translates RGB to HEX
|
330
|
+
}
|
331
|
+
if (_cmf != null) {
|
332
|
+
ColorMatrixFilter(_cmf).matrix = _matrix;
|
333
|
+
}
|
334
|
+
var f:Array = this.target.filters;
|
335
|
+
for (i = 0; i < _filters.length; i++) {
|
336
|
+
for (j = f.length - 1; j > -1; j--) {
|
337
|
+
if (f[j] is _filters[i].type) {
|
338
|
+
f.splice(j, 1, _filters[i].filter);
|
339
|
+
break;
|
340
|
+
}
|
341
|
+
}
|
342
|
+
}
|
343
|
+
this.target.filters = f;
|
344
|
+
}
|
345
|
+
if (_hst) { //has sub-tweens
|
346
|
+
for (i = _subTweens.length - 1; i > -1; i--) {
|
347
|
+
_subTweens[i].proxy(_subTweens[i]);
|
348
|
+
}
|
349
|
+
}
|
350
|
+
if (_hasUpdate) {
|
351
|
+
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
|
352
|
+
}
|
353
|
+
if (time == this.duration) { //Check to see if we're done
|
354
|
+
complete(true);
|
355
|
+
}
|
356
|
+
}
|
357
|
+
override public function killVars($vars:Object):void {
|
358
|
+
if (TweenLite.overwriteManager.enabled) {
|
359
|
+
TweenLite.overwriteManager.killVars($vars, this.vars, this.tweens, _subTweens, _filters);
|
360
|
+
}
|
361
|
+
}
|
362
|
+
//---- STATIC FUNCTIONS -----------------------------------------------------------------------------------------------------------------------------------
|
363
|
+
public static function setGlobalTimeScale($scale:Number):void {
|
364
|
+
if ($scale < 0.00001) {
|
365
|
+
$scale = 0.00001;
|
366
|
+
}
|
367
|
+
var a:Dictionary = _all, p:Object, tw:Object;
|
368
|
+
_globalTimeScale = $scale;
|
369
|
+
for each (p in a) {
|
370
|
+
for (tw in p) {
|
371
|
+
if (p[tw] is TweenFilterLite) {
|
372
|
+
p[tw].timeScale *= 1; //just forces combining of the _uncombinedTimeScale and _globalTimeScale.
|
373
|
+
}
|
374
|
+
}
|
375
|
+
}
|
376
|
+
}
|
377
|
+
public static function HEXtoRGB($n:Number):Object {
|
378
|
+
return {rb:$n >> 16, gb:($n >> 8) & 0xff, bb:$n & 0xff};
|
379
|
+
}
|
380
|
+
//---- COLOR MATRIX FILTER FUNCTIONS -----------------------------------------------------------------------------------------------------------------------
|
381
|
+
public static function colorize($m:Array, $color:Number, $amount:Number = 1):Array { //You can use
|
382
|
+
if (isNaN($color)) {
|
383
|
+
return $m;
|
384
|
+
} else if (isNaN($amount)) {
|
385
|
+
$amount = 1;
|
386
|
+
}
|
387
|
+
var r:Number = (($color >> 16) & 0xff) / 255;
|
388
|
+
var g:Number = (($color >> 8) & 0xff) / 255;
|
389
|
+
var b:Number = ($color & 0xff) / 255;
|
390
|
+
var inv:Number = 1 - $amount;
|
391
|
+
var temp:Array = [inv + $amount * r * _lumR, $amount * r * _lumG, $amount * r * _lumB, 0, 0,
|
392
|
+
$amount * g * _lumR, inv + $amount * g * _lumG, $amount * g * _lumB, 0, 0,
|
393
|
+
$amount * b * _lumR, $amount * b * _lumG, inv + $amount * b * _lumB, 0, 0,
|
394
|
+
0, 0, 0, 1, 0];
|
395
|
+
return applyMatrix(temp, $m);
|
396
|
+
}
|
397
|
+
public static function setThreshold($m:Array, $n:Number):Array {
|
398
|
+
if (isNaN($n)) {
|
399
|
+
return $m;
|
400
|
+
}
|
401
|
+
var temp:Array = [_lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n,
|
402
|
+
_lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n,
|
403
|
+
_lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n,
|
404
|
+
0, 0, 0, 1, 0];
|
405
|
+
return applyMatrix(temp, $m);
|
406
|
+
}
|
407
|
+
public static function setHue($m:Array, $n:Number):Array {
|
408
|
+
if (isNaN($n)) {
|
409
|
+
return $m;
|
410
|
+
}
|
411
|
+
$n *= Math.PI / 180;
|
412
|
+
var c:Number = Math.cos($n);
|
413
|
+
var s:Number = Math.sin($n);
|
414
|
+
var temp:Array = [(_lumR + (c * (1 - _lumR))) + (s * (-_lumR)), (_lumG + (c * (-_lumG))) + (s * (-_lumG)), (_lumB + (c * (-_lumB))) + (s * (1 - _lumB)), 0, 0, (_lumR + (c * (-_lumR))) + (s * 0.143), (_lumG + (c * (1 - _lumG))) + (s * 0.14), (_lumB + (c * (-_lumB))) + (s * -0.283), 0, 0, (_lumR + (c * (-_lumR))) + (s * (-(1 - _lumR))), (_lumG + (c * (-_lumG))) + (s * _lumG), (_lumB + (c * (1 - _lumB))) + (s * _lumB), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
|
415
|
+
return applyMatrix(temp, $m);
|
416
|
+
}
|
417
|
+
public static function setBrightness($m:Array, $n:Number):Array {
|
418
|
+
if (isNaN($n)) {
|
419
|
+
return $m;
|
420
|
+
}
|
421
|
+
$n = ($n * 100) - 100;
|
422
|
+
return applyMatrix([1,0,0,0,$n,
|
423
|
+
0,1,0,0,$n,
|
424
|
+
0,0,1,0,$n,
|
425
|
+
0,0,0,1,0,
|
426
|
+
0,0,0,0,1], $m);
|
427
|
+
}
|
428
|
+
public static function setSaturation($m:Array, $n:Number):Array {
|
429
|
+
if (isNaN($n)) {
|
430
|
+
return $m;
|
431
|
+
}
|
432
|
+
var inv:Number = 1 - $n;
|
433
|
+
var r:Number = inv * _lumR;
|
434
|
+
var g:Number = inv * _lumG;
|
435
|
+
var b:Number = inv * _lumB;
|
436
|
+
var temp:Array = [r + $n, g , b , 0, 0,
|
437
|
+
r , g + $n, b , 0, 0,
|
438
|
+
r , g , b + $n, 0, 0,
|
439
|
+
0 , 0 , 0 , 1, 0];
|
440
|
+
return applyMatrix(temp, $m);
|
441
|
+
}
|
442
|
+
public static function setContrast($m:Array, $n:Number):Array {
|
443
|
+
if (isNaN($n)) {
|
444
|
+
return $m;
|
445
|
+
}
|
446
|
+
$n += 0.01;
|
447
|
+
var temp:Array = [$n,0,0,0,128 * (1 - $n),
|
448
|
+
0,$n,0,0,128 * (1 - $n),
|
449
|
+
0,0,$n,0,128 * (1 - $n),
|
450
|
+
0,0,0,1,0];
|
451
|
+
return applyMatrix(temp, $m);
|
452
|
+
}
|
453
|
+
public static function applyMatrix($m:Array, $m2:Array):Array {
|
454
|
+
if (!($m is Array) || !($m2 is Array)) {
|
455
|
+
return $m2;
|
456
|
+
}
|
457
|
+
var temp:Array = [];
|
458
|
+
var i:int = 0;
|
459
|
+
var z:int = 0;
|
460
|
+
var y:int, x:int;
|
461
|
+
for (y = 0; y < 4; y++) {
|
462
|
+
for (x = 0; x < 5; x++) {
|
463
|
+
if (x == 4) {
|
464
|
+
z = $m[i + 4];
|
465
|
+
} else {
|
466
|
+
z = 0;
|
467
|
+
}
|
468
|
+
temp[i + x] = $m[i] * $m2[x] +
|
469
|
+
$m[i+1] * $m2[x + 5] +
|
470
|
+
$m[i+2] * $m2[x + 10] +
|
471
|
+
$m[i+3] * $m2[x + 15] +
|
472
|
+
z;
|
473
|
+
}
|
474
|
+
i += 5;
|
475
|
+
}
|
476
|
+
return temp;
|
477
|
+
}
|
478
|
+
//---- GETTERS / SETTERS ------------------------------------------------------------------------------------------------
|
479
|
+
public function get timeScale():Number {
|
480
|
+
return _uncombinedTimeScale;
|
481
|
+
}
|
482
|
+
public function set timeScale($n:Number):void {
|
483
|
+
if ($n < 0.00001) {
|
484
|
+
$n = _uncombinedTimeScale = 0.00001;
|
485
|
+
} else {
|
486
|
+
_uncombinedTimeScale = $n;
|
487
|
+
$n *= _globalTimeScale; //instead of doing _timeScale * _globalTimeScale in the render() and elsewhere, we improve performance by combining them here.
|
488
|
+
}
|
489
|
+
this.initTime = _curTime - ((_curTime - this.initTime - (this.delay * (1000 / _timeScale))) * _timeScale * (1 / $n)) - (this.delay * (1000 / $n));
|
490
|
+
if (this.startTime != 99999999999) { //required for OverwriteManager (indicates a TweenMax instance that has been paused)
|
491
|
+
this.startTime = this.initTime + (this.delay * (1000 / $n));
|
492
|
+
}
|
493
|
+
_timeScale = $n;
|
494
|
+
}
|
495
|
+
public static function set globalTimeScale($n:Number):void {
|
496
|
+
setGlobalTimeScale($n);
|
497
|
+
}
|
498
|
+
public static function get globalTimeScale():Number {
|
499
|
+
return _globalTimeScale;
|
500
|
+
}
|
501
|
+
}
|
502
|
+
}
|