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,94 @@
|
|
1
|
+
package com.adobe.ac.mxeffects.effectClasses
|
2
|
+
{
|
3
|
+
import com.adobe.ac.mxeffects.CubeRotate;
|
4
|
+
import com.adobe.ac.mxeffects.Distortion;
|
5
|
+
import com.adobe.ac.mxeffects.DistortionConstants;
|
6
|
+
import flash.geom.Rectangle;
|
7
|
+
public class CubeRotateInstance extends DistortBaseInstance
|
8
|
+
{
|
9
|
+
private var distortLeaving : Distortion;
|
10
|
+
private var distortComing : Distortion;
|
11
|
+
public function CubeRotateInstance( target:Object )
|
12
|
+
{
|
13
|
+
super( target );
|
14
|
+
}
|
15
|
+
override public function play() : void
|
16
|
+
{
|
17
|
+
if( direction == null ) direction = CubeRotate.defaultDirection;
|
18
|
+
if( buildMode == null ) buildMode = CubeRotate.defaultBuildMode;
|
19
|
+
super.play();
|
20
|
+
startAnimation();
|
21
|
+
}
|
22
|
+
private function startAnimation() : void
|
23
|
+
{
|
24
|
+
var leavingOffsetRect : Rectangle;
|
25
|
+
var comingOffsetRect : Rectangle;
|
26
|
+
if( direction == DistortionConstants.RIGHT )
|
27
|
+
{
|
28
|
+
leavingOffsetRect = new Rectangle( 0, NaN, target.width, NaN );
|
29
|
+
comingOffsetRect = new Rectangle( NaN, NaN, target.width, NaN );
|
30
|
+
}
|
31
|
+
else if( direction == DistortionConstants.LEFT )
|
32
|
+
{
|
33
|
+
leavingOffsetRect = new Rectangle( NaN, NaN, target.width, NaN );
|
34
|
+
comingOffsetRect = new Rectangle( 0, NaN, target.width, NaN );
|
35
|
+
}
|
36
|
+
else if( direction == DistortionConstants.TOP )
|
37
|
+
{
|
38
|
+
leavingOffsetRect = new Rectangle( NaN, 0, NaN, target.height );
|
39
|
+
comingOffsetRect = new Rectangle( NaN, 0, NaN, NaN );
|
40
|
+
}
|
41
|
+
else if( direction == DistortionConstants.BOTTOM )
|
42
|
+
{
|
43
|
+
leavingOffsetRect = new Rectangle( NaN, 0, NaN, NaN );
|
44
|
+
comingOffsetRect = new Rectangle( NaN, 0, NaN, target.height );
|
45
|
+
}
|
46
|
+
initializeNextTarget();
|
47
|
+
distortLeaving = new Distortion( currentTarget, leavingOffsetRect );
|
48
|
+
applyCoordSpaceChange( distortLeaving, getContainerChild( siblings[ currentSibling ] ) );
|
49
|
+
applyDistortionMode( distortLeaving );
|
50
|
+
applyBlur( distortLeaving.container );
|
51
|
+
initializeNextTarget();
|
52
|
+
distortComing = new Distortion( currentTarget, comingOffsetRect );
|
53
|
+
applyCoordSpaceChange( distortComing, getContainerChild( siblings[ currentSibling - 1 ] ) );
|
54
|
+
applyDistortionMode( distortComing );
|
55
|
+
applyBlur( distortComing.container );
|
56
|
+
animateLeaving();
|
57
|
+
animateComing();
|
58
|
+
}
|
59
|
+
private function updateLeaving( value : Object ) : void
|
60
|
+
{
|
61
|
+
distortLeaving.pop( Number( value ), direction, distortion );
|
62
|
+
}
|
63
|
+
private function updateComing( value : Object ) : void
|
64
|
+
{
|
65
|
+
distortComing.push( Number( value ), direction, distortion );
|
66
|
+
}
|
67
|
+
private function endAnimation( value : Object ) : void
|
68
|
+
{
|
69
|
+
distortLeaving.destroy( false );
|
70
|
+
var hasSiblings : Boolean = ( siblings.length > currentSibling + 1 );
|
71
|
+
if( hasSiblings )
|
72
|
+
{
|
73
|
+
currentSibling--;
|
74
|
+
delayDeletion( distortComing );
|
75
|
+
startAnimation();
|
76
|
+
}
|
77
|
+
else
|
78
|
+
{
|
79
|
+
distortComing.destroy();
|
80
|
+
super.onTweenEnd( value );
|
81
|
+
}
|
82
|
+
}
|
83
|
+
private function animateLeaving() : void
|
84
|
+
{
|
85
|
+
var updateMethod : Function = updateLeaving;
|
86
|
+
animate( 0, 100, siblingDuration, updateMethod, null );
|
87
|
+
}
|
88
|
+
private function animateComing() : void
|
89
|
+
{
|
90
|
+
var updateMethod : Function = updateComing;
|
91
|
+
animate( 0, 100, siblingDuration, updateMethod, endAnimation );
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
@@ -0,0 +1,258 @@
|
|
1
|
+
package com.adobe.ac.mxeffects.effectClasses
|
2
|
+
{
|
3
|
+
import com.adobe.ac.mxeffects.Distortion;
|
4
|
+
import com.adobe.ac.mxeffects.DistortionConstants;
|
5
|
+
import flash.display.DisplayObject;
|
6
|
+
import flash.display.DisplayObjectContainer;
|
7
|
+
import flash.events.Event;
|
8
|
+
import flash.filters.BlurFilter;
|
9
|
+
import flash.geom.Point;
|
10
|
+
import flash.geom.Rectangle;
|
11
|
+
import flash.utils.Dictionary;
|
12
|
+
import mx.core.Container;
|
13
|
+
import mx.core.ContainerCreationPolicy;
|
14
|
+
import mx.core.IFlexDisplayObject;
|
15
|
+
import mx.core.UIComponent;
|
16
|
+
import mx.core.mx_internal;
|
17
|
+
import mx.effects.Tween;
|
18
|
+
import mx.effects.effectClasses.TweenEffectInstance;
|
19
|
+
import mx.events.TweenEvent;
|
20
|
+
use namespace mx_internal;
|
21
|
+
public class DistortBaseInstance extends TweenEffectInstance
|
22
|
+
{
|
23
|
+
public var direction : String;
|
24
|
+
public var buildMode : String;
|
25
|
+
public var smooth : Boolean;
|
26
|
+
public var distortion : Number;
|
27
|
+
public var blur : BlurFilter;
|
28
|
+
public var offsetRect : Rectangle;
|
29
|
+
public var quality : String;
|
30
|
+
public var liveUpdate : Boolean = false;
|
31
|
+
public var liveUpdateInterval : int = 0;
|
32
|
+
protected var siblingDuration : Number;
|
33
|
+
protected var currentSibling : int;
|
34
|
+
protected var currentTarget : UIComponent;
|
35
|
+
protected var container : DisplayObjectContainer;
|
36
|
+
private var originalContainerCreationPolicy : String;
|
37
|
+
private var distortDeletionPending : Distortion;
|
38
|
+
private var concatenatedMatrices : Dictionary;
|
39
|
+
private var _siblings : Array;
|
40
|
+
private var _containerChild : DisplayObject;
|
41
|
+
public function DistortBaseInstance( target : Object )
|
42
|
+
{
|
43
|
+
super( target );
|
44
|
+
}
|
45
|
+
public function get siblings() : Array
|
46
|
+
{
|
47
|
+
return _siblings;
|
48
|
+
}
|
49
|
+
public function set siblings( value : Array ) : void
|
50
|
+
{
|
51
|
+
var index : int = value.indexOf( null );
|
52
|
+
if( index > -1 )
|
53
|
+
{
|
54
|
+
throw new Error( "siblings: [" + value + "] contains a null value at position " + index );
|
55
|
+
}
|
56
|
+
_siblings = value;
|
57
|
+
}
|
58
|
+
override public function play() : void
|
59
|
+
{
|
60
|
+
super.play();
|
61
|
+
initializeProperties();
|
62
|
+
}
|
63
|
+
protected function applyBlur( target : DisplayObject ) : void
|
64
|
+
{
|
65
|
+
if( blur != null )
|
66
|
+
{
|
67
|
+
var filters : Array = target.filters;
|
68
|
+
filters.push( blur );
|
69
|
+
target.filters = filters;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
protected function applyDistortionMode( distortion : Distortion ) : void
|
73
|
+
{
|
74
|
+
if( buildMode != null ) distortion.buildMode = buildMode;
|
75
|
+
distortion.smooth = smooth;
|
76
|
+
distortion.liveUpdate = liveUpdate;
|
77
|
+
findContainer();
|
78
|
+
distortion.targetContainer = container;
|
79
|
+
distortion.concatenatedMatrix = concatenatedMatrices[ distortion.target ];
|
80
|
+
}
|
81
|
+
protected function applyCoordSpaceChange( distortion : Distortion, coordSpaceChild : DisplayObject ) : void
|
82
|
+
{
|
83
|
+
var correctBuildMode : Boolean = ( buildMode == DistortionConstants.POPUP );
|
84
|
+
var coordsSpaceChange : Boolean = ( correctBuildMode && currentTarget.parent == null );
|
85
|
+
if( coordsSpaceChange )
|
86
|
+
{
|
87
|
+
distortion.positionedTarget = DisplayObject( coordSpaceChild );
|
88
|
+
}
|
89
|
+
}
|
90
|
+
protected function animate( startPoints : Object, endPoints : Object,
|
91
|
+
siblingDuration : Number,
|
92
|
+
updateHandler : Function, endHandler : Function ) : void
|
93
|
+
{
|
94
|
+
var tweenListener : Object = new Object();
|
95
|
+
var tween : Tween = createTween( tweenListener, startPoints, endPoints, siblingDuration );
|
96
|
+
if( endHandler == null ) endHandler = onEnd;
|
97
|
+
tween.setTweenHandlers( updateHandler, endHandler );
|
98
|
+
}
|
99
|
+
protected function initializeNextTarget() : void
|
100
|
+
{
|
101
|
+
currentSibling++;
|
102
|
+
currentTarget = siblings[ currentSibling ];
|
103
|
+
initializeBounds( currentTarget );
|
104
|
+
}
|
105
|
+
protected function initializePreviousTarget() : void
|
106
|
+
{
|
107
|
+
currentSibling--;
|
108
|
+
currentTarget = siblings[ currentSibling ];
|
109
|
+
initializeBounds( currentTarget );
|
110
|
+
}
|
111
|
+
protected function initializeProperties() : void
|
112
|
+
{
|
113
|
+
if( isNaN( distortion ) ) distortion = 20;
|
114
|
+
siblingDuration = duration / siblings.length;
|
115
|
+
currentSibling = -1;
|
116
|
+
siblings.unshift( target );
|
117
|
+
findContainer();
|
118
|
+
initializeChildrenForCapture();
|
119
|
+
}
|
120
|
+
protected function initializeBounds( newChild : UIComponent ) : void
|
121
|
+
{
|
122
|
+
var firstChild : DisplayObject = DisplayObject( target );
|
123
|
+
if( container is Container )
|
124
|
+
{
|
125
|
+
var mxContainer : Container = Container( container );
|
126
|
+
originalContainerCreationPolicy = mxContainer.creationPolicy;
|
127
|
+
mxContainer.creationPolicy = ContainerCreationPolicy.ALL;
|
128
|
+
mxContainer.validateNow();
|
129
|
+
}
|
130
|
+
newChild.setActualSize( firstChild.width, firstChild.height );
|
131
|
+
newChild.validateNow();
|
132
|
+
}
|
133
|
+
override public function onTweenEnd( value : Object ) : void
|
134
|
+
{
|
135
|
+
if( originalContainerCreationPolicy != null )
|
136
|
+
{
|
137
|
+
var mxContainer : Container = Container( container );
|
138
|
+
mxContainer.creationPolicy = originalContainerCreationPolicy;
|
139
|
+
}
|
140
|
+
reset();
|
141
|
+
super.onTweenEnd( value );
|
142
|
+
}
|
143
|
+
protected function getContainerChild( child : DisplayObject ) : DisplayObject
|
144
|
+
{
|
145
|
+
var coordsChild : DisplayObject;
|
146
|
+
if( child.parent == null )
|
147
|
+
coordsChild = containerChild;
|
148
|
+
else
|
149
|
+
coordsChild = child;
|
150
|
+
return coordsChild;
|
151
|
+
}
|
152
|
+
protected function get containerChild() : DisplayObject
|
153
|
+
{
|
154
|
+
if( _containerChild == null )
|
155
|
+
{
|
156
|
+
_containerChild = findContainerChild();
|
157
|
+
}
|
158
|
+
else if( _containerChild.parent == null )
|
159
|
+
{
|
160
|
+
_containerChild = findContainerChild();
|
161
|
+
}
|
162
|
+
return _containerChild;
|
163
|
+
}
|
164
|
+
protected function set containerChild( value : DisplayObject ) : void
|
165
|
+
{
|
166
|
+
_containerChild = value;
|
167
|
+
}
|
168
|
+
private function findContainerChild() : DisplayObject
|
169
|
+
{
|
170
|
+
var containerChild : DisplayObject;
|
171
|
+
var len : Number = siblings.length;
|
172
|
+
for( var i : int; i < len; i++ )
|
173
|
+
{
|
174
|
+
var child : DisplayObject = siblings[ i ];
|
175
|
+
if( child.parent != null )
|
176
|
+
{
|
177
|
+
containerChild = child;
|
178
|
+
break;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
return containerChild;
|
182
|
+
}
|
183
|
+
private function findContainer() : void
|
184
|
+
{
|
185
|
+
if( this.container == null )
|
186
|
+
{
|
187
|
+
var container : DisplayObjectContainer;
|
188
|
+
if( target.parent != null )
|
189
|
+
{
|
190
|
+
container = target.parent;
|
191
|
+
}
|
192
|
+
else
|
193
|
+
{
|
194
|
+
var len : Number = siblings.length;
|
195
|
+
for( var i : int; i < len; i++ )
|
196
|
+
{
|
197
|
+
var child : DisplayObject = siblings[ i ];
|
198
|
+
if( child.parent != null )
|
199
|
+
{
|
200
|
+
container = DisplayObjectContainer( child.parent );
|
201
|
+
containerChild = child;
|
202
|
+
break;
|
203
|
+
}
|
204
|
+
}
|
205
|
+
}
|
206
|
+
this.container = container;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
private function initializeChildrenForCapture() : void
|
210
|
+
{
|
211
|
+
concatenatedMatrices = new Dictionary();
|
212
|
+
var mxContainer : Container = Container( container );
|
213
|
+
var len : Number = siblings.length;
|
214
|
+
for( var i : int; i < len; i++ )
|
215
|
+
{
|
216
|
+
var child : DisplayObject = siblings[ i ];
|
217
|
+
if( child.parent == null )
|
218
|
+
{
|
219
|
+
mxContainer.addChild( child );
|
220
|
+
mxContainer.validateNow();
|
221
|
+
concatenatedMatrices[ child ] = child.transform.concatenatedMatrix;
|
222
|
+
mxContainer.removeChild( child );
|
223
|
+
}
|
224
|
+
else
|
225
|
+
{
|
226
|
+
concatenatedMatrices[ child ] = child.transform.concatenatedMatrix;
|
227
|
+
}
|
228
|
+
}
|
229
|
+
}
|
230
|
+
private function reset() : void
|
231
|
+
{
|
232
|
+
siblings.shift();
|
233
|
+
siblingDuration = 0;
|
234
|
+
currentSibling = 0;
|
235
|
+
currentTarget = null;
|
236
|
+
container = null;
|
237
|
+
originalContainerCreationPolicy = null;
|
238
|
+
}
|
239
|
+
protected function delayDeletion( distortComing : Distortion ) : void
|
240
|
+
{
|
241
|
+
distortDeletionPending = distortComing;
|
242
|
+
addEventListener( TweenEvent.TWEEN_START, performDistortDeletion );
|
243
|
+
}
|
244
|
+
private function performDistortDeletion( event : TweenEvent ) : void
|
245
|
+
{
|
246
|
+
if( distortDeletionPending != null )
|
247
|
+
{
|
248
|
+
distortDeletionPending.destroy();
|
249
|
+
distortDeletionPending = null;
|
250
|
+
removeEventListener( TweenEvent.TWEEN_START, performDistortDeletion );
|
251
|
+
}
|
252
|
+
}
|
253
|
+
private function onEnd( value : Object ) : void
|
254
|
+
{
|
255
|
+
//dummy handler
|
256
|
+
}
|
257
|
+
}
|
258
|
+
}
|
data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/DoorInstance.as
ADDED
@@ -0,0 +1,116 @@
|
|
1
|
+
package com.adobe.ac.mxeffects.effectClasses
|
2
|
+
{
|
3
|
+
import com.adobe.ac.mxeffects.Distortion;
|
4
|
+
import com.adobe.ac.mxeffects.Door;
|
5
|
+
public class DoorInstance extends DistortBaseInstance
|
6
|
+
{
|
7
|
+
public var mode : String;
|
8
|
+
private var distort : Distortion;
|
9
|
+
private var distortBack : Distortion;
|
10
|
+
public function DoorInstance( target : Object )
|
11
|
+
{
|
12
|
+
super( target );
|
13
|
+
}
|
14
|
+
override public function play() : void
|
15
|
+
{
|
16
|
+
if( direction == null ) direction = Door.defaultDirection;
|
17
|
+
if( mode == null ) mode = Door.defaultMode;
|
18
|
+
if( buildMode == null ) buildMode = Door.defaultBuildMode;
|
19
|
+
super.play();
|
20
|
+
startAnimation();
|
21
|
+
}
|
22
|
+
private function startAnimation() : void
|
23
|
+
{
|
24
|
+
initializeNextTarget();
|
25
|
+
nextAnimation();
|
26
|
+
}
|
27
|
+
private function nextAnimation() : void
|
28
|
+
{
|
29
|
+
if( mode == Door.OPEN )
|
30
|
+
{
|
31
|
+
initializeNextTarget();
|
32
|
+
distortBack = new Distortion( currentTarget );
|
33
|
+
applyCoordSpaceChange( distortBack, getContainerChild( siblings[ currentSibling - 1 ] ) );
|
34
|
+
applyDistortionMode( distortBack );
|
35
|
+
distortBack.renderSides( 100, 100, 100, 100 );
|
36
|
+
initializePreviousTarget();
|
37
|
+
startOpen();
|
38
|
+
}
|
39
|
+
else if( mode == Door.CLOSE )
|
40
|
+
{
|
41
|
+
distortBack = new Distortion( currentTarget );
|
42
|
+
applyCoordSpaceChange( distortBack, getContainerChild( siblings[ currentSibling ] ) );
|
43
|
+
applyDistortionMode( distortBack );
|
44
|
+
distortBack.renderSides( 100, 100, 100, 100 );
|
45
|
+
initializeNextTarget();
|
46
|
+
startClose();
|
47
|
+
initializePreviousTarget();
|
48
|
+
}
|
49
|
+
distortBack.container.x -= distortBack.offsetRect.x;
|
50
|
+
}
|
51
|
+
private function startOpen() : void
|
52
|
+
{
|
53
|
+
distort = new Distortion( currentTarget );
|
54
|
+
applyCoordSpaceChange( distort, getContainerChild( siblings[ currentSibling ] ) );
|
55
|
+
applyDistortionMode( distort );
|
56
|
+
applyBlur( distort.container );
|
57
|
+
distort.renderSides( 100, 100, 100, 100 );
|
58
|
+
var updateMethod : Function = updateOpenAnimation;
|
59
|
+
animate( 0, 100, siblingDuration, updateMethod, endAnimation );
|
60
|
+
}
|
61
|
+
private function updateOpenAnimation( value : Object ) : void
|
62
|
+
{
|
63
|
+
if( liveUpdate ) distortBack.renderSides( 100, 100, 100, 100 );
|
64
|
+
distort.openDoor( Number( value ), direction, distortion );
|
65
|
+
}
|
66
|
+
private function endAnimation( value : Object ) : void
|
67
|
+
{
|
68
|
+
if( mode == Door.OPEN )
|
69
|
+
{
|
70
|
+
distortBack.destroy();
|
71
|
+
distort.destroy( false );
|
72
|
+
}
|
73
|
+
else if( mode == Door.CLOSE )
|
74
|
+
{
|
75
|
+
distortBack.destroy( false );
|
76
|
+
distort.destroy();
|
77
|
+
}
|
78
|
+
currentSibling++;
|
79
|
+
var hasSiblings : Boolean = ( siblings.length > currentSibling + 1 );
|
80
|
+
if( hasSiblings )
|
81
|
+
{
|
82
|
+
currentSibling--;
|
83
|
+
startAnimation();
|
84
|
+
}
|
85
|
+
else
|
86
|
+
{
|
87
|
+
super.onTweenEnd( value );
|
88
|
+
}
|
89
|
+
}
|
90
|
+
private function startClose() : void
|
91
|
+
{
|
92
|
+
distort = new Distortion( currentTarget );
|
93
|
+
distort.liveUpdate = liveUpdate;
|
94
|
+
applyCoordSpaceChange( distort, getContainerChild( siblings[ currentSibling ] ) );
|
95
|
+
applyDistortionMode( distort );
|
96
|
+
applyBlur( distort.container );
|
97
|
+
var updateMethod : Function = updateCloseAnimation;
|
98
|
+
animate( 0, 100, siblingDuration, updateMethod, endAnimation );
|
99
|
+
}
|
100
|
+
private function updateCloseAnimation( value : Object ) : void
|
101
|
+
{
|
102
|
+
if( liveUpdate ) distortBack.renderSides( 100, 100, 100, 100 );
|
103
|
+
distort.closeDoor( Number( value ), direction, distortion );
|
104
|
+
}
|
105
|
+
private function updateWithLightingToWhite( value : Object ) : void
|
106
|
+
{
|
107
|
+
var updateValue : Number = Number( value );
|
108
|
+
updateCloseAnimation( updateValue );
|
109
|
+
}
|
110
|
+
private function updateWithLightingFromBlack( value : Object ) : void
|
111
|
+
{
|
112
|
+
var updateValue : Number = Number( value );
|
113
|
+
updateCloseAnimation( updateValue );
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/FlipInstance.as
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
package com.adobe.ac.mxeffects.effectClasses
|
2
|
+
{
|
3
|
+
import com.adobe.ac.mxeffects.Distortion;
|
4
|
+
import com.adobe.ac.mxeffects.DistortionConstants;
|
5
|
+
import com.adobe.ac.mxeffects.Flip;
|
6
|
+
public class FlipInstance extends DistortBaseInstance
|
7
|
+
{
|
8
|
+
public var exceedBounds : Boolean;
|
9
|
+
public var hasCustomExceedBounds : Boolean;
|
10
|
+
public var horizontalLightingLocation : String;
|
11
|
+
public var verticalLightingLocation : String;
|
12
|
+
private var distortFront : Distortion;
|
13
|
+
private var distortBack : Distortion;
|
14
|
+
public function FlipInstance( target : Object )
|
15
|
+
{
|
16
|
+
super( target );
|
17
|
+
}
|
18
|
+
override public function play() : void
|
19
|
+
{
|
20
|
+
if( direction == null ) direction = Flip.defaultDirection;
|
21
|
+
if( buildMode == null ) buildMode = Flip.defaultBuildMode;
|
22
|
+
if( !hasCustomExceedBounds ) exceedBounds = true;
|
23
|
+
super.play();
|
24
|
+
startFlipFront();
|
25
|
+
}
|
26
|
+
private function startFlipFront() : void
|
27
|
+
{
|
28
|
+
initializeNextTarget();
|
29
|
+
distortFront = new Distortion( currentTarget );
|
30
|
+
applyCoordSpaceChange( distortFront, getContainerChild( siblings[ currentSibling ] ) );
|
31
|
+
applyDistortionMode( distortFront );
|
32
|
+
applyBlur( distortFront.container );
|
33
|
+
var updateMethod : Function = updateFront;
|
34
|
+
animate( 0, 100, siblingDuration / 2, updateMethod, endFront );
|
35
|
+
}
|
36
|
+
private function updateFront( value : Object ) : void
|
37
|
+
{
|
38
|
+
distortFront.flipFront( Number( value ), direction, distortion, exceedBounds );
|
39
|
+
}
|
40
|
+
private function endFront( value : Object ) : void
|
41
|
+
{
|
42
|
+
if( buildMode == DistortionConstants.REPLACE )
|
43
|
+
{
|
44
|
+
container.removeChild( distortFront.container );
|
45
|
+
}
|
46
|
+
startFlipBack();
|
47
|
+
}
|
48
|
+
private function startFlipBack() : void
|
49
|
+
{
|
50
|
+
initializeNextTarget();
|
51
|
+
distortBack = new Distortion( currentTarget );
|
52
|
+
applyCoordSpaceChange( distortBack, getContainerChild( siblings[ currentSibling - 1 ] ) );
|
53
|
+
applyDistortionMode( distortBack );
|
54
|
+
applyBlur( distortBack.container );
|
55
|
+
var updateMethod : Function = updateBack;
|
56
|
+
animate( 0, 100, siblingDuration / 2, updateMethod, endBack );
|
57
|
+
}
|
58
|
+
private function updateBack( value : Object ) : void
|
59
|
+
{
|
60
|
+
distortBack.flipBack( Number( value ), direction, distortion, exceedBounds );
|
61
|
+
}
|
62
|
+
private function endBack( value : Object ) : void
|
63
|
+
{
|
64
|
+
distortFront.destroy( false );
|
65
|
+
var hasSiblings : Boolean = ( siblings.length > currentSibling + 1 );
|
66
|
+
if( hasSiblings )
|
67
|
+
{
|
68
|
+
currentSibling--;
|
69
|
+
delayDeletion( distortBack );
|
70
|
+
startFlipFront();
|
71
|
+
}
|
72
|
+
else
|
73
|
+
{
|
74
|
+
distortBack.destroy();
|
75
|
+
super.onTweenEnd( value );
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
data/lib/mako/data/flash_widget_dev_core/src/com/adobe/ac/mxeffects/effectClasses/GateInstance.as
ADDED
@@ -0,0 +1,163 @@
|
|
1
|
+
package com.adobe.ac.mxeffects.effectClasses
|
2
|
+
{
|
3
|
+
import com.adobe.ac.mxeffects.Distortion;
|
4
|
+
import com.adobe.ac.mxeffects.DistortionConstants;
|
5
|
+
import com.adobe.ac.mxeffects.Gate;
|
6
|
+
import flash.geom.Rectangle;
|
7
|
+
import mx.core.IFlexDisplayObject;
|
8
|
+
public class GateInstance extends DistortBaseInstance
|
9
|
+
{
|
10
|
+
public var mode : String;
|
11
|
+
private var distortLeft : Distortion;
|
12
|
+
private var distortRight : Distortion;
|
13
|
+
private var distortBack : Distortion;
|
14
|
+
public function GateInstance( target : Object )
|
15
|
+
{
|
16
|
+
super( target );
|
17
|
+
}
|
18
|
+
override public function play() : void
|
19
|
+
{
|
20
|
+
if( direction == null ) direction = Gate.defaultDirection;
|
21
|
+
if( mode == null ) mode = Gate.defaultMode;
|
22
|
+
if( buildMode == null ) buildMode = Gate.defaultBuildMode;
|
23
|
+
super.play();
|
24
|
+
startAnimation();
|
25
|
+
}
|
26
|
+
private function startAnimation() : void
|
27
|
+
{
|
28
|
+
initializeNextTarget();
|
29
|
+
nextAnimation();
|
30
|
+
}
|
31
|
+
private function nextAnimation() : void
|
32
|
+
{
|
33
|
+
if( mode == Gate.OPEN )
|
34
|
+
{
|
35
|
+
initializeNextTarget();
|
36
|
+
distortBack = new Distortion( currentTarget );
|
37
|
+
applyCoordSpaceChange( distortBack, getContainerChild( siblings[ currentSibling - 1 ] ) );
|
38
|
+
applyDistortionMode( distortBack );
|
39
|
+
distortBack.renderSides( 100, 100, 100, 100 );
|
40
|
+
initializePreviousTarget();
|
41
|
+
startOpen();
|
42
|
+
}
|
43
|
+
else if( mode == Gate.CLOSE )
|
44
|
+
{
|
45
|
+
distortBack = new Distortion( currentTarget );
|
46
|
+
applyCoordSpaceChange( distortBack, getContainerChild( siblings[ currentSibling ] ) );
|
47
|
+
applyDistortionMode( distortBack );
|
48
|
+
distortBack.renderSides( 100, 100, 100, 100 );
|
49
|
+
initializeNextTarget();
|
50
|
+
startClose();
|
51
|
+
initializePreviousTarget();
|
52
|
+
}
|
53
|
+
distortBack.container.x -= distortBack.offsetRect.x;
|
54
|
+
}
|
55
|
+
private function startOpen() : void
|
56
|
+
{
|
57
|
+
initLeftAndRightDistortions();
|
58
|
+
distortLeft.openDoor( 0, direction, distortion );
|
59
|
+
distortRight.openDoor( 0, direction, distortion );
|
60
|
+
var updateMethod : Function = updateOpenAnimation;
|
61
|
+
animate( 0, 100, siblingDuration, updateMethod, endAnimation );
|
62
|
+
}
|
63
|
+
private function updateOpenAnimation( value : Object ) : void
|
64
|
+
{
|
65
|
+
if( liveUpdate ) distortBack.renderSides( 100, 100, 100, 100 );
|
66
|
+
distortLeft.openDoor( Number( value ), direction, distortion );
|
67
|
+
distortRight.openDoor( Number( value ),
|
68
|
+
distortRight.reverseDirection( direction ),
|
69
|
+
distortion );
|
70
|
+
}
|
71
|
+
private function endAnimation( value : Object ) : void
|
72
|
+
{
|
73
|
+
if( mode == Gate.OPEN )
|
74
|
+
{
|
75
|
+
distortBack.destroy();
|
76
|
+
distortLeft.destroy( false );
|
77
|
+
distortRight.destroy( false );
|
78
|
+
}
|
79
|
+
else if( mode == Gate.CLOSE )
|
80
|
+
{
|
81
|
+
distortBack.destroy( false );
|
82
|
+
distortLeft.destroy();
|
83
|
+
distortRight.destroy();
|
84
|
+
}
|
85
|
+
currentSibling++;
|
86
|
+
var hasSiblings : Boolean = ( siblings.length > currentSibling + 1 );
|
87
|
+
if( hasSiblings )
|
88
|
+
{
|
89
|
+
currentSibling--;
|
90
|
+
startAnimation();
|
91
|
+
}
|
92
|
+
else
|
93
|
+
{
|
94
|
+
super.onTweenEnd( value );
|
95
|
+
}
|
96
|
+
}
|
97
|
+
private function startClose() : void
|
98
|
+
{
|
99
|
+
initLeftAndRightDistortions();
|
100
|
+
var updateMethod : Function = updateCloseAnimation;
|
101
|
+
animate( 0, 100, siblingDuration, updateMethod, endAnimation );
|
102
|
+
}
|
103
|
+
private function updateCloseAnimation( value : Object ) : void
|
104
|
+
{
|
105
|
+
if( liveUpdate ) distortBack.renderSides( 100, 100, 100, 100 );
|
106
|
+
distortLeft.closeDoor( Number( value ), direction, distortion );
|
107
|
+
distortRight.closeDoor( Number( value ),
|
108
|
+
distortRight.reverseDirection( direction ),
|
109
|
+
distortion );
|
110
|
+
}
|
111
|
+
private function initLeftAndRightDistortions() : void
|
112
|
+
{
|
113
|
+
var leftRect : Rectangle;
|
114
|
+
var rightRect : Rectangle;
|
115
|
+
if( direction == DistortionConstants.LEFT || direction == DistortionConstants.RIGHT )
|
116
|
+
{
|
117
|
+
leftRect = getVerticalLeftRectangle( currentTarget );
|
118
|
+
rightRect = getVerticalRightRectangle( currentTarget );
|
119
|
+
}
|
120
|
+
else if( direction == DistortionConstants.TOP || direction == DistortionConstants.BOTTOM )
|
121
|
+
{
|
122
|
+
leftRect = getHorizontalLeftRectangle( currentTarget );
|
123
|
+
rightRect = getHorizontalRightRectangle( currentTarget );
|
124
|
+
}
|
125
|
+
distortLeft = new Distortion( currentTarget, leftRect );
|
126
|
+
distortRight = new Distortion( currentTarget, rightRect );
|
127
|
+
applyCoordSpaceChange( distortLeft, getContainerChild( siblings[ currentSibling ] ) );
|
128
|
+
applyCoordSpaceChange( distortRight, getContainerChild( siblings[ currentSibling ] ) );
|
129
|
+
applyDistortionMode( distortLeft );
|
130
|
+
applyDistortionMode( distortRight );
|
131
|
+
applyBlur( distortLeft.container );
|
132
|
+
applyBlur( distortRight.container );
|
133
|
+
}
|
134
|
+
private function getVerticalLeftRectangle( currentTarget : IFlexDisplayObject ) : Rectangle
|
135
|
+
{
|
136
|
+
var leftRect : Rectangle = new Rectangle( 0, 0 );
|
137
|
+
leftRect.width = currentTarget.width / 2;
|
138
|
+
leftRect.height = NaN;
|
139
|
+
return leftRect;
|
140
|
+
}
|
141
|
+
private function getVerticalRightRectangle( currentTarget : IFlexDisplayObject ) : Rectangle
|
142
|
+
{
|
143
|
+
var rightRect : Rectangle = new Rectangle( currentTarget.width / 2, 0 );
|
144
|
+
rightRect.width = currentTarget.width / 2;
|
145
|
+
rightRect.height = NaN;
|
146
|
+
return rightRect;
|
147
|
+
}
|
148
|
+
private function getHorizontalLeftRectangle( currentTarget : IFlexDisplayObject ) : Rectangle
|
149
|
+
{
|
150
|
+
var leftRect : Rectangle = new Rectangle( 0, 0 );
|
151
|
+
leftRect.width = currentTarget.width;
|
152
|
+
leftRect.height = currentTarget.height / 2;
|
153
|
+
return leftRect;
|
154
|
+
}
|
155
|
+
private function getHorizontalRightRectangle( currentTarget : IFlexDisplayObject ) : Rectangle
|
156
|
+
{
|
157
|
+
var rightRect : Rectangle = new Rectangle( 0, currentTarget.height / 2 );
|
158
|
+
rightRect.width = currentTarget.width;
|
159
|
+
rightRect.height = currentTarget.height / 2;
|
160
|
+
return rightRect;
|
161
|
+
}
|
162
|
+
}
|
163
|
+
}
|