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,93 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2008, Adobe Systems Incorporated
|
3
|
+
All rights reserved.
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
5
|
+
modification, are permitted provided that the following conditions are
|
6
|
+
met:
|
7
|
+
* Redistributions of source code must retain the above copyright notice,
|
8
|
+
this list of conditions and the following disclaimer.
|
9
|
+
* Redistributions in binary form must reproduce the above copyright
|
10
|
+
notice, this list of conditions and the following disclaimer in the
|
11
|
+
documentation and/or other materials provided with the distribution.
|
12
|
+
* Neither the name of Adobe Systems Incorporated nor the names of its
|
13
|
+
contributors may be used to endorse or promote products derived from
|
14
|
+
this software without specific prior written permission.
|
15
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
16
|
+
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
17
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
18
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
19
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
20
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
21
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
22
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
23
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
24
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
25
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
26
|
+
*/
|
27
|
+
package com.adobe.webapis
|
28
|
+
{
|
29
|
+
import flash.events.IOErrorEvent;
|
30
|
+
import flash.events.SecurityErrorEvent;
|
31
|
+
import flash.events.ProgressEvent;
|
32
|
+
import com.adobe.net.DynamicURLLoader;
|
33
|
+
/**
|
34
|
+
* Dispatched when data is
|
35
|
+
* received as the download operation progresses.
|
36
|
+
*
|
37
|
+
* @eventType flash.events.ProgressEvent.PROGRESS
|
38
|
+
*
|
39
|
+
* @langversion ActionScript 3.0
|
40
|
+
* @playerversion Flash 9.0
|
41
|
+
*/
|
42
|
+
[Event(name="progress", type="flash.events.ProgressEvent")]
|
43
|
+
/**
|
44
|
+
* Dispatched if a call to the server results in a fatal
|
45
|
+
* error that terminates the download.
|
46
|
+
*
|
47
|
+
* @eventType flash.events.IOErrorEvent.IO_ERROR
|
48
|
+
*
|
49
|
+
* @langversion ActionScript 3.0
|
50
|
+
* @playerversion Flash 9.0
|
51
|
+
*/
|
52
|
+
[Event(name="ioError", type="flash.events.IOErrorEvent")]
|
53
|
+
/**
|
54
|
+
* A securityError event occurs if a call attempts to
|
55
|
+
* load data from a server outside the security sandbox.
|
56
|
+
*
|
57
|
+
* @eventType flash.events.SecurityErrorEvent.SECURITY_ERROR
|
58
|
+
*
|
59
|
+
* @langversion ActionScript 3.0
|
60
|
+
* @playerversion Flash 9.0
|
61
|
+
*/
|
62
|
+
[Event(name="securityError", type="flash.events.SecurityErrorEvent")]
|
63
|
+
/**
|
64
|
+
* Base class for services that utilize URLLoader
|
65
|
+
* to communicate with remote APIs / Services.
|
66
|
+
*
|
67
|
+
* @langversion ActionScript 3.0
|
68
|
+
* @playerversion Flash 9.0
|
69
|
+
*/
|
70
|
+
public class URLLoaderBase extends ServiceBase
|
71
|
+
{
|
72
|
+
protected function getURLLoader():DynamicURLLoader
|
73
|
+
{
|
74
|
+
var loader:DynamicURLLoader = new DynamicURLLoader();
|
75
|
+
loader.addEventListener("progress", onProgress);
|
76
|
+
loader.addEventListener("ioError", onIOError);
|
77
|
+
loader.addEventListener("securityError", onSecurityError);
|
78
|
+
return loader;
|
79
|
+
}
|
80
|
+
private function onIOError(event:IOErrorEvent):void
|
81
|
+
{
|
82
|
+
dispatchEvent(event);
|
83
|
+
}
|
84
|
+
private function onSecurityError(event:SecurityErrorEvent):void
|
85
|
+
{
|
86
|
+
dispatchEvent(event);
|
87
|
+
}
|
88
|
+
private function onProgress(event:ProgressEvent):void
|
89
|
+
{
|
90
|
+
dispatchEvent(event);
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
@@ -0,0 +1,67 @@
|
|
1
|
+
/*
|
2
|
+
Copyright (c) 2008, Adobe Systems Incorporated
|
3
|
+
All rights reserved.
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
5
|
+
modification, are permitted provided that the following conditions are
|
6
|
+
met:
|
7
|
+
* Redistributions of source code must retain the above copyright notice,
|
8
|
+
this list of conditions and the following disclaimer.
|
9
|
+
* Redistributions in binary form must reproduce the above copyright
|
10
|
+
notice, this list of conditions and the following disclaimer in the
|
11
|
+
documentation and/or other materials provided with the distribution.
|
12
|
+
* Neither the name of Adobe Systems Incorporated nor the names of its
|
13
|
+
contributors may be used to endorse or promote products derived from
|
14
|
+
this software without specific prior written permission.
|
15
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
|
16
|
+
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
|
17
|
+
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
18
|
+
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
19
|
+
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
20
|
+
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
21
|
+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
22
|
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
23
|
+
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
24
|
+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
25
|
+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
26
|
+
*/
|
27
|
+
package com.adobe.webapis.events
|
28
|
+
{
|
29
|
+
import flash.events.Event;
|
30
|
+
/**
|
31
|
+
* Event class that contains data loaded from remote services.
|
32
|
+
*
|
33
|
+
* @author Mike Chambers
|
34
|
+
*/
|
35
|
+
public class ServiceEvent extends Event
|
36
|
+
{
|
37
|
+
private var _data:Object = new Object();;
|
38
|
+
/**
|
39
|
+
* Constructor for ServiceEvent class.
|
40
|
+
*
|
41
|
+
* @param type The type of event that the instance represents.
|
42
|
+
*/
|
43
|
+
public function ServiceEvent(type:String, bubbles:Boolean = false,
|
44
|
+
cancelable:Boolean=false)
|
45
|
+
{
|
46
|
+
super(type, bubbles, cancelable);
|
47
|
+
}
|
48
|
+
/**
|
49
|
+
* This object contains data loaded in response
|
50
|
+
* to remote service calls, and properties associated with that call.
|
51
|
+
*/
|
52
|
+
public function get data():Object
|
53
|
+
{
|
54
|
+
return _data;
|
55
|
+
}
|
56
|
+
public function set data(d:Object):void
|
57
|
+
{
|
58
|
+
_data = d;
|
59
|
+
}
|
60
|
+
public override function clone():Event
|
61
|
+
{
|
62
|
+
var out:ServiceEvent = new ServiceEvent(type, bubbles, cancelable);
|
63
|
+
out.data = data;
|
64
|
+
return out;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/ColorTransformPlugin.as
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/CurrentFramePlugin.as
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
package com.gskinner.motion.plugins {
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/SmartRotationPlugin.as
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
data/lib/mako/data/flash_widget_dev_core/src/com/gskinner/motion/plugins/SoundTransformPlugin.as
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
/**
|
@@ -0,0 +1,83 @@
|
|
1
|
+
/**
|
2
|
+
* SWFBridgeAS3 by Grant Skinner. March 11, 2007
|
3
|
+
* Visit www.gskinner.com/blog for documentation, updates and more free code.
|
4
|
+
*
|
5
|
+
* You may distribute this class freely, provided it is not modified in any way (including
|
6
|
+
* removing this header or changing the package path).
|
7
|
+
*
|
8
|
+
* Please contact info@gskinner.com prior to distributing modified versions of this class.
|
9
|
+
*/
|
10
|
+
package com.gskinner.utils {
|
11
|
+
import flash.events.Event;
|
12
|
+
import flash.events.EventDispatcher;
|
13
|
+
import flash.net.LocalConnection;
|
14
|
+
public class SWFBridgeAS3 extends EventDispatcher {
|
15
|
+
private var baseID:String;
|
16
|
+
private var myID:String;
|
17
|
+
private var extID:String;
|
18
|
+
private var lc:LocalConnection;
|
19
|
+
private var _connected:Boolean=false;
|
20
|
+
private var host:Boolean=true;
|
21
|
+
private var clientObj:Object;
|
22
|
+
public function SWFBridgeAS3(p_id:String,p_clientObj:Object) {
|
23
|
+
baseID = p_id.split(":").join("");
|
24
|
+
lc = new LocalConnection();
|
25
|
+
lc.client = this;
|
26
|
+
clientObj = p_clientObj;
|
27
|
+
connect()
|
28
|
+
}
|
29
|
+
public function connect():void{
|
30
|
+
try {
|
31
|
+
lc.connect(baseID+"_host");
|
32
|
+
} catch(e:ArgumentError) {
|
33
|
+
host = false;
|
34
|
+
}
|
35
|
+
myID = baseID+((host)?"_host":"_guest");
|
36
|
+
extID = baseID+((host)?"_guest":"_host");
|
37
|
+
if (!host) {
|
38
|
+
lc.connect(myID);
|
39
|
+
lc.send(extID,"com_gskinner_utils_SWFBridge_init");
|
40
|
+
}
|
41
|
+
}
|
42
|
+
public function send(p_method:String,...p_args:Array):void {
|
43
|
+
if (!_connected) { throw new ArgumentError("Send failed because the object is not connected."); }
|
44
|
+
p_args.unshift(p_method);
|
45
|
+
p_args.unshift("com_gskinner_utils_SWFBridge_receive");
|
46
|
+
p_args.unshift(extID);
|
47
|
+
lc.send.apply(lc,p_args);
|
48
|
+
}
|
49
|
+
public function close():void {
|
50
|
+
try { lc.close(); } catch (e:*) {}
|
51
|
+
lc = null;
|
52
|
+
clientObj = null;
|
53
|
+
_connected = false;
|
54
|
+
}
|
55
|
+
public function get id():String {
|
56
|
+
return baseID;
|
57
|
+
}
|
58
|
+
public function get connected():Boolean {
|
59
|
+
return _connected;
|
60
|
+
}
|
61
|
+
public function com_gskinner_utils_SWFBridge_receive(p_method:String,...p_args:Array):void {
|
62
|
+
try {
|
63
|
+
if(p_args.length > 0){
|
64
|
+
p_args.unshift(this)
|
65
|
+
}
|
66
|
+
else{
|
67
|
+
p_args = new Array(this)
|
68
|
+
}
|
69
|
+
clientObj[p_method].apply(clientObj,p_args);
|
70
|
+
} catch (e:*) {
|
71
|
+
////trace("SWFBridge ERROR: "+e);
|
72
|
+
}
|
73
|
+
}
|
74
|
+
public function com_gskinner_utils_SWFBridge_init():void {
|
75
|
+
////trace("SWFBridge (AS3) connected: "+(host?"host":"client"));
|
76
|
+
if (host) {
|
77
|
+
lc.send(extID,"com_gskinner_utils_SWFBridge_init");
|
78
|
+
}
|
79
|
+
_connected = true;
|
80
|
+
dispatchEvent(new Event(Event.CONNECT));
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
package etc {
|
2
|
+
import flash.display.Sprite;
|
3
|
+
import flash.system.Capabilities;
|
4
|
+
public class GUID extends Sprite {
|
5
|
+
private static var counter:Number = 0;
|
6
|
+
function GUID(){
|
7
|
+
}
|
8
|
+
public static function create():String {
|
9
|
+
var dt:Date = new Date();
|
10
|
+
var id1:Number = dt.getTime();
|
11
|
+
var id2:Number = Math.random()*Number.MAX_VALUE;
|
12
|
+
var id3:String = Capabilities.serverString;
|
13
|
+
var rawID:String = calculate(id1+id3+id2+counter++).toUpperCase();
|
14
|
+
var finalString:String = rawID.substring(0, 8) + "-" + rawID.substring(8, 12) + "-" + rawID.substring(12, 16) + "-" + rawID.substring(16, 20) + "-" + rawID.substring(20, 32);
|
15
|
+
return finalString;
|
16
|
+
}
|
17
|
+
private static function calculate(src:String):String {
|
18
|
+
return hex_sha1(src);
|
19
|
+
}
|
20
|
+
private static function hex_sha1(src:String):String {
|
21
|
+
return binb2hex(core_sha1(str2binb(src), src.length*8));
|
22
|
+
}
|
23
|
+
private static function core_sha1(x:Array, len:Number):Array {
|
24
|
+
x[len >> 5] |= 0x80 << (24-len%32);
|
25
|
+
x[((len+64 >> 9) << 4)+15] = len;
|
26
|
+
var w:Array = new Array(80), a:Number = 1732584193;
|
27
|
+
var b:Number = -271733879, c:Number = -1732584194;
|
28
|
+
var d:Number = 271733878, e:Number = -1009589776;
|
29
|
+
for (var i:Number = 0; i<x.length; i += 16) {
|
30
|
+
var olda:Number = a, oldb:Number = b;
|
31
|
+
var oldc:Number = c, oldd:Number = d, olde:Number = e;
|
32
|
+
for (var j:Number = 0; j<80; j++) {
|
33
|
+
if (j<16) w[j] = x[i+j];
|
34
|
+
else w[j] = rol(w[j-3] ^ w[j-8] ^ w[j-14] ^ w[j-16], 1);
|
35
|
+
var t:Number = safe_add(safe_add(rol(a, 5), sha1_ft(j, b, c, d)), safe_add(safe_add(e, w[j]), sha1_kt(j)));
|
36
|
+
e = d; d = c;
|
37
|
+
c = rol(b, 30);
|
38
|
+
b = a; a = t;
|
39
|
+
}
|
40
|
+
a = safe_add(a, olda);
|
41
|
+
b = safe_add(b, oldb);
|
42
|
+
c = safe_add(c, oldc);
|
43
|
+
d = safe_add(d, oldd);
|
44
|
+
e = safe_add(e, olde);
|
45
|
+
}
|
46
|
+
return new Array(a, b, c, d, e);
|
47
|
+
}
|
48
|
+
private static function sha1_ft(t:Number, b:Number, c:Number, d:Number):Number {
|
49
|
+
if (t<20) return (b & c) | ((~b) & d);
|
50
|
+
if (t<40) return b ^ c ^ d;
|
51
|
+
if (t<60) return (b & c) | (b & d) | (c & d);
|
52
|
+
return b ^ c ^ d;
|
53
|
+
}
|
54
|
+
private static function sha1_kt(t:Number):Number {
|
55
|
+
return (t<20) ? 1518500249 : (t<40) ? 1859775393 : (t<60) ? -1894007588 : -899497514;
|
56
|
+
}
|
57
|
+
private static function safe_add(x:Number, y:Number):Number {
|
58
|
+
var lsw:Number = (x & 0xFFFF)+(y & 0xFFFF);
|
59
|
+
var msw:Number = (x >> 16)+(y >> 16)+(lsw >> 16);
|
60
|
+
return (msw << 16) | (lsw & 0xFFFF);
|
61
|
+
}
|
62
|
+
private static function rol(num:Number, cnt:Number):Number {
|
63
|
+
return (num << cnt) | (num >>> (32-cnt));
|
64
|
+
}
|
65
|
+
private static function str2binb(str:String):Array {
|
66
|
+
var bin:Array = new Array();
|
67
|
+
var mask:Number = (1 << 8)-1;
|
68
|
+
for (var i:Number = 0; i<str.length*8; i += 8) {
|
69
|
+
bin[i >> 5] |= (str.charCodeAt(i/8) & mask) << (24-i%32);
|
70
|
+
}
|
71
|
+
return bin;
|
72
|
+
}
|
73
|
+
private static function binb2hex(binarray:Array):String {
|
74
|
+
var str:String = new String("");
|
75
|
+
var tab:String = new String("0123456789abcdef");
|
76
|
+
for (var i:Number = 0; i<binarray.length*4; i++) {
|
77
|
+
str += tab.charAt((binarray[i >> 2] >> ((3-i%4)*8+4)) & 0xF) + tab.charAt((binarray[i >> 2] >> ((3-i%4)*8)) & 0xF);
|
78
|
+
}
|
79
|
+
return str;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
@@ -0,0 +1,114 @@
|
|
1
|
+
package etc {
|
2
|
+
final public class MathExt extends Object {
|
3
|
+
//constants
|
4
|
+
public static const PI:Number = Math.PI;
|
5
|
+
public static const E:Number = Math.E;
|
6
|
+
//
|
7
|
+
//trigonometry
|
8
|
+
public static function sin(t:Number):Number {
|
9
|
+
return Math.sin(t);
|
10
|
+
}
|
11
|
+
public static function cos(t:Number):Number {
|
12
|
+
return Math.cos(t);
|
13
|
+
}
|
14
|
+
public static function tan(t:Number):Number {
|
15
|
+
return Math.tan(t);
|
16
|
+
}
|
17
|
+
public static function asin(t:Number):Number {
|
18
|
+
return Math.asin(t);
|
19
|
+
}
|
20
|
+
public static function acos(t:Number):Number {
|
21
|
+
return Math.acos(t);
|
22
|
+
}
|
23
|
+
public static function atan(t:Number):Number {
|
24
|
+
return Math.atan(t);
|
25
|
+
}
|
26
|
+
public static function csc(t:Number):Number {
|
27
|
+
return 1 / Math.sin(t);
|
28
|
+
}
|
29
|
+
public static function sec(t:Number):Number {
|
30
|
+
return 1 / Math.cos(t);
|
31
|
+
}
|
32
|
+
public static function cot(t:Number):Number {
|
33
|
+
return 1 / Math.tan(t);
|
34
|
+
}
|
35
|
+
public static function acsc(t:Number):Number {
|
36
|
+
return Math.asin(1 / t);
|
37
|
+
}
|
38
|
+
public static function asec(t:Number):Number {
|
39
|
+
return Math.acos(1 / t);
|
40
|
+
}
|
41
|
+
public static function acot(t:Number):Number {
|
42
|
+
if(t != 0) {
|
43
|
+
return Math.atan(1 / t);
|
44
|
+
} else {
|
45
|
+
return PI / 2;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
//
|
49
|
+
//logarithms/powers/exponentials
|
50
|
+
public static function log(b:Number, a:Number):Number {
|
51
|
+
return Math.log(a) / Math.log(b);
|
52
|
+
}
|
53
|
+
public static function ln(a:Number):Number {
|
54
|
+
return Math.log(a);
|
55
|
+
}
|
56
|
+
public static function sqrt(n:Number):Number {
|
57
|
+
return Math.sqrt(n);
|
58
|
+
}
|
59
|
+
public static function root(a:Number, b:Number):Number {
|
60
|
+
return Math.pow(a, 1 / b);
|
61
|
+
}
|
62
|
+
public static function pow(a:Number, b:Number):Number {
|
63
|
+
return Math.pow(a, b);
|
64
|
+
}
|
65
|
+
public static function exp(b:Number):Number {
|
66
|
+
return Math.exp(b);
|
67
|
+
}
|
68
|
+
//
|
69
|
+
//numerical
|
70
|
+
public static function abs(n:Number):Number {
|
71
|
+
return Math.abs(n);
|
72
|
+
}
|
73
|
+
public static function round(n:Number):Number {
|
74
|
+
return Math.round(n);
|
75
|
+
}
|
76
|
+
public static function ceil(n:Number):Number {
|
77
|
+
return Math.ceil(n);
|
78
|
+
}
|
79
|
+
public static function floor(n:Number):Number {
|
80
|
+
return Math.floor(n);
|
81
|
+
}
|
82
|
+
public static function gcd(a:uint, b:uint):uint {
|
83
|
+
var t:uint;
|
84
|
+
while(b != 0) {
|
85
|
+
t = b;
|
86
|
+
b = a % b;
|
87
|
+
a = t
|
88
|
+
}
|
89
|
+
return a;
|
90
|
+
}
|
91
|
+
public static function lcm(a:uint, b:uint):uint {
|
92
|
+
return a / gcd(a, b) * b;
|
93
|
+
}
|
94
|
+
//
|
95
|
+
//probability
|
96
|
+
public static function random(a:Number = 0, b:Number = 1):Number {
|
97
|
+
return a + Math.random() * (b - a);
|
98
|
+
}
|
99
|
+
public static function factorial(n:uint):uint {
|
100
|
+
var s:uint = 1;
|
101
|
+
while(n > 0) {
|
102
|
+
s *= n--;
|
103
|
+
}
|
104
|
+
return s;
|
105
|
+
}
|
106
|
+
public static function perm(n:uint, r:uint):uint {
|
107
|
+
return factorial(n) / factorial(n - r);
|
108
|
+
}
|
109
|
+
public static function comb(n:uint, r:uint):uint {
|
110
|
+
return perm(n, r) / factorial(r);
|
111
|
+
}
|
112
|
+
//
|
113
|
+
}
|
114
|
+
}
|
@@ -0,0 +1,143 @@
|
|
1
|
+
/*
|
2
|
+
VERSION: 0.96
|
3
|
+
DATE: 8/31/2008
|
4
|
+
ACTIONSCRIPT VERSION: 3.0 (AS2 version is available)
|
5
|
+
UPDATES & DOCUMENTATION AT: http://blog.greensock.com/overwritemanager/
|
6
|
+
DESCRIPTION:
|
7
|
+
OverwriteManager is included in all TweenLite/TweenFilterLite/TweenMax downloads and allows you to control how tweens with
|
8
|
+
overlapping properties are handled. Without OverwriteManager, tweens of the same object are always completely overwritten
|
9
|
+
unless you set overwrite:0 (previously overwrite:false which still works by the way).
|
10
|
+
TweenLite.to(mc, 1, {x:100, y:200});
|
11
|
+
TweenLite.to(mc, 1, {alpha:0.5 delay:2}); //Without OverwriteManager, this tween immediately overwrites the previous one
|
12
|
+
So even though there are no overlapping properties in the previous example, the 2nd tween would overwrite the first.
|
13
|
+
The primary reason for this has to do with speed and file size. But if you're willing to sacrifice a little speed and file size,
|
14
|
+
OverwriteManager can work with the tweening classes to automatically sense when there are overlapping properties and then only
|
15
|
+
overwrite the individual properties in the other tween(s). Don't worry, you'd probably never notice even a slight speed decrease
|
16
|
+
unless hundreds of tweens are beginning simultaneously with overlapping properties.
|
17
|
+
I kept OverwriteManager as a separate, optional class primarily because of file size concerns. I know, you're probably thinking
|
18
|
+
"what the heck? It's like 1Kb! What's the big deal?". Well, there are thousands of developers using TweenLite because of its
|
19
|
+
extremely small footprint and blistering speed. Even 1Kb would represent a 33% increase in file size, and some developers have no
|
20
|
+
use for the capabilities of this class.
|
21
|
+
So OverwriteManager is an optional enhancement to TweenLite and TweenFilterLite, but it is automatically included with TweenMax
|
22
|
+
without any additional steps required on your part. That also means that if you use TweenMax anywhere in your project,
|
23
|
+
OverwriteManager will automatically get initted and will therefore affect TweenLite and TweenFilterLite, making their
|
24
|
+
default mode "AUTO" instead of "ALL".
|
25
|
+
USAGE:
|
26
|
+
OverwriteManager has three modes: NONE, ALL, and AUTO. By default, it uses AUTO. Here's what they do:
|
27
|
+
- NONE (0): No tweens are overwritten. This is the fastest mode, but you need to be careful not to create any tweens with
|
28
|
+
overlapping properties, otherwise they'll conflict with each other.
|
29
|
+
- ALL (1): Similar to the default behavior of TweenLite/TweenFilterLite/TweenMax where all tweens of the same object are completely
|
30
|
+
overwritten immediately when the tween is created.
|
31
|
+
TweenLite.to(mc, 1, {x:100, y:200});
|
32
|
+
TweenLite.to(mc, 1, {x:300, delay:2}); //immediately overwrites the previous tween
|
33
|
+
- AUTO (2): Searches for and overwrites only individual overlapping properties in tweens that are running at the time the tween begins.
|
34
|
+
TweenLite.to(mc, 1, {x:100, y:200});
|
35
|
+
TweenLite.to(mc, 1, {x:300}); //only overwrites the "x" property in the previous tween
|
36
|
+
- CONCURRENT (3): Overwrites all tweens of the same object that are active at the time the tween begins.
|
37
|
+
TweenLite.to(mc, 1, {x:100, y:200});
|
38
|
+
TweenLite.to(mc, 1, {x:300, delay:2}); //does NOT overwrite the previous tween because the first tween will have finished by the time this one begins.
|
39
|
+
To add OverwriteManager's capabilities to TweenLite and TweenFilterLite, you must init() the class once (typically on the first frame of your file) like so:
|
40
|
+
OverwriteManager.init();
|
41
|
+
You do NOT need to add this line if you're using TweenMax because it automatically does it internally.
|
42
|
+
EXAMPLES:
|
43
|
+
To start OverwriteManager in AUTO mode (the default) and then do a simple TweenLite tween, simply do:
|
44
|
+
import gs.*;
|
45
|
+
OverwriteManager.init();
|
46
|
+
TweenLite.to(mc, 2, {x:"300"});
|
47
|
+
You can also define overwrite behavior in individual tweens, like so:
|
48
|
+
import gs.*;
|
49
|
+
OverwriteManager.init();
|
50
|
+
TweenLite.to(mc, 2, {x:"300", y:"100"});
|
51
|
+
TweenLite.to(mc, 1, {alpha:0.5, overwrite:1}); //or simply the constant OverwriteManager.ALL
|
52
|
+
TweenLite.to(mc, 3, {x:200, rotation:30, overwrite:2}); //or simply the constant OverwriteManager.AUTO
|
53
|
+
But normally, you'll just control the overwriting directly through the OverwriteManager with its mode property, like this:
|
54
|
+
import gs.*;
|
55
|
+
OverwriteManager.init(OverwriteManager.ALL);
|
56
|
+
//-OR-//
|
57
|
+
OverwriteManager.init();
|
58
|
+
OverwriteManager.mode = OverwriteManager.ALL;
|
59
|
+
The mode can be changed anytime.
|
60
|
+
NOTES:
|
61
|
+
- This class adds about 1Kb to your SWF.
|
62
|
+
CODED BY: Jack Doyle, jack@greensock.com
|
63
|
+
Copyright 2008, GreenSock (This work is subject to the terms in http://www.greensock.com/terms_of_use.html.)
|
64
|
+
*/
|
65
|
+
package gs {
|
66
|
+
import flash.errors.*;
|
67
|
+
import flash.utils.*;
|
68
|
+
public class OverwriteManager {
|
69
|
+
public static const version:Number = 0.96;
|
70
|
+
public static const NONE:int = 0;
|
71
|
+
public static const ALL:int = 1;
|
72
|
+
public static const AUTO:int = 2;
|
73
|
+
public static const CONCURRENT:int = 3;
|
74
|
+
public static var mode:int;
|
75
|
+
public static var enabled:Boolean;
|
76
|
+
public static function init($mode:int=2):int {
|
77
|
+
if (TweenLite.version < 8.14) {
|
78
|
+
////trace("TweenLite warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com.");
|
79
|
+
}
|
80
|
+
TweenLite.overwriteManager = OverwriteManager;
|
81
|
+
mode = $mode;
|
82
|
+
enabled = true;
|
83
|
+
return mode;
|
84
|
+
}
|
85
|
+
public static function manageOverwrites($instance:TweenLite, $objTweens:Dictionary):void {
|
86
|
+
var vars:Object = $instance.vars;
|
87
|
+
var m:int = (vars.overwrite == undefined) ? mode : int(vars.overwrite);
|
88
|
+
if (m < 2) {
|
89
|
+
return;
|
90
|
+
}
|
91
|
+
var tw:Object, startTime:Number = $instance.startTime, a:Array = [], i:int;
|
92
|
+
for each (tw in $objTweens) {
|
93
|
+
if (tw != $instance && tw.startTime <= startTime) {
|
94
|
+
a[a.length] = tw;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
if (a.length == 0) {
|
98
|
+
return;
|
99
|
+
}
|
100
|
+
if (m == AUTO) {
|
101
|
+
if (vars.isTV == true) {
|
102
|
+
vars = vars.exposedProps; //Enables use of the TweenLiteVars, TweenFilterLiteVars, and TweenMaxVars utility classes.
|
103
|
+
}
|
104
|
+
var v:Object = {}, p:String;
|
105
|
+
for (p in vars) {
|
106
|
+
if (p == "ease" || p == "delay" || p == "overwrite" || p == "onComplete" || p == "onCompleteParams" || p == "runBackwards" || p == "persist" || p == "onUpdate" || p == "onUpdateParams" || p == "timeScale" || p == "onStart" || p == "onStartParams" || p == "renderOnStart" || p == "proxiedEase" || p == "easeParams" || p == "onCompleteAll" || p == "onCompleteAllParams" || p == "yoyo" || p == "loop") {
|
107
|
+
//ignore
|
108
|
+
} else {
|
109
|
+
v[p] = 1;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
for (i = a.length - 1; i > -1; i--) {
|
113
|
+
a[i].killVars(v);
|
114
|
+
}
|
115
|
+
} else {
|
116
|
+
for (i = a.length - 1; i > -1; i--) {
|
117
|
+
$objTweens[a[i]] = null; //prevents garbage collection issues.
|
118
|
+
delete $objTweens[a[i]];
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
public static function killVars($killVars:Object, $vars:Object, $tweens:Array, $subTweens:Array, $filters:Array):void {
|
123
|
+
for (var i:int = $subTweens.length - 1; i > -1; i--) {
|
124
|
+
if ($killVars[$subTweens[i].name] != undefined) {
|
125
|
+
$subTweens.splice(i, 1);
|
126
|
+
}
|
127
|
+
}
|
128
|
+
for (i = $tweens.length - 1; i > -1; i--) {
|
129
|
+
if ($killVars[$tweens[i].name] != undefined) {
|
130
|
+
$tweens.splice(i, 1);
|
131
|
+
}
|
132
|
+
}
|
133
|
+
for (i = $filters.length - 1; i > -1; i--) {
|
134
|
+
if ($killVars[$filters[i].name] != undefined) {
|
135
|
+
$filters.splice(i, 1);
|
136
|
+
}
|
137
|
+
}
|
138
|
+
for (var p:String in $killVars) {
|
139
|
+
delete $vars[p];
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|