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,512 @@
|
|
1
|
+
/*
|
2
|
+
VERSION: 8.16
|
3
|
+
DATE: 9/6/2008
|
4
|
+
ACTIONSCRIPT VERSION: 3.0 (AS2 version is also available)
|
5
|
+
UPDATES & MORE DETAILED DOCUMENTATION AT: http://www.TweenLite.com
|
6
|
+
DESCRIPTION:
|
7
|
+
Tweening. We all do it. Most of us have learned to avoid Adobe's Tween class in favor of a more powerful engine
|
8
|
+
that requires less code (e.g. Tweener). Each has its own strengths & weaknesses. A few years back,
|
9
|
+
I created TweenLite because I needed a very compact tweening engine that was fast and efficient (I couldn't
|
10
|
+
afford the file size bloat that came with the other tweening engines). It quickly became integral to my work
|
11
|
+
flow. I figured others might be able to benefit from it, so I released it publicly. Over the past few years,
|
12
|
+
TweenLite has grown more popular than I could have imagined.
|
13
|
+
Since then, I've added new capabilities while trying to keep file size way down (3K). TweenFilterLite extends
|
14
|
+
TweenLite and adds the ability to tween filters including ColorMatrixFilter effects like saturation, contrast,
|
15
|
+
brightness, hue, and even colorization but it only adds about 3k to the file size. Same syntax as TweenLite.
|
16
|
+
There are AS2 and AS3 versions of both of the classes ready for download. TweenMax adds even more features to
|
17
|
+
TweenFilterLite including bezier tweening, pause/resume, sequencing, and much more. (see www.TweenMax.com)
|
18
|
+
I know what you're thinking - "if it's so 'lightweight', it's probably missing a lot of features which makes
|
19
|
+
me nervous about using it as my main tweening engine." It is true that it doesn't have the same feature set
|
20
|
+
as some other tweening engines, but I can honestly say that after using it on almost every project I've worked
|
21
|
+
on over the last few years (many award-winning flash apps for fortune-500 companies), it has never let me down.
|
22
|
+
I never found myself needing some other functionality. You can tween any property (including a DisplayObject's
|
23
|
+
volume and color), use any easing function, build in delays, callback functions, pass arguments to that
|
24
|
+
callback function, and even tween arrays all with one line of code. If you need more features, you can always
|
25
|
+
step up to TweenFilterLite or TweenMax.
|
26
|
+
I haven't been able to find a faster tween engine either. See an interactive speed comparison
|
27
|
+
of various tweening engines at http://blog.greensock.com/tweeing-speed-test/.
|
28
|
+
ARGUMENTS:
|
29
|
+
1) $target : Object - Target MovieClip (or any other object) whose properties we're tweening
|
30
|
+
2) $duration : Number - Duration (in seconds) of the effect
|
31
|
+
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
|
32
|
+
TweenLite.from() method, these variables would define the BEGINNING values). For example:
|
33
|
+
alpha: The alpha (opacity level) that the target object should finish at (or begin at if you're
|
34
|
+
using TweenLite.from()). For example, if the target.alpha is 1 when this script is
|
35
|
+
called, and you specify this argument to be 0.5, it'll transition from 1 to 0.5.
|
36
|
+
x: To change a MovieClip's x position, just set this to the value you'd like the MovieClip to
|
37
|
+
end up at (or begin at if you're using TweenLite.from()).
|
38
|
+
SPECIAL PROPERTIES (**OPTIONAL**):
|
39
|
+
delay : Number - Amount of delay before the tween should begin (in seconds).
|
40
|
+
ease : Function - You can specify a function to use for the easing with this variable. For example,
|
41
|
+
fl.motion.easing.Elastic.easeOut. The Default is Regular.easeOut.
|
42
|
+
easeParams : Array - An array of extra parameters to feed the easing equation. This can be useful when you
|
43
|
+
use an equation like Elastic and want to control extra parameters like the amplitude and period.
|
44
|
+
Most easing equations, however, don't require extra parameters so you won't need to pass in any easeParams.
|
45
|
+
autoAlpha : Number - Use it instead of the alpha property to gain the additional feature of toggling
|
46
|
+
the visible property to false when alpha reaches 0. It will also toggle visible
|
47
|
+
to true before the tween starts if the value of autoAlpha is greater than zero.
|
48
|
+
visible : Boolean - To set a DisplayObject's "visible" property at the end of the tween, use this special property.
|
49
|
+
volume : Number - Tweens the volume of an object with a soundTransform property (MovieClip/SoundChannel/NetStream, etc.)
|
50
|
+
tint : Number - To change a DisplayObject's tint/color, set this to the hex value of the tint you'd like
|
51
|
+
to end up at(or begin at if you're using TweenLite.from()). An example hex value would be 0xFF0000.
|
52
|
+
removeTint : Boolean - If you'd like to remove the tint that's applied to a DisplayObject, pass true for this special property.
|
53
|
+
frame : Number - Use this to tween a MovieClip to a particular frame.
|
54
|
+
onStart : Function - If you'd like to call a function as soon as the tween begins, pass in a reference to it here.
|
55
|
+
This is useful for when there's a delay.
|
56
|
+
onStartParams : Array - An array of parameters to pass the onStart function. (this is optional)
|
57
|
+
onUpdate : Function - If you'd like to call a function every time the property values are updated (on every frame during
|
58
|
+
the time the tween is active), pass a reference to it here.
|
59
|
+
onUpdateParams : Array - An array of parameters to pass the onUpdate function (this is optional)
|
60
|
+
onComplete : Function - If you'd like to call a function when the tween has finished, use this.
|
61
|
+
onCompleteParams : Array - An array of parameters to pass the onComplete function (this is optional)
|
62
|
+
persist : Boolean - if true, the TweenLite instance will NOT automatically be removed by the garbage collector when it is complete.
|
63
|
+
However, it is still eligible to be overwritten by new tweens even if persist is true. By default, it is false.
|
64
|
+
renderOnStart : Boolean - If you're using TweenFilterLite.from() with a delay and want to prevent the tween from rendering until it
|
65
|
+
actually begins, set this to true. By default, it's false which causes TweenLite.from() to render
|
66
|
+
its values immediately, even before the delay has expired.
|
67
|
+
overwrite : int - Controls how other tweens of the same object are handled when this tween is created. Here are the options:
|
68
|
+
- 0 (NONE): No tweens are overwritten. This is the fastest mode, but you need to be careful not to create any
|
69
|
+
tweens with overlapping properties, otherwise they'll conflict with each other.
|
70
|
+
- 1 (ALL): (this is the default unless OverwriteManager.init() has been called) All tweens of the same object
|
71
|
+
are completely overwritten immediately when the tween is created.
|
72
|
+
TweenLite.to(mc, 1, {x:100, y:200});
|
73
|
+
TweenLite.to(mc, 1, {x:300, delay:2, overwrite:1}); //immediately overwrites the previous tween
|
74
|
+
- 2 (AUTO): (used by default if OverwriteManager.init() has been called) Searches for and overwrites only
|
75
|
+
individual overlapping properties in tweens that are active when the tween begins.
|
76
|
+
TweenLite.to(mc, 1, {x:100, y:200});
|
77
|
+
TweenLite.to(mc, 1, {x:300, overwrite:2}); //only overwrites the "x" property in the previous tween
|
78
|
+
- 3 (CONCURRENT): Overwrites all tweens of the same object that are active when the tween begins.
|
79
|
+
TweenLite.to(mc, 1, {x:100, y:200});
|
80
|
+
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.
|
81
|
+
EXAMPLES:
|
82
|
+
As a simple example, you could tween the alpha to 50% (0.5) and move the x position of a MovieClip named "clip_mc"
|
83
|
+
to 120 and fade the volume to 0 over the course of 1.5 seconds like so:
|
84
|
+
import gs.TweenLite;
|
85
|
+
TweenLite.to(clip_mc, 1.5, {alpha:0.5, x:120, volume:0});
|
86
|
+
If you want to get more advanced and tween the clip_mc MovieClip over 5 seconds, changing the alpha to 0.5,
|
87
|
+
the x to 120 using the "easeOutBack" easing function, delay starting the whole tween by 2 seconds, and then call
|
88
|
+
a function named "onFinishTween" when it has completed and pass in a few parameters to that function (a value of
|
89
|
+
5 and a reference to the clip_mc), you'd do so like:
|
90
|
+
import gs.TweenLite;
|
91
|
+
import fl.motion.easing.Back;
|
92
|
+
TweenLite.to(clip_mc, 5, {alpha:0.5, x:120, ease:Back.easeOut, delay:2, onComplete:onFinishTween, onCompleteParams:[5, clip_mc]});
|
93
|
+
function onFinishTween(argument1:Number, argument2:MovieClip):void {
|
94
|
+
////trace("The tween has finished! argument1 = " + argument1 + ", and argument2 = " + argument2);
|
95
|
+
}
|
96
|
+
If you have a MovieClip on the stage that is already in it's end position and you just want to animate it into
|
97
|
+
place over 5 seconds (drop it into place by changing its y property to 100 pixels higher on the screen and
|
98
|
+
dropping it from there), you could:
|
99
|
+
import gs.TweenLite;
|
100
|
+
import fl.motion.easing.Elastic;
|
101
|
+
TweenLite.from(clip_mc, 5, {y:"-100", ease:Elastic.easeOut});
|
102
|
+
NOTES:
|
103
|
+
- This class will add about 3kb to your Flash file.
|
104
|
+
- Putting quotes around values will make the tween relative to the current value. For example, if you do
|
105
|
+
TweenLite.to(mc, 2, {x:"-20"}); it'll move the mc.x to the left 20 pixels which is the same as doing
|
106
|
+
TweenLite.to(mc, 2, {x:mc.x - 20});
|
107
|
+
- You can change the TweenLite.defaultEase function if you prefer something other than Regular.easeOut.
|
108
|
+
- You must target Flash Player 9 or later (ActionScript 3.0)
|
109
|
+
- You can tween the volume of any MovieClip using the tween property "volume", like:
|
110
|
+
TweenLite.to(myClip_mc, 1.5, {volume:0});
|
111
|
+
- You can tween the color of a MovieClip using the tween property "tint", like:
|
112
|
+
TweenLite.to(myClip_mc, 1.5, {tint:0xFF0000});
|
113
|
+
- To tween an array, just pass in an array as a property named endArray like:
|
114
|
+
var myArray:Array = [1,2,3,4];
|
115
|
+
TweenLite.to(myArray, 1.5, {endArray:[10,20,30,40]});
|
116
|
+
- You can kill all tweens for a particular object (usually a MovieClip) anytime with the
|
117
|
+
TweenLite.killTweensOf(myClip_mc); function. If you want to have the tweens forced to completion,
|
118
|
+
pass true as the second parameter, like TweenLite.killTweensOf(myClip_mc, true);
|
119
|
+
- You can kill all delayedCalls to a particular function using TweenLite.killDelayedCallsTo(myFunction_func);
|
120
|
+
This can be helpful if you want to preempt a call.
|
121
|
+
- Use the TweenLite.from() method to animate things into place. For example, if you have things set up on
|
122
|
+
the stage in the spot where they should end up, and you just want to animate them into place, you can
|
123
|
+
pass in the beginning x and/or y and/or alpha (or whatever properties you want).
|
124
|
+
CHANGE LOG:
|
125
|
+
8.16:
|
126
|
+
- Fixed bug that prevented using another tween to gradually change the timeScale of a tween
|
127
|
+
8.15:
|
128
|
+
- Fixed bug that caused from() delays not to function since version 8.14
|
129
|
+
8.14:
|
130
|
+
- Fixed bug in managing overwrites
|
131
|
+
8.11:
|
132
|
+
- Added the ability to overwrite only individual overlapping properties with the new OverwriteManager class
|
133
|
+
- Added the killVars() method
|
134
|
+
- Fixed potential garbage collection issue
|
135
|
+
7.04:
|
136
|
+
- Speed optimizations
|
137
|
+
7.02:
|
138
|
+
- Added ability to tween the volume of any object that has a soundTransform property instead of just MoveiClips and SoundChannels. Now NetStream volumes can be tweened too.
|
139
|
+
7.01:
|
140
|
+
- Fixed delayedCall() error (removed onCompleteScope since it's not useful in AS3 anyway)
|
141
|
+
7.0:
|
142
|
+
- Added "persist" special property
|
143
|
+
- Added "removeTint" special property (please use this instead of tint:null)
|
144
|
+
- Added compatibility with TweenLiteVars utility class
|
145
|
+
6.3:
|
146
|
+
- Added "visible" special property
|
147
|
+
6.24:
|
148
|
+
- Very minor change in the complete() function that helps prevent duplicate error reports in onComplete calls.
|
149
|
+
6.23:
|
150
|
+
- Minor speed improvements and size reduction
|
151
|
+
6.22:
|
152
|
+
- Removed property validation in the initTweenVals() method because Flash Player 10's Object.hasOwnProperty() incorrectly reports that DisplayObjects don't have a "z" property (same for rotationX, rotationY, and rotationZ I believe) At least in the Beta version that's out as of 5/23/08
|
153
|
+
6.21:
|
154
|
+
- Fixed bug with complete() not working properly in certain scenarios.
|
155
|
+
6.2:
|
156
|
+
- Enhanced speed and changed the "tweens" property from an Object to an Array
|
157
|
+
6.13:
|
158
|
+
- Fixed potential problem with the complete() method that could prevent a tween from completing properly.
|
159
|
+
6.11:
|
160
|
+
- Fixed issue that prevented tweening to a tint of 0 (black)
|
161
|
+
6.1:
|
162
|
+
- Ensured that even thousands of tweens are synced (uses an internally-controlled timer)
|
163
|
+
- Removed support for mcColor (in favor of "tint")
|
164
|
+
6.04:
|
165
|
+
- Fixed bug that caused calls to complete() to not render if the tween hadn't ever started (like if there was a delay that hadn't expired yet)
|
166
|
+
6.03:
|
167
|
+
- Added the "renderOnStart" property that can force TweenLite.from() to render only when the tween actually starts (by default, it renders immediately even if the tween has a delay.)
|
168
|
+
6.02:
|
169
|
+
- Fixed bug that could cause TweenLite.delayedCall() to generate a 1010 error.
|
170
|
+
6.01:
|
171
|
+
- Fixed bug that could cause TweenLite.from() to not render the values immediately.
|
172
|
+
- Fixed bug that could prevent tweens with a duration of zero from rendering properly.
|
173
|
+
6.0:
|
174
|
+
- Added ability to tween a MovieClip's frame
|
175
|
+
- Added onCompleteScope, onStartScope, and onUpdateScope
|
176
|
+
- Reworked internal class routines for handling SubTweens
|
177
|
+
CODED BY: Jack Doyle, jack@greensock.com
|
178
|
+
Copyright 2008, GreenSock (This work is subject to the terms in http://www.greensock.com/terms_of_use.html.)
|
179
|
+
*/
|
180
|
+
package gs {
|
181
|
+
import flash.display.DisplayObject;
|
182
|
+
import flash.display.Sprite;
|
183
|
+
import flash.events.Event;
|
184
|
+
import flash.events.TimerEvent;
|
185
|
+
import flash.geom.ColorTransform;
|
186
|
+
import flash.utils.*;
|
187
|
+
public class TweenLite {
|
188
|
+
public static var version:Number = 8.16;
|
189
|
+
public static var killDelayedCallsTo:Function = TweenLite.killTweensOf;
|
190
|
+
public static var defaultEase:Function = TweenLite.easeOut;
|
191
|
+
public static var overwriteManager:Object; //makes it possible to integrate the gs.utils.tween.OverwriteManager for adding autoOverwrite capabilities
|
192
|
+
protected static var _all:Dictionary = new Dictionary(); //Holds references to all our tween targets.
|
193
|
+
protected static var _curTime:uint;
|
194
|
+
private static var _classInitted:Boolean;
|
195
|
+
private static var _sprite:Sprite = new Sprite(); //A reference to the sprite that we use to drive all our ENTER_FRAME events.
|
196
|
+
private static var _listening:Boolean; //If true, the ENTER_FRAME is being listened for (there are tweens that are in the queue)
|
197
|
+
private static var _timer:Timer = new Timer(2000);
|
198
|
+
public var duration:Number; //Duration (in seconds)
|
199
|
+
public var vars:Object; //Variables (holds things like alpha or y or whatever we're tweening)
|
200
|
+
public var delay:Number; //Delay (in seconds)
|
201
|
+
public var startTime:int; //Start time
|
202
|
+
public var initTime:int; //Time of initialization. Remember, we can build in delays so this property tells us when the frame action was born, not when it actually started doing anything.
|
203
|
+
public var tweens:Array; //Contains parsed data for each property that's being tweened (each has to have a target, property, start, and a change).
|
204
|
+
public var target:Object; //Target object (often a MovieClip)
|
205
|
+
protected var _active:Boolean; //If true, this tween is active.
|
206
|
+
protected var _subTweens:Array; //Only used for associated sub-tweens like tint and volume
|
207
|
+
protected var _hst:Boolean; //Has sub-tweens. Tracking this as a Boolean value is faster than checking _subTweens.length
|
208
|
+
protected var _hasUpdate:Boolean; //has onUpdate. Tracking this as a Boolean value is faster than checking this.vars.onUpdate == null.
|
209
|
+
protected var _isDisplayObject:Boolean; //We need to know if the target is a DisplayObject so that we can apply visibility changes, do tint and Sound tweens, etc
|
210
|
+
protected var _initted:Boolean;
|
211
|
+
protected var _timeScale:Number; //Allows you to speed up or slow down a tween. Default is 1 (normal speed) 0.5 would be half-speed
|
212
|
+
public function TweenLite($target:Object, $duration:Number, $vars:Object) {
|
213
|
+
if ($target == null) {return};
|
214
|
+
if (!_classInitted) {
|
215
|
+
_curTime = getTimer();
|
216
|
+
_sprite.addEventListener(Event.ENTER_FRAME, executeAll);
|
217
|
+
if (overwriteManager == null) {
|
218
|
+
overwriteManager = {mode:1, enabled:false};
|
219
|
+
}
|
220
|
+
_classInitted = true;
|
221
|
+
}
|
222
|
+
this.vars = $vars;
|
223
|
+
this.duration = $duration || 0.001; //Easing equations don't work when the duration is zero.
|
224
|
+
this.delay = $vars.delay || 0;
|
225
|
+
_timeScale = $vars.timeScale || 1;
|
226
|
+
_active = ($duration == 0 && this.delay == 0);
|
227
|
+
this.target = $target;
|
228
|
+
_isDisplayObject = ($target is DisplayObject);
|
229
|
+
if (!(this.vars.ease is Function)) {
|
230
|
+
this.vars.ease = defaultEase;
|
231
|
+
}
|
232
|
+
if (this.vars.easeParams != null) {
|
233
|
+
this.vars.proxiedEase = this.vars.ease;
|
234
|
+
this.vars.ease = easeProxy;
|
235
|
+
}
|
236
|
+
if (!isNaN(Number(this.vars.autoAlpha))) {
|
237
|
+
this.vars.alpha = Number(this.vars.autoAlpha);
|
238
|
+
this.vars.visible = (this.vars.alpha > 0);
|
239
|
+
}
|
240
|
+
this.tweens = [];
|
241
|
+
_subTweens = [];
|
242
|
+
_hst = _initted = false;
|
243
|
+
this.initTime = _curTime;
|
244
|
+
this.startTime = this.initTime + (this.delay * 1000);
|
245
|
+
var mode:int = ($vars.overwrite == undefined || (!overwriteManager.enabled && $vars.overwrite > 1)) ? overwriteManager.mode : int($vars.overwrite);
|
246
|
+
if (_all[$target] == undefined || ($target != null && mode == 1)) {
|
247
|
+
delete _all[$target];
|
248
|
+
_all[$target] = new Dictionary(true);
|
249
|
+
} else if (mode > 1 && this.delay == 0) {
|
250
|
+
overwriteManager.manageOverwrites(this, _all[$target]);
|
251
|
+
}
|
252
|
+
_all[$target][this] = this;
|
253
|
+
if ((this.vars.runBackwards == true && this.vars.renderOnStart != true) || _active) {
|
254
|
+
initTweenVals();
|
255
|
+
if (_active) { //Means duration is zero and delay is zero, so render it now, but add one to the startTime because this.duration is always forced to be at least 0.001 since easing equations can't handle zero.
|
256
|
+
render(this.startTime + 1);
|
257
|
+
} else {
|
258
|
+
render(this.startTime);
|
259
|
+
}
|
260
|
+
var v:* = this.vars.visible;
|
261
|
+
if (this.vars.isTV == true) {
|
262
|
+
v = this.vars.exposedProps.visible;
|
263
|
+
}
|
264
|
+
if (v != null && this.vars.runBackwards == true && _isDisplayObject) {
|
265
|
+
this.target.visible = Boolean(v);
|
266
|
+
}
|
267
|
+
}
|
268
|
+
if (!_listening && !_active) {
|
269
|
+
_timer.addEventListener("timer", killGarbage);
|
270
|
+
_timer.start();
|
271
|
+
_listening = true;
|
272
|
+
}
|
273
|
+
}
|
274
|
+
public function initTweenVals($hrp:Boolean = false, $reservedProps:String = ""):void {
|
275
|
+
var p:String, i:int;
|
276
|
+
var v:Object = this.vars;
|
277
|
+
if (v.isTV == true) {
|
278
|
+
v = v.exposedProps; //Enables use of the TweenLiteVars, TweenFilterLiteVars, and TweenMaxVars utility classes.
|
279
|
+
}
|
280
|
+
if (!$hrp && this.delay != 0 && overwriteManager.enabled) {
|
281
|
+
overwriteManager.manageOverwrites(this, _all[this.target]);
|
282
|
+
}
|
283
|
+
if (this.target is Array) {
|
284
|
+
var endArray:Array = this.vars.endArray || [];
|
285
|
+
for (i = 0; i < endArray.length; i++) {
|
286
|
+
if (this.target[i] != endArray[i] && this.target[i] != undefined) {
|
287
|
+
this.tweens[this.tweens.length] = {o:this.target, p:i.toString(), s:this.target[i], c:endArray[i] - this.target[i], name:i.toString()}; //o: object, p:property, s:starting value, c:change in value,
|
288
|
+
}
|
289
|
+
}
|
290
|
+
} else {
|
291
|
+
if ((typeof(v.tint) != "undefined" || this.vars.removeTint == true) && _isDisplayObject) { //If we're trying to change the color of a DisplayObject, then set up a quasai proxy using an instance of a TweenLite to control the color.
|
292
|
+
var clr:ColorTransform = this.target.transform.colorTransform;
|
293
|
+
var endClr:ColorTransform = new ColorTransform();
|
294
|
+
if (v.alpha != undefined) {
|
295
|
+
endClr.alphaMultiplier = v.alpha;
|
296
|
+
delete v.alpha;
|
297
|
+
} else {
|
298
|
+
endClr.alphaMultiplier = this.target.alpha;
|
299
|
+
}
|
300
|
+
if (this.vars.removeTint != true && ((v.tint != null && v.tint != "") || v.tint == 0)) { //In case they're actually trying to remove the colorization, they should pass in null or "" for the tint
|
301
|
+
endClr.color = v.tint;
|
302
|
+
}
|
303
|
+
addSubTween("tint", tintProxy, {progress:0}, {progress:1}, {target:this.target, color:clr, endColor:endClr});
|
304
|
+
}
|
305
|
+
if (v.frame != null && _isDisplayObject) {
|
306
|
+
addSubTween("frame", frameProxy, {frame:this.target.currentFrame}, {frame:v.frame}, {target:this.target});
|
307
|
+
}
|
308
|
+
if (!isNaN(this.vars.volume) && this.target.hasOwnProperty("soundTransform")) { //If we're trying to change the volume of an object with a soundTransform property, then set up a quasai proxy using an instance of a TweenLite to control the volume.
|
309
|
+
addSubTween("volume", volumeProxy, this.target.soundTransform, {volume:this.vars.volume}, {target:this.target});
|
310
|
+
}
|
311
|
+
for (p in v) {
|
312
|
+
if (p == "ease" || p == "delay" || p == "overwrite" || p == "onComplete" || p == "onCompleteParams" || p == "runBackwards" || p == "visible" || p == "autoOverwrite" || p == "persist" || p == "onUpdate" || p == "onUpdateParams" || p == "autoAlpha" || (p == "timeScale" && !(this.target is TweenLite)) || p == "onStart" || p == "onStartParams" ||p == "renderOnStart" || p == "proxiedEase" || p == "easeParams" || ($hrp && $reservedProps.indexOf(" " + p + " ") != -1)) {
|
313
|
+
} else if (!(_isDisplayObject && (p == "tint" || p == "removeTint" || p == "frame")) && !(p == "volume" && this.target.hasOwnProperty("soundTransform"))) {
|
314
|
+
//if (this.target.hasOwnProperty(p)) { //REMOVED because there's a bug in Flash Player 10 (Beta) that incorrectly reports that DisplayObjects don't have a "z" property. This check wasn't entirely necessary anyway - it just prevented runtime errors if/when developers tried tweening properties that didn't exist.
|
315
|
+
if (typeof(v[p]) == "number") {
|
316
|
+
this.tweens[this.tweens.length] = {o:this.target, p:p, s:this.target[p], c:v[p] - this.target[p], name:p}; //o:object, p:property, s:starting value, c:change in value
|
317
|
+
} else {
|
318
|
+
this.tweens[this.tweens.length] = {o:this.target, p:p, s:this.target[p], c:Number(v[p]), name:p}; //o:object, p:property, s:starting value, c:change in value
|
319
|
+
}
|
320
|
+
//}
|
321
|
+
}
|
322
|
+
}
|
323
|
+
}
|
324
|
+
if (this.vars.runBackwards == true) {
|
325
|
+
var tp:Object;
|
326
|
+
for (i = this.tweens.length - 1; i > -1; i--) {
|
327
|
+
tp = this.tweens[i];
|
328
|
+
tp.s += tp.c;
|
329
|
+
tp.c *= -1;
|
330
|
+
}
|
331
|
+
}
|
332
|
+
if (v.visible == true && _isDisplayObject) {
|
333
|
+
this.target.visible = true;
|
334
|
+
}
|
335
|
+
if (this.vars.onUpdate != null) {
|
336
|
+
_hasUpdate = true;
|
337
|
+
}
|
338
|
+
_initted = true;
|
339
|
+
}
|
340
|
+
protected function addSubTween($name:String, $proxy:Function, $target:Object, $props:Object, $info:Object = null):void {
|
341
|
+
var sub:Object = {name:$name, proxy:$proxy, target:$target, info:$info};
|
342
|
+
_subTweens[_subTweens.length] = sub;
|
343
|
+
for (var p:String in $props) {
|
344
|
+
if (typeof($props[p]) == "number") {
|
345
|
+
this.tweens[this.tweens.length] = {o:$target, p:p, s:$target[p], c:$props[p] - $target[p], sub:sub, name:$name}; //o:Object, p:Property, s:Starting value, c:Change in value, sub:Subtween object;
|
346
|
+
} else {
|
347
|
+
this.tweens[this.tweens.length] = {o:$target, p:p, s:$target[p], c:Number($props[p]), sub:sub, name:$name};
|
348
|
+
}
|
349
|
+
}
|
350
|
+
_hst = true; //has sub tweens. We track this with a boolean value as opposed to checking _subTweens.length for speed purposes
|
351
|
+
}
|
352
|
+
public static function to($target:Object, $duration:Number, $vars:Object):TweenLite {
|
353
|
+
return new TweenLite($target, $duration, $vars);
|
354
|
+
}
|
355
|
+
//This function really helps if there are objects that we just want to animate into place (they are already at their end position on the stage for example).
|
356
|
+
public static function from($target:Object, $duration:Number, $vars:Object):TweenLite {
|
357
|
+
$vars.runBackwards = true;
|
358
|
+
return new TweenLite($target, $duration, $vars);
|
359
|
+
}
|
360
|
+
public static function delayedCall($delay:Number, $onComplete:Function, $onCompleteParams:Array = null):TweenLite {
|
361
|
+
return new TweenLite($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, overwrite:0});
|
362
|
+
}
|
363
|
+
public function render($t:uint):void {
|
364
|
+
var time:Number = ($t - this.startTime) / 1000, factor:Number, tp:Object, i:int;
|
365
|
+
if (time >= this.duration) {
|
366
|
+
time = this.duration;
|
367
|
+
factor = 1;
|
368
|
+
} else {
|
369
|
+
factor = this.vars.ease(time, 0, 1, this.duration);
|
370
|
+
}
|
371
|
+
for (i = this.tweens.length - 1; i > -1; i--) {
|
372
|
+
tp = this.tweens[i];
|
373
|
+
tp.o[tp.p] = tp.s + (factor * tp.c);
|
374
|
+
}
|
375
|
+
if (_hst) { //has sub-tweens
|
376
|
+
for (i = _subTweens.length - 1; i > -1; i--) {
|
377
|
+
_subTweens[i].proxy(_subTweens[i]);
|
378
|
+
}
|
379
|
+
}
|
380
|
+
if (_hasUpdate) {
|
381
|
+
this.vars.onUpdate.apply(null, this.vars.onUpdateParams);
|
382
|
+
}
|
383
|
+
if (time == this.duration) {
|
384
|
+
complete(true);
|
385
|
+
}
|
386
|
+
}
|
387
|
+
public static function executeAll($e:Event = null):void {
|
388
|
+
var t:uint = _curTime = getTimer();
|
389
|
+
if (_listening) {
|
390
|
+
var a:Dictionary = _all, p:Object, tw:Object;
|
391
|
+
for each (p in a) {
|
392
|
+
for (tw in p) {
|
393
|
+
if (p[tw] != undefined && p[tw].active) {
|
394
|
+
p[tw].render(t);
|
395
|
+
}
|
396
|
+
}
|
397
|
+
}
|
398
|
+
}
|
399
|
+
}
|
400
|
+
public function complete($skipRender:Boolean = false):void {
|
401
|
+
if (!$skipRender) {
|
402
|
+
if (!_initted) {
|
403
|
+
initTweenVals();
|
404
|
+
}
|
405
|
+
this.startTime = _curTime - (this.duration * 1000) / _timeScale;
|
406
|
+
render(_curTime); //Just to force the final render
|
407
|
+
return;
|
408
|
+
}
|
409
|
+
if (this.vars.visible != undefined && _isDisplayObject) {
|
410
|
+
if (!isNaN(this.vars.autoAlpha) && this.target.alpha == 0) {
|
411
|
+
this.target.visible = false;
|
412
|
+
} else if (this.vars.runBackwards != true) {
|
413
|
+
this.target.visible = this.vars.visible;
|
414
|
+
}
|
415
|
+
}
|
416
|
+
if (this.vars.persist != true) {
|
417
|
+
removeTween(this); //moved above the onComplete callback in case there's an error in the user's onComplete - this prevents constant errors
|
418
|
+
}
|
419
|
+
if (this.vars.onComplete != null) {
|
420
|
+
this.vars.onComplete.apply(null, this.vars.onCompleteParams);
|
421
|
+
}
|
422
|
+
}
|
423
|
+
public static function removeTween($t:TweenLite = null):void {
|
424
|
+
if ($t != null && _all[$t.target] != undefined) {
|
425
|
+
_all[$t.target][$t] = null; //prevents garbage collection issues.
|
426
|
+
delete _all[$t.target][$t];
|
427
|
+
}
|
428
|
+
}
|
429
|
+
public static function killTweensOf($tg:Object = null, $complete:Boolean = false):void {
|
430
|
+
if ($tg != null && _all[$tg] != undefined) {
|
431
|
+
if ($complete) {
|
432
|
+
var o:Object = _all[$tg];
|
433
|
+
for (var tw:* in o) {
|
434
|
+
o[tw].complete(false);
|
435
|
+
}
|
436
|
+
}
|
437
|
+
delete _all[$tg];
|
438
|
+
}
|
439
|
+
}
|
440
|
+
public function killVars($vars:Object):void {
|
441
|
+
if (overwriteManager.enabled) {
|
442
|
+
overwriteManager.killVars($vars, this.vars, this.tweens, _subTweens, []);
|
443
|
+
}
|
444
|
+
}
|
445
|
+
public static function killGarbage($e:TimerEvent):void {
|
446
|
+
var tg_cnt:uint = 0, found:Boolean, p:Object, twp:Object, tw:Object;
|
447
|
+
for (p in _all) {
|
448
|
+
found = false;
|
449
|
+
for (twp in _all[p]) {
|
450
|
+
found = true;
|
451
|
+
break;
|
452
|
+
}
|
453
|
+
if (!found) {
|
454
|
+
delete _all[p];
|
455
|
+
} else {
|
456
|
+
tg_cnt++;
|
457
|
+
}
|
458
|
+
}
|
459
|
+
if (tg_cnt == 0) {
|
460
|
+
_timer.removeEventListener("timer", killGarbage);
|
461
|
+
_timer.stop();
|
462
|
+
_listening = false;
|
463
|
+
}
|
464
|
+
}
|
465
|
+
public static function easeOut($t:Number, $b:Number, $c:Number, $d:Number):Number {
|
466
|
+
return -$c * ($t /= $d) * ($t - 2) + $b;
|
467
|
+
}
|
468
|
+
//---- PROXY FUNCTIONS ------------------------------------------------------------------------
|
469
|
+
protected function easeProxy($t:Number, $b:Number, $c:Number, $d:Number):Number { //Just for when easeParams are passed in via the vars object.
|
470
|
+
return this.vars.proxiedEase.apply(null, arguments.concat(this.vars.easeParams));
|
471
|
+
}
|
472
|
+
public static function tintProxy($o:Object):void {
|
473
|
+
var n:Number = $o.target.progress, r:Number = 1 - n, sc:Object = $o.info.color, ec:Object = $o.info.endColor;
|
474
|
+
$o.info.target.transform.colorTransform = new ColorTransform(sc.redMultiplier * r + ec.redMultiplier * n,
|
475
|
+
sc.greenMultiplier * r + ec.greenMultiplier * n,
|
476
|
+
sc.blueMultiplier * r + ec.blueMultiplier * n,
|
477
|
+
sc.alphaMultiplier * r + ec.alphaMultiplier * n,
|
478
|
+
sc.redOffset * r + ec.redOffset * n,
|
479
|
+
sc.greenOffset * r + ec.greenOffset * n,
|
480
|
+
sc.blueOffset * r + ec.blueOffset * n,
|
481
|
+
sc.alphaOffset * r + ec.alphaOffset * n);
|
482
|
+
}
|
483
|
+
public static function frameProxy($o:Object):void {
|
484
|
+
$o.info.target.gotoAndStop(Math.round($o.target.frame));
|
485
|
+
}
|
486
|
+
public static function volumeProxy($o:Object):void {
|
487
|
+
$o.info.target.soundTransform = $o.target;
|
488
|
+
}
|
489
|
+
//---- GETTERS / SETTERS -----------------------------------------------------------------------
|
490
|
+
public function get active():Boolean {
|
491
|
+
if (_active) {
|
492
|
+
return true;
|
493
|
+
} else if (_curTime >= this.startTime) {
|
494
|
+
_active = true;
|
495
|
+
if (!_initted) {
|
496
|
+
initTweenVals();
|
497
|
+
} else if (this.vars.visible != undefined && _isDisplayObject) {
|
498
|
+
this.target.visible = true;
|
499
|
+
}
|
500
|
+
if (this.vars.onStart != null) {
|
501
|
+
this.vars.onStart.apply(null, this.vars.onStartParams);
|
502
|
+
}
|
503
|
+
if (this.duration == 0.001) { //In the constructor, if the duration is zero, we shift it to 0.001 because the easing functions won't work otherwise. We need to offset the this.startTime to compensate too.
|
504
|
+
this.startTime -= 1;
|
505
|
+
}
|
506
|
+
return true;
|
507
|
+
} else {
|
508
|
+
return false;
|
509
|
+
}
|
510
|
+
}
|
511
|
+
}
|
512
|
+
}
|