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,281 @@
|
|
1
|
+
/*
|
2
|
+
# ***** BEGIN LICENSE BLOCK *****
|
3
|
+
Copyright the original author or authors.
|
4
|
+
Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
http://www.mozilla.org/MPL/MPL-1.1.html
|
8
|
+
Unless required by applicable law or agreed to in writing, software
|
9
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
10
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
11
|
+
See the License for the specific language governing permissions and
|
12
|
+
limitations under the License.
|
13
|
+
# ***** END LICENSE BLOCK *****
|
14
|
+
*/
|
15
|
+
/*
|
16
|
+
****************************
|
17
|
+
* From a first idea and first implementation of Andre Michelle www.andre-michelle.com
|
18
|
+
* @version 2.0
|
19
|
+
* @author Thomas Pfeiffer - kiroukou - http://www.thomas-pfeiffer.info
|
20
|
+
* @author Richard Lester - RichL
|
21
|
+
* @author Didier Brun - foxy - http://www.foxaweb.com
|
22
|
+
* @author Alex Uhlmann
|
23
|
+
* @website: http://sandy.media-box.net
|
24
|
+
* @description: Tesselate a movieclip into several triangles to allow free transform distorsion.
|
25
|
+
*/
|
26
|
+
package sandy.util
|
27
|
+
{
|
28
|
+
import flash.display.BitmapData;
|
29
|
+
import flash.display.DisplayObject;
|
30
|
+
import flash.display.Shape;
|
31
|
+
import flash.display.Sprite;
|
32
|
+
import flash.geom.Matrix;
|
33
|
+
import flash.geom.Rectangle;
|
34
|
+
public class DistortImage
|
35
|
+
{
|
36
|
+
public var smooth : Boolean;
|
37
|
+
// -- texture to distort
|
38
|
+
public var texture:BitmapData;
|
39
|
+
// -- container Sprite or Shape : the display object containing the distorted picture drawn via graphics.
|
40
|
+
private var _container:Object;
|
41
|
+
public function get container() : Object
|
42
|
+
{
|
43
|
+
return _container;
|
44
|
+
}
|
45
|
+
public function set container( value : Object ) : void
|
46
|
+
{
|
47
|
+
if( ( value is Shape ) || ( value is Sprite ) )
|
48
|
+
{
|
49
|
+
_container = value;
|
50
|
+
}
|
51
|
+
else
|
52
|
+
{
|
53
|
+
throw new Error('container must be flash.display.Shape or flash.display.Sprite');
|
54
|
+
}
|
55
|
+
}
|
56
|
+
// -- target Object : either a BitmapData or a sprite
|
57
|
+
public var target:Object;
|
58
|
+
// -- arrays of differents datas types
|
59
|
+
public var points:Array;
|
60
|
+
/////////////////////////
|
61
|
+
/// PRIVATE PROPERTIES //
|
62
|
+
/////////////////////////
|
63
|
+
private var offsetRect:Rectangle;
|
64
|
+
private var _w:Number;
|
65
|
+
private var _h:Number;
|
66
|
+
private var _xMin:Number;
|
67
|
+
private var _xMax:Number;
|
68
|
+
private var _yMin:Number
|
69
|
+
private var _yMax:Number;
|
70
|
+
// -- picture segmentation properties
|
71
|
+
private var _hseg:Number;
|
72
|
+
private var _vseg:Number;
|
73
|
+
private var _hsLen:Number;
|
74
|
+
private var _vsLen:Number;
|
75
|
+
private var _tri:Array;
|
76
|
+
private var _aMcs:Array;
|
77
|
+
public function DistortImage()
|
78
|
+
{
|
79
|
+
smooth = true;
|
80
|
+
}
|
81
|
+
/*
|
82
|
+
* @param vseg Number : the vertical precision
|
83
|
+
* @param hseg Number : the horizontal precision
|
84
|
+
* @param offsetRect Rectangle : optional, the real bounds to use.
|
85
|
+
* @throws: An error if target property isn't a BitmapData or a DisplayObject
|
86
|
+
*/
|
87
|
+
public function initialize( vseg: Number, hseg: Number, offsetRect: Rectangle = null ) : void
|
88
|
+
{
|
89
|
+
if( target is BitmapData )
|
90
|
+
{
|
91
|
+
texture = target as BitmapData;
|
92
|
+
_w = texture.width;
|
93
|
+
_h = texture.height;
|
94
|
+
}
|
95
|
+
else if( target is DisplayObject )
|
96
|
+
{
|
97
|
+
renderVector( offsetRect );
|
98
|
+
}
|
99
|
+
else
|
100
|
+
{
|
101
|
+
throw new Error('target must be flash.display.BitmapData or flash.display.DisplayObject');
|
102
|
+
}
|
103
|
+
_vseg = vseg || 0;
|
104
|
+
_hseg = hseg || 0;
|
105
|
+
// --
|
106
|
+
_aMcs = new Array();
|
107
|
+
points = new Array();
|
108
|
+
_tri = new Array();
|
109
|
+
// --
|
110
|
+
__init();
|
111
|
+
}
|
112
|
+
public function render() : void
|
113
|
+
{
|
114
|
+
__render();
|
115
|
+
}
|
116
|
+
/**
|
117
|
+
* setTransform
|
118
|
+
*
|
119
|
+
* @param x0 Number the horizontal coordinate of the first point
|
120
|
+
* @param y0 Number the vertical coordinate of the first point
|
121
|
+
* @param x1 Number the horizontal coordinate of the second point
|
122
|
+
* @param y1 Number the vertical coordinate of the second point
|
123
|
+
* @param x2 Number the horizontal coordinate of the third point
|
124
|
+
* @param y2 Number the vertical coordinate of the third point
|
125
|
+
* @param x3 Number the horizontal coordinate of the fourth point
|
126
|
+
* @param y3 Number the vertical coordinate of the fourth point
|
127
|
+
*
|
128
|
+
* @description : Distort the bitmap to adjust it to those points.
|
129
|
+
*/
|
130
|
+
public function setTransform( x0:Number , y0:Number ,
|
131
|
+
x1:Number , y1:Number ,
|
132
|
+
x2:Number , y2:Number ,
|
133
|
+
x3:Number , y3:Number ): void
|
134
|
+
{
|
135
|
+
var w:Number = _w;
|
136
|
+
var h:Number = _h;
|
137
|
+
var dx30:Number = x3 - x0;
|
138
|
+
var dy30:Number = y3 - y0;
|
139
|
+
var dx21:Number = x2 - x1;
|
140
|
+
var dy21:Number = y2 - y1;
|
141
|
+
var l:int = points.length;
|
142
|
+
while( --l > -1 )
|
143
|
+
{
|
144
|
+
var point:SandyPoint = points[ l ];
|
145
|
+
var gx:Number = ( point.x - _xMin ) / w;
|
146
|
+
var gy:Number = ( point.y - _yMin ) / h;
|
147
|
+
var bx:Number = x0 + gy * ( dx30 );
|
148
|
+
var by:Number = y0 + gy * ( dy30 );
|
149
|
+
point.sx = bx + gx * ( ( x1 + gy * ( dx21 ) ) - bx );
|
150
|
+
point.sy = by + gx * ( ( y1 + gy * ( dy21 ) ) - by );
|
151
|
+
}
|
152
|
+
__render();
|
153
|
+
}
|
154
|
+
/////////////////////////
|
155
|
+
/// PRIVATE METHODS ///
|
156
|
+
/////////////////////////
|
157
|
+
private function renderVector( offsetRect: Rectangle = null ) : void
|
158
|
+
{
|
159
|
+
var vector : DisplayObject = target as DisplayObject;
|
160
|
+
if( offsetRect != null )
|
161
|
+
{
|
162
|
+
texture = new BitmapData( offsetRect.width , offsetRect.height, true, 0x00000000 );
|
163
|
+
}
|
164
|
+
else
|
165
|
+
{
|
166
|
+
texture = new BitmapData( vector.width , vector.height, true, 0x00000000 );
|
167
|
+
offsetRect = new Rectangle( 0, 0, texture.width, texture.height );
|
168
|
+
}
|
169
|
+
var m : Matrix = new Matrix();
|
170
|
+
m.translate( offsetRect.x * -1, offsetRect.y * -1 );
|
171
|
+
texture.draw( vector, m );
|
172
|
+
container.transform.matrix.translate( vector.transform.matrix.tx, vector.transform.matrix.ty );
|
173
|
+
_w = offsetRect.width;
|
174
|
+
_h = offsetRect.height;
|
175
|
+
}
|
176
|
+
private function __init(): void
|
177
|
+
{
|
178
|
+
points = new Array();
|
179
|
+
_tri = new Array();
|
180
|
+
var ix:int, iy:int;
|
181
|
+
var w2: Number = _w / 2;
|
182
|
+
var h2: Number = _h / 2;
|
183
|
+
_xMin = _yMin = 0;
|
184
|
+
_xMax = _w; _yMax = _h;
|
185
|
+
_hsLen = _w / ( _hseg + 1 );
|
186
|
+
_vsLen = _h / ( _vseg + 1 );
|
187
|
+
var x:Number, y:Number;
|
188
|
+
var p0:SandyPoint, p1:SandyPoint, p2:SandyPoint;
|
189
|
+
// -- we create the points
|
190
|
+
for ( ix = 0 ; ix < _hseg + 2 ; ix++ )
|
191
|
+
{
|
192
|
+
for ( iy = 0 ; iy < _vseg + 2 ; iy++ )
|
193
|
+
{
|
194
|
+
x = ix * _hsLen;
|
195
|
+
y = iy * _vsLen;
|
196
|
+
points.push( new SandyPoint( x, y, x, y ) );
|
197
|
+
}
|
198
|
+
}
|
199
|
+
// -- we create the triangles
|
200
|
+
for ( ix = 0 ; ix < _vseg + 1 ; ix++ )
|
201
|
+
{
|
202
|
+
for ( iy = 0 ; iy < _hseg + 1 ; iy++ )
|
203
|
+
{
|
204
|
+
p0 = points[ iy + ix * ( _hseg + 2 ) ];
|
205
|
+
p1 = points[ iy + ix * ( _hseg + 2 ) + 1 ];
|
206
|
+
p2 = points[ iy + ( ix + 1 ) * ( _hseg + 2 ) ];
|
207
|
+
__addTriangle( p0, p1, p2 );
|
208
|
+
// --
|
209
|
+
p0 = points[ iy + ( ix + 1 ) * ( _vseg + 2 ) + 1 ];
|
210
|
+
p1 = points[ iy + ( ix + 1 ) * ( _vseg + 2 ) ];
|
211
|
+
p2 = points[ iy + ix * ( _vseg + 2 ) + 1 ];
|
212
|
+
__addTriangle( p0, p1, p2 );
|
213
|
+
}
|
214
|
+
}
|
215
|
+
}
|
216
|
+
private function __addTriangle( p0:SandyPoint, p1:SandyPoint, p2:SandyPoint ):void
|
217
|
+
{
|
218
|
+
var u0:Number, v0:Number, u1:Number, v1:Number, u2:Number, v2:Number;
|
219
|
+
var tMat:Matrix = new Matrix();
|
220
|
+
// --
|
221
|
+
u0 = p0.x; v0 = p0.y;
|
222
|
+
u1 = p1.x; v1 = p1.y;
|
223
|
+
u2 = p2.x; v2 = p2.y;
|
224
|
+
tMat.tx = -v0*(_w / (v1 - v0));
|
225
|
+
tMat.ty = -u0*(_h / (u2 - u0));
|
226
|
+
tMat.a = tMat.d = 0;
|
227
|
+
tMat.b = _h / (u2 - u0);
|
228
|
+
tMat.c = _w / (v1 - v0);
|
229
|
+
// --
|
230
|
+
_tri.push( new Triangle( p0, p1, p2, tMat ) );
|
231
|
+
}
|
232
|
+
private function __render(): void
|
233
|
+
{
|
234
|
+
var vertices: Array;
|
235
|
+
var p0:SandyPoint, p1:SandyPoint, p2:SandyPoint;
|
236
|
+
var x0:Number, y0:Number;
|
237
|
+
var ih:Number = 1/_h, iw:Number = 1/_w;
|
238
|
+
var c:Object = container; c.graphics.clear();
|
239
|
+
var a:Triangle;
|
240
|
+
var sM:Matrix = new Matrix();
|
241
|
+
var tM:Matrix = new Matrix();
|
242
|
+
//--
|
243
|
+
var l:int = _tri.length;
|
244
|
+
while( --l > -1 )
|
245
|
+
{
|
246
|
+
a = _tri[ l ];
|
247
|
+
p0 = a.p0;
|
248
|
+
p1 = a.p1;
|
249
|
+
p2 = a.p2;
|
250
|
+
tM = a.tMat;
|
251
|
+
// --
|
252
|
+
sM.a = ( p1.sx - ( x0 = p0.sx ) ) * iw;
|
253
|
+
sM.b = ( p1.sy - ( y0 = p0.sy ) ) * iw;
|
254
|
+
sM.c = ( p2.sx - x0 ) * ih;
|
255
|
+
sM.d = ( p2.sy - y0 ) * ih;
|
256
|
+
sM.tx = x0;
|
257
|
+
sM.ty = y0;
|
258
|
+
// --
|
259
|
+
sM = __concat( sM, tM );
|
260
|
+
c.graphics.beginBitmapFill( texture, sM, false, smooth );
|
261
|
+
c.graphics.moveTo( x0, y0 );
|
262
|
+
c.graphics.lineTo( p1.sx, p1.sy );
|
263
|
+
c.graphics.lineTo( p2.sx, p2.sy );
|
264
|
+
c.graphics.endFill();
|
265
|
+
}
|
266
|
+
}
|
267
|
+
private function __concat( m1:Matrix, m2:Matrix ):Matrix
|
268
|
+
{
|
269
|
+
//Relies on the original triangles being right angled with p0 being the right angle.
|
270
|
+
//Therefore a = d = zero (before and after invert)
|
271
|
+
var mat : Matrix = new Matrix();
|
272
|
+
mat.a = m1.c * m2.b;
|
273
|
+
mat.b = m1.d * m2.b;
|
274
|
+
mat.c = m1.a * m2.c;
|
275
|
+
mat.d = m1.b * m2.c;
|
276
|
+
mat.tx = m1.a * m2.tx + m1.c * m2.ty + m1.tx;
|
277
|
+
mat.ty = m1.b * m2.tx + m1.d * m2.ty + m1.ty;
|
278
|
+
return mat;
|
279
|
+
}
|
280
|
+
}
|
281
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/*
|
2
|
+
# ***** BEGIN LICENSE BLOCK *****
|
3
|
+
Copyright the original author or authors.
|
4
|
+
Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
http://www.mozilla.org/MPL/MPL-1.1.html
|
8
|
+
Unless required by applicable law or agreed to in writing, software
|
9
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
10
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
11
|
+
See the License for the specific language governing permissions and
|
12
|
+
limitations under the License.
|
13
|
+
# ***** END LICENSE BLOCK *****
|
14
|
+
*/
|
15
|
+
package sandy.util
|
16
|
+
{
|
17
|
+
import flash.geom.Point;
|
18
|
+
public class SandyPoint extends Point
|
19
|
+
{
|
20
|
+
public var sx : Number;
|
21
|
+
public var sy : Number;
|
22
|
+
public function SandyPoint( x : Number, y : Number, sx : Number, sy : Number )
|
23
|
+
{
|
24
|
+
super( x, y );
|
25
|
+
this.sx = sx;
|
26
|
+
this.sy = sy;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/*
|
2
|
+
# ***** BEGIN LICENSE BLOCK *****
|
3
|
+
Copyright the original author or authors.
|
4
|
+
Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1 (the "License");
|
5
|
+
you may not use this file except in compliance with the License.
|
6
|
+
You may obtain a copy of the License at
|
7
|
+
http://www.mozilla.org/MPL/MPL-1.1.html
|
8
|
+
Unless required by applicable law or agreed to in writing, software
|
9
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
10
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
11
|
+
See the License for the specific language governing permissions and
|
12
|
+
limitations under the License.
|
13
|
+
# ***** END LICENSE BLOCK *****
|
14
|
+
*/
|
15
|
+
package sandy.util
|
16
|
+
{
|
17
|
+
import flash.geom.Matrix;
|
18
|
+
public class Triangle
|
19
|
+
{
|
20
|
+
public var p0 : SandyPoint;
|
21
|
+
public var p1 : SandyPoint;
|
22
|
+
public var p2 : SandyPoint;
|
23
|
+
public var tMat : Matrix;
|
24
|
+
public function Triangle( p0 : SandyPoint, p1 : SandyPoint, p2 : SandyPoint, tMat : Matrix )
|
25
|
+
{
|
26
|
+
this.p0 = p0;
|
27
|
+
this.p1 = p1
|
28
|
+
this.p2 = p2;
|
29
|
+
this.tMat = tMat;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
File without changes
|
@@ -0,0 +1,138 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<materia:CreatorBase xmlns:mx="http://www.adobe.com/2006/mxml"
|
3
|
+
xmlns:materia="materia.*"
|
4
|
+
xmlns:questionAnswerDataGrid="materia.components.questionAnswerDataGrid.*"
|
5
|
+
xmlns:ns1="assets.*"
|
6
|
+
xmlns:components="components.*"
|
7
|
+
width="100%" height="100%"
|
8
|
+
backgroundColor="#3B3E40"
|
9
|
+
horizontalScrollPolicy="off"
|
10
|
+
verticalScrollPolicy="off" >
|
11
|
+
|
12
|
+
<mx:Script>
|
13
|
+
<![CDATA[
|
14
|
+
import materia.questionStorage.*;
|
15
|
+
|
16
|
+
//--------------------------------------------------------------------------
|
17
|
+
//
|
18
|
+
// Variables
|
19
|
+
//
|
20
|
+
//--------------------------------------------------------------------------
|
21
|
+
|
22
|
+
// declare variables here
|
23
|
+
|
24
|
+
//--------------------------------------------------------------------------
|
25
|
+
//
|
26
|
+
// Overridden methods
|
27
|
+
//
|
28
|
+
//--------------------------------------------------------------------------
|
29
|
+
|
30
|
+
/**
|
31
|
+
* Called when creating a new game (not called when editing)
|
32
|
+
*/
|
33
|
+
public override function initNewWidget():void
|
34
|
+
{
|
35
|
+
super.initNewWidget();
|
36
|
+
customizeDatagrid();
|
37
|
+
}
|
38
|
+
|
39
|
+
/**
|
40
|
+
* Called after init() when game is edited (loaded with a qset)
|
41
|
+
*/
|
42
|
+
public override function initExistingWidget(qsetObject:QuestionGroup):void
|
43
|
+
{
|
44
|
+
super.initExistingWidget(qsetObject);
|
45
|
+
customizeDatagrid();
|
46
|
+
|
47
|
+
// load data from the qset into the creator
|
48
|
+
if (qsetObject.kids.length)
|
49
|
+
{
|
50
|
+
for (var i:int = 0; i < qsetObject.kids[0].kids.length; i++)
|
51
|
+
{
|
52
|
+
questionInputList.addQuestion(qsetObject.kids[0].kids[i], false);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
titleField.text = qsetObject.name;
|
56
|
+
}
|
57
|
+
|
58
|
+
/**
|
59
|
+
* Customize the datagrid to taylor to the given widget
|
60
|
+
*/
|
61
|
+
public function customizeDatagrid():void
|
62
|
+
{
|
63
|
+
// questionInputList.rowHeight = 60;
|
64
|
+
}
|
65
|
+
|
66
|
+
/**
|
67
|
+
* Called when the game is saved with intention to publish.
|
68
|
+
*/
|
69
|
+
public override function getQSetForPublish():Object
|
70
|
+
{
|
71
|
+
return getQSetForSave();
|
72
|
+
}
|
73
|
+
|
74
|
+
/**
|
75
|
+
* Called when the game is saved.
|
76
|
+
*/
|
77
|
+
public override function getQSetForSave():Object
|
78
|
+
{
|
79
|
+
var qSet:QuestionSet = new QuestionSet(titleField.text)
|
80
|
+
var qGroup:QuestionGroup = questionInputList.generateQGroup(titleField.text);
|
81
|
+
qGroup.name = titleField.text;
|
82
|
+
qSet.addGroup(qGroup as QuestionGroup);
|
83
|
+
return qSet;
|
84
|
+
}
|
85
|
+
|
86
|
+
/**
|
87
|
+
* Called once for each question that was selected to be imported.
|
88
|
+
*/
|
89
|
+
public override function addImportedQuestion(question:Question):Question
|
90
|
+
{
|
91
|
+
// TODO: build a tool that will automatically determine if questions will keep their QID
|
92
|
+
questionInputList.addQuestion(question);
|
93
|
+
return null;
|
94
|
+
}
|
95
|
+
|
96
|
+
//--------------------------------------------------------------------------
|
97
|
+
//
|
98
|
+
// Methods
|
99
|
+
//
|
100
|
+
//--------------------------------------------------------------------------
|
101
|
+
|
102
|
+
/**
|
103
|
+
* Check to make sure we have valid info everywhere
|
104
|
+
*
|
105
|
+
* <p>Will display an Alert with the errors found</p>
|
106
|
+
*
|
107
|
+
* @return A value of <code>true</code> means there was an error;
|
108
|
+
* A value of <code>false</code> means there is no error.
|
109
|
+
*/
|
110
|
+
private function checkForErrors():Boolean
|
111
|
+
{
|
112
|
+
return false;
|
113
|
+
}
|
114
|
+
]]>
|
115
|
+
</mx:Script>
|
116
|
+
|
117
|
+
<mx:VBox top="10" bottom="10" left="10" right="10">
|
118
|
+
<mx:HBox width="100%" height="40" verticalAlign="middle" paddingRight="5" paddingLeft="5">
|
119
|
+
<mx:Label text="Widget's Title: " styleName="sectionLabel"/>
|
120
|
+
<mx:TextInput id="titleField" height="100%" width="100%" styleName="titleField"/>
|
121
|
+
</mx:HBox>
|
122
|
+
<mx:HRule width="100%" />
|
123
|
+
<mx:Canvas width="100%" height="100%" styleName="creatorSectionMajor">
|
124
|
+
<mx:VBox styleName="creatorSectionMinor" top="10" bottom="10" left="10" right="10" paddingTop="10" paddingBottom="10" paddingRight="10" paddingLeft="10">
|
125
|
+
<mx:HBox width="100%" verticalAlign="middle">
|
126
|
+
<mx:Label text="[Name of Widget Goes Here]" styleName="sectionLabel"/>
|
127
|
+
</mx:HBox>
|
128
|
+
<questionAnswerDataGrid:QuestionAnswerDataGrid id = "questionInputList"
|
129
|
+
width="100%" height="100%"
|
130
|
+
questionType="MC"
|
131
|
+
answerHeaderLabel="Answer"
|
132
|
+
questionHeaderLabel="Question"
|
133
|
+
/>
|
134
|
+
</mx:VBox>
|
135
|
+
</mx:Canvas>
|
136
|
+
</mx:VBox>
|
137
|
+
|
138
|
+
</materia:CreatorBase>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,63 @@
|
|
1
|
+
HRule {
|
2
|
+
stroke-color: #9198B3;
|
3
|
+
shadow-color: #9198B3;
|
4
|
+
stroke-width: 1;
|
5
|
+
}
|
6
|
+
|
7
|
+
.sectionLabel {
|
8
|
+
font-family: "Futura ICG Demi";
|
9
|
+
font-size: 18;
|
10
|
+
color: #f0f0f0;
|
11
|
+
font-weight: normal;
|
12
|
+
}
|
13
|
+
|
14
|
+
.crosswordLabel {
|
15
|
+
font-family: "Futura ICG Demi";
|
16
|
+
font-size: 17;
|
17
|
+
color: #f0f0f0;
|
18
|
+
font-weight: normal;
|
19
|
+
}
|
20
|
+
|
21
|
+
.titleField {
|
22
|
+
font-size: 21;
|
23
|
+
font-weight: normal;
|
24
|
+
}
|
25
|
+
|
26
|
+
.creatorSectionMajor {
|
27
|
+
background-color: #2C4B5F;
|
28
|
+
border-color: #2C4B5F;
|
29
|
+
border-style: solid;
|
30
|
+
corner-radius: 4;
|
31
|
+
border-thickness: 1;
|
32
|
+
padding-left: 10;
|
33
|
+
padding-right: 10;
|
34
|
+
padding-bottom: 10;
|
35
|
+
padding-top: 10;
|
36
|
+
}
|
37
|
+
|
38
|
+
.creatorSectionMinor {
|
39
|
+
background-color: #233C4D;
|
40
|
+
border-color: #233C4D;
|
41
|
+
border-style: solid;
|
42
|
+
corner-radius: 4;
|
43
|
+
padding-left: 10;
|
44
|
+
padding-right: 10;
|
45
|
+
padding-bottom: 10;
|
46
|
+
}
|
47
|
+
.subLabel
|
48
|
+
{
|
49
|
+
fontFamily: "Arial Rounded MT Bold";
|
50
|
+
color: #FFFFFF;
|
51
|
+
fontSize: 14;
|
52
|
+
}
|
53
|
+
|
54
|
+
.numStepper
|
55
|
+
{
|
56
|
+
fontFamily: "Arial Rounded MT Bold";
|
57
|
+
color: #000000;
|
58
|
+
fontSize: 12;
|
59
|
+
}
|
60
|
+
LinkButton.timelineWindowLinkButton
|
61
|
+
{
|
62
|
+
color: #1A5F70;
|
63
|
+
}
|