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,133 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<mx:ToolBar fontFamily="Arial" fontSize="11" xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" horizontalGap="2" verticalGap="2" borderThickness="20">
|
3
|
+
|
4
|
+
<mx:Script>
|
5
|
+
<![CDATA[
|
6
|
+
[Bindable] public var showFont:Boolean = true;
|
7
|
+
[Bindable] public var showFontSize:Boolean = true;
|
8
|
+
[Bindable] public var showFormatting:Boolean = true;
|
9
|
+
[Bindable] public var showColor:Boolean = true;
|
10
|
+
[Bindable] public var showAlign:Boolean = true;
|
11
|
+
[Bindable] public var showBullets:Boolean = true;
|
12
|
+
[Bindable] public var showLink:Boolean = true;
|
13
|
+
|
14
|
+
protected var _rte:SmallRichTextEditor;
|
15
|
+
|
16
|
+
public function set rte(rteInstance:SmallRichTextEditor):void
|
17
|
+
{
|
18
|
+
_rte = rteInstance;
|
19
|
+
}
|
20
|
+
|
21
|
+
public function get rte():SmallRichTextEditor
|
22
|
+
{
|
23
|
+
return _rte;
|
24
|
+
}
|
25
|
+
|
26
|
+
public function setEditingElements(font:Boolean = true, fontSize:Boolean = true, formatting:Boolean = true, color:Boolean = true, vrule1:Boolean = true, align:Boolean = true, vrule2:Boolean = true, bullets:Boolean = true, vrule3:Boolean = true, tooltip:Boolean = true, pageLink:Boolean = true, extLink:Boolean = true):void
|
27
|
+
{
|
28
|
+
if(!font) removeChild(fontFamilyCombo);
|
29
|
+
if(!fontSize) removeChild(fontSizeCombo);
|
30
|
+
if(!formatting) removeChild(toolBar2);
|
31
|
+
if(!color) removeChild(colorPicker);
|
32
|
+
if(!align) removeChild(alignButtons);
|
33
|
+
if(!bullets) removeChild(bulletButton);
|
34
|
+
|
35
|
+
if(!vrule1) removeChild(vRule1);
|
36
|
+
if(!vrule2) removeChild(vRule2);
|
37
|
+
|
38
|
+
}
|
39
|
+
]]>
|
40
|
+
</mx:Script>
|
41
|
+
|
42
|
+
<mx:Array id="fontFamilyArray">
|
43
|
+
<mx:String>_sans</mx:String>
|
44
|
+
<mx:String>_serif</mx:String>
|
45
|
+
<mx:String>_typewriter</mx:String>
|
46
|
+
<mx:String>Arial</mx:String>
|
47
|
+
<mx:String>Courier</mx:String>
|
48
|
+
<mx:String>Courier New</mx:String>
|
49
|
+
<mx:String>Geneva</mx:String>
|
50
|
+
<mx:String>Georgia</mx:String>
|
51
|
+
<mx:String>Helvetica</mx:String>
|
52
|
+
<mx:String>Times New Roman</mx:String>
|
53
|
+
<mx:String>Times</mx:String>
|
54
|
+
<mx:String>Verdana</mx:String>
|
55
|
+
</mx:Array>
|
56
|
+
|
57
|
+
<mx:Array id="fontSizeArray">
|
58
|
+
<mx:String>8</mx:String>
|
59
|
+
<mx:String>9</mx:String>
|
60
|
+
<mx:String>10</mx:String>
|
61
|
+
<mx:String>11</mx:String>
|
62
|
+
<mx:String>12</mx:String>
|
63
|
+
<mx:String>14</mx:String>
|
64
|
+
<mx:String>16</mx:String>
|
65
|
+
<mx:String>18</mx:String>
|
66
|
+
<mx:String>20</mx:String>
|
67
|
+
<mx:String>22</mx:String>
|
68
|
+
<mx:String>24</mx:String>
|
69
|
+
<mx:String>26</mx:String>
|
70
|
+
<mx:String>28</mx:String>
|
71
|
+
<mx:String>36</mx:String>
|
72
|
+
<mx:String>48</mx:String>
|
73
|
+
<mx:String>72</mx:String>
|
74
|
+
</mx:Array>
|
75
|
+
|
76
|
+
<mx:ComboBox visible="{showFont}" id="fontFamilyCombo" cornerRadius="0" editable="true"
|
77
|
+
creationComplete="_rte.getTextStyles();_rte.lastCaretIndex = -1;"
|
78
|
+
dataProvider = "{fontFamilyArray}"
|
79
|
+
close="_rte.setTextStyles('font');"
|
80
|
+
enter="_rte.setTextStyles('font');"/>
|
81
|
+
|
82
|
+
<mx:ComboBox visible="{showFontSize}" id="fontSizeCombo" cornerRadius="0" editable="true"
|
83
|
+
paddingLeft="2" paddingRight="2"
|
84
|
+
dataProvider = "{fontSizeArray}"
|
85
|
+
close="_rte.setTextStyles('size');"
|
86
|
+
enter="_rte.setTextStyles('size');"/>
|
87
|
+
|
88
|
+
<mx:HBox id="toolBar2" horizontalGap="2">
|
89
|
+
|
90
|
+
<mx:Button id="boldButton" width="20" toggle="true" icon="@Embed(source='/assets/materia/images/bold.png')" cornerRadius="0"
|
91
|
+
|
92
|
+
click="_rte.setTextStyles('bold', event.currentTarget.selected);" />
|
93
|
+
|
94
|
+
<mx:Button id="italicButton" width="20" toggle="true" icon="@Embed(source='/assets/materia/images/italic.png')" cornerRadius="0"
|
95
|
+
|
96
|
+
click="_rte.setTextStyles('italic', event.currentTarget.selected);" />
|
97
|
+
|
98
|
+
<mx:Button id="underlineButton" width="20" toggle="true" icon="@Embed(source='/assets/materia/images/underline.png')" cornerRadius="0"
|
99
|
+
|
100
|
+
click="_rte.setTextStyles('underline', event.currentTarget.selected);" />
|
101
|
+
</mx:HBox>
|
102
|
+
|
103
|
+
<mx:ColorPicker id="colorPicker" width="22" height="22"
|
104
|
+
close="_rte.setTextStyles('color');"/>
|
105
|
+
|
106
|
+
<mx:VRule id="vRule1" height="{alignButtons.height}"/>
|
107
|
+
|
108
|
+
<mx:ToggleButtonBar id="alignButtons" buttonWidth="20" styleName="alignStyle"
|
109
|
+
itemClick="_rte.setTextStyles('align', ToggleButtonBar(event.currentTarget).dataProvider.getItemAt(ToggleButtonBar(event.currentTarget).selectedIndex).action);" >
|
110
|
+
<mx:dataProvider>
|
111
|
+
<mx:Array>
|
112
|
+
<mx:Object icon="@Embed(source='/assets/materia/images/left.png')" action="left"/>
|
113
|
+
<mx:Object icon="@Embed(source='/assets/materia/images/center.png')" action="center"/>
|
114
|
+
<mx:Object icon="@Embed(source='/assets/materia/images/right.png')" action="right"/>
|
115
|
+
<mx:Object icon="@Embed(source='/assets/materia/images/justify.png')" action="justify"/>
|
116
|
+
</mx:Array>
|
117
|
+
</mx:dataProvider>
|
118
|
+
</mx:ToggleButtonBar>
|
119
|
+
|
120
|
+
<mx:VRule id="vRule2" height="{alignButtons.height}"/>
|
121
|
+
|
122
|
+
<mx:Button id="bulletButton" width="20" toggle="true" icon="@Embed(source='/assets/materia/images/bullets.png')" cornerRadius="0"
|
123
|
+
|
124
|
+
click="_rte.setTextStyles('bullet', event.currentTarget.selected);" />
|
125
|
+
<!--<mx:VRule id="vRule4" height="{alignButtons.height}"/>
|
126
|
+
|
127
|
+
<mx:TextInput id="linkTextInput" width="140"
|
128
|
+
focusOut="if (linkTextCommitted)
|
129
|
+
{ trace('already committed'); linkTextCommitted = false; }
|
130
|
+
else
|
131
|
+
{ trace('not committed'); setTextStyles('url', linkTextInput.text); linkTextInput.text=defaultLinkProtocol;}"
|
132
|
+
enter="setTextStyles('url', linkTextInput.text); linkTextInput.text = defaultLinkProtocol; linkTextCommitted = true;"/>-->
|
133
|
+
</mx:ToolBar>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
__DefaultWidget__ : A Materia Widget
|
2
|
+
==================
|
3
|
+
|
4
|
+
This package contains a Materia Widget
|
5
|
+
|
6
|
+
Installation
|
7
|
+
============
|
8
|
+
Visit the [Materia Widget Development Documentation](http://ucfcdl.github.io/Materia) for up to date details about installing widgets.
|
9
|
+
|
10
|
+
Author
|
11
|
+
======
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>__DefaultWidget__ Creator</title>
|
5
|
+
<meta charset="utf-8" />
|
6
|
+
<style type="text/css"></style>
|
7
|
+
<script type="text/javascript" src="/js/materia.require.js"></script>
|
8
|
+
<link rel="stylesheet" type="text/css" href="css/creator.css">
|
9
|
+
<script type="text/javascript">
|
10
|
+
require(['creatorcore', 'cs!js/creator'], function(util) {
|
11
|
+
Materia.CreatorCore.start(__DefaultWidgetCondensed__.Creator);
|
12
|
+
});
|
13
|
+
</script>
|
14
|
+
</head>
|
15
|
+
<body>
|
16
|
+
|
17
|
+
<div>__DefaultWidget__ Title: <input type="text" id="mytitle" /></div>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/*@font-face {
|
2
|
+
font-family: 'CorbelBold';
|
3
|
+
src: url('../font/corbelb-webfont.eot');
|
4
|
+
src: url('../font/corbelb-webfont.eot?#iefix') format('embedded-opentype'),
|
5
|
+
url('../font/corbelb-webfont.woff') format('woff'),
|
6
|
+
url('../font/corbelb-webfont.ttf') format('truetype'),
|
7
|
+
url('../font/corbelb-webfont.svg#CorbelBold') format('svg');
|
8
|
+
font-weight: normal;
|
9
|
+
font-style: normal;
|
10
|
+
}*/
|
11
|
+
|
12
|
+
html, body {
|
13
|
+
color:white;
|
14
|
+
background-color: #2f3944;
|
15
|
+
padding: 10px;
|
16
|
+
margin: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
#json {
|
20
|
+
width:100%;
|
21
|
+
height:400px;
|
22
|
+
}
|
23
|
+
|
24
|
+
.button {
|
25
|
+
display:inline-block;
|
26
|
+
background:green;
|
27
|
+
padding:10px;
|
28
|
+
border-radius: 10px;
|
29
|
+
}
|
@@ -0,0 +1,122 @@
|
|
1
|
+
Namespace('__DefaultWidgetCondensed__').Creator = do ->
|
2
|
+
_widget = null # holds widget data
|
3
|
+
_qset = null # Keep tack of the current qset
|
4
|
+
_title = null # hold on to this instance's title
|
5
|
+
_version = null # holds the qset version, allows you to change your widget to support old versions of your own code
|
6
|
+
|
7
|
+
# ============================ REQUIRED ===============================
|
8
|
+
#
|
9
|
+
# These methods are required as they are called directly by materia
|
10
|
+
#
|
11
|
+
# =====================================================================
|
12
|
+
|
13
|
+
# Called by Materia.CreatorCore when your creator is starting a brand new widget
|
14
|
+
# @param widget:Object widget type object
|
15
|
+
# @param baseUrl:String url that this copy of materia is hosted at
|
16
|
+
initNewWidget = (widget, baseUrl) ->
|
17
|
+
_buildDisplay 'Default Title', widget, options:{randomize:false}
|
18
|
+
|
19
|
+
# Called by Materia.CreatorCore when your creator is editing an existing widget
|
20
|
+
# @param title:String Title of the widget
|
21
|
+
# @param widget:Object widget type object
|
22
|
+
# @param qset:Object the custom question and data structure
|
23
|
+
# @param version:String version of the widget the qset conforms to
|
24
|
+
# @param baseUrl:String url that this copy of materia is hosted at
|
25
|
+
initExistingWidget = (title, widget, qset, version, baseUrl) ->
|
26
|
+
_trace 'editing existing'
|
27
|
+
_buildDisplay title, widget, qset, version
|
28
|
+
|
29
|
+
# Called by Materia.CreatorCore when a user clicks on the save, preview, or publish button
|
30
|
+
# Expects you to respond by calling one of two methods:
|
31
|
+
# Materia.CreatorCore.save(title, qset)
|
32
|
+
# or
|
33
|
+
# Materia.CreatorCore.cancelSave('Question 3 is incomplete') - send nothing if you don't want materia to pop an alert box for you
|
34
|
+
# @param mode:String 'save', 'publish', or 'preview' depending on what button was pressed
|
35
|
+
onSaveClicked = (mode = 'save') ->
|
36
|
+
if _buildSaveData()
|
37
|
+
Materia.CreatorCore.save _title, _qset
|
38
|
+
else
|
39
|
+
Materia.CreatorCore.cancelSave 'Widget not ready to save.'
|
40
|
+
|
41
|
+
# Called by Materia.CreatorCore any time the widget saves correctly
|
42
|
+
# @param title:String Title of the widget
|
43
|
+
# @param widget:Object widget type object
|
44
|
+
# @param qset:Object the custom question and data structure
|
45
|
+
# @param version:String version of the widget the qset conforms to
|
46
|
+
onSaveComplete = (title, widget, qset, version) ->
|
47
|
+
_trace 'save complete!', title, widget, qset, version
|
48
|
+
|
49
|
+
# ============================ OPTIONAL REQUIRED ============================
|
50
|
+
#
|
51
|
+
# These methods are only needed if you suport importing of questions or media
|
52
|
+
#
|
53
|
+
# ===========================================================================
|
54
|
+
|
55
|
+
# called by CreatorCore when the user has selected questions
|
56
|
+
# @param questions:Array array of question objects
|
57
|
+
onQuestionImportComplete = (questions) ->
|
58
|
+
_trace 'questions are here!', questions
|
59
|
+
|
60
|
+
# called by CreatorCore when the user has selected media
|
61
|
+
# @param media:Array array of media objects
|
62
|
+
onMediaImportComplete = (media) ->
|
63
|
+
_trace 'the media is here', media
|
64
|
+
# Get the url to one of the media
|
65
|
+
url = Materia.CreatorCore.getMediaUrl(media[0].id)
|
66
|
+
# Put the image on the screen
|
67
|
+
$('#images').remove()
|
68
|
+
$('body').append '<div id="images"></div>'
|
69
|
+
$('#images').append '<img src="'+url+'"/>'
|
70
|
+
|
71
|
+
# ============================ WIDGET SPECIFIC ===============================
|
72
|
+
#
|
73
|
+
# These methods are used just within this widget to execute code specific to
|
74
|
+
# this one widget
|
75
|
+
#
|
76
|
+
# ============================================================================
|
77
|
+
|
78
|
+
# @param title:String Title of the widget
|
79
|
+
# @param widget:Object widget type object
|
80
|
+
# @param qset:Object the custom question and data structure
|
81
|
+
# @param version:String version of the widget the qset conforms to
|
82
|
+
_buildDisplay = (title = 'Default __DefaultWidgetCondensed__ Title', widget, qset, version) ->
|
83
|
+
_version = version
|
84
|
+
_qset = qset
|
85
|
+
_widget = widget
|
86
|
+
_title = title
|
87
|
+
|
88
|
+
if _qset.options.randomize
|
89
|
+
$('#randomOn').prop 'checked', true
|
90
|
+
else
|
91
|
+
$('#randomOff').prop 'checked', true
|
92
|
+
|
93
|
+
$('#mytitle').val _title
|
94
|
+
$('#json').val JSON.stringify(_qset)
|
95
|
+
$('#importMedia').click -> Materia.CreatorCore.showMediaImporter()
|
96
|
+
_trace 'OK, I finished setting up my creator'
|
97
|
+
|
98
|
+
# Our own internal function that checks to see if we can save
|
99
|
+
# and updates our qset object for saving
|
100
|
+
_buildSaveData = ->
|
101
|
+
_trace 'building save data'
|
102
|
+
okToSave = false
|
103
|
+
# update our values
|
104
|
+
_trace $('#mytitle').val()
|
105
|
+
_title = $('#mytitle').val()
|
106
|
+
okToSave = true if _title? && _title!= ''
|
107
|
+
_qset = JSON.parse $('#json').val()
|
108
|
+
_qset.options.randomize = $('#randomOn').prop 'checked'
|
109
|
+
|
110
|
+
okToSave
|
111
|
+
|
112
|
+
_trace = ->
|
113
|
+
if console? && console.log?
|
114
|
+
console.log.apply console, arguments
|
115
|
+
|
116
|
+
#public
|
117
|
+
initNewWidget: initNewWidget
|
118
|
+
initExistingWidget: initExistingWidget
|
119
|
+
onSaveClicked:onSaveClicked
|
120
|
+
onMediaImportComplete:onMediaImportComplete
|
121
|
+
onQuestionImportComplete:onQuestionImportComplete
|
122
|
+
onSaveComplete:onSaveComplete
|
File without changes
|
@@ -0,0 +1,18 @@
|
|
1
|
+
// @font-face {
|
2
|
+
// font-family: 'CorbelBold';
|
3
|
+
// src: url('../font/corbelb-webfont.eot');
|
4
|
+
// src: url('../font/corbelb-webfont.eot?#iefix') format('embedded-opentype'),
|
5
|
+
// url('../font/corbelb-webfont.woff') format('woff'),
|
6
|
+
// url('../font/corbelb-webfont.ttf') format('truetype'),
|
7
|
+
// url('../font/corbelb-webfont.svg#CorbelBold') format('svg');
|
8
|
+
// font-weight: normal;
|
9
|
+
// font-style: normal;
|
10
|
+
// }
|
11
|
+
|
12
|
+
html, body
|
13
|
+
{
|
14
|
+
color:white;
|
15
|
+
background-color: #2f3944;
|
16
|
+
padding: 0;
|
17
|
+
margin: 0;
|
18
|
+
}
|
@@ -0,0 +1,143 @@
|
|
1
|
+
Namespace('__DefaultWidgetCondensed__').Engine = do ->
|
2
|
+
_qset = null
|
3
|
+
_currentCat = null
|
4
|
+
_currentQuestion = null
|
5
|
+
_$currentQuestionSquare = null
|
6
|
+
_currentQuestionIndex = null
|
7
|
+
_$board = null
|
8
|
+
_categories = {}
|
9
|
+
_questions = {}
|
10
|
+
_scores = []
|
11
|
+
_totalQuestions = 0
|
12
|
+
_finalScore = 0
|
13
|
+
|
14
|
+
# Called by Materia.Engine when your widget Engine should start the user experience
|
15
|
+
start = (instance, qset, version = '1') ->
|
16
|
+
# Go get qset data
|
17
|
+
_qset = qset
|
18
|
+
_drawBoard(instance.name)
|
19
|
+
|
20
|
+
|
21
|
+
# shuffle any array
|
22
|
+
_shuffle = (a) ->
|
23
|
+
for i in [a.length-1..1]
|
24
|
+
j = Math.floor Math.random() * (i + 1)
|
25
|
+
[a[i], a[j]] = [a[j], a[i]]
|
26
|
+
a
|
27
|
+
|
28
|
+
# Draw the main board
|
29
|
+
_drawBoard = (title) ->
|
30
|
+
tBoard = _.template $('#t-board').html()
|
31
|
+
_$board = $(tBoard title: title, categories:_qset.items )
|
32
|
+
# make an array of each category, questions, and count the questions
|
33
|
+
for ci, category of _qset.items
|
34
|
+
_categories[ci] = category
|
35
|
+
for qi, question of category.items
|
36
|
+
question.answers = _shuffle(question.answers) if _qset.options.randomize
|
37
|
+
_totalQuestions++
|
38
|
+
_questions[question.id] = question
|
39
|
+
|
40
|
+
_$board.find('.question').on 'click', _onBoardQuestionClick
|
41
|
+
$('body').append _$board
|
42
|
+
|
43
|
+
# When a Question on the main board is clicked
|
44
|
+
_onBoardQuestionClick = (e) ->
|
45
|
+
# set the current state
|
46
|
+
_$currentQuestionSquare = $(e.target)
|
47
|
+
_currentCat = _categories[_$currentQuestionSquare.parent('.category').data('id')]
|
48
|
+
_currentQuestion = _questions[_$currentQuestionSquare.data('id')]
|
49
|
+
_currentQuestionIndex = parseInt _$currentQuestionSquare.html(), 10
|
50
|
+
|
51
|
+
# Draw the Question Page
|
52
|
+
tQuestion = _.template $('#t-question-page').html()
|
53
|
+
$question = $ tQuestion
|
54
|
+
index: _currentQuestionIndex
|
55
|
+
id: _currentQuestion.id
|
56
|
+
answers: _currentQuestion.answers
|
57
|
+
category: _currentCat.name
|
58
|
+
question: _currentQuestion.questions[0].text
|
59
|
+
|
60
|
+
# setup the button listeners
|
61
|
+
$question.find('.button.return').on 'click', _closeQuestion
|
62
|
+
$question.find('.button.submit').on 'click', _submitAnswer
|
63
|
+
$question.find('.answers input').on 'click', (e) ->
|
64
|
+
$('.answers li').removeClass 'selected'
|
65
|
+
$(e.target).parent('li').addClass 'selected'
|
66
|
+
$question.find('.button.submit').prop 'disabled', false
|
67
|
+
|
68
|
+
_$board.hide()
|
69
|
+
$('body').append $question
|
70
|
+
|
71
|
+
# Answer submitted by user
|
72
|
+
_submitAnswer = ->
|
73
|
+
$chosenRadio = $(".answers input[type='radio']:checked")
|
74
|
+
chosenAnswer = $chosenRadio.val()
|
75
|
+
answer = _checkAnswer _currentQuestion, chosenAnswer
|
76
|
+
Score.submitQuestionForScoring _currentQuestion.id, answer.text
|
77
|
+
_scores.push answer.score
|
78
|
+
_updateScore()
|
79
|
+
|
80
|
+
# Update the question square
|
81
|
+
newTitle = "#{_currentCat.name} question ##{_currentQuestionIndex} "
|
82
|
+
|
83
|
+
if answer.score == 100
|
84
|
+
$chosenRadio.parents('li').prepend '<span class="correct mark">✔</span>'
|
85
|
+
_$currentQuestionSquare
|
86
|
+
.addClass('correct')
|
87
|
+
.html('✔') # checkmark
|
88
|
+
.attr('title', "#{newTitle} Correct")
|
89
|
+
else
|
90
|
+
$chosenRadio.parents('li').prepend '<span class="wrong mark">X</span>'
|
91
|
+
_$currentQuestionSquare
|
92
|
+
.addClass('wrong')
|
93
|
+
.html('X') # incorrect X
|
94
|
+
.attr('title', "#{newTitle} Wrong")
|
95
|
+
|
96
|
+
# Update the radio list and buttons
|
97
|
+
$(".answers input[type='radio']").prop 'disabled', true
|
98
|
+
$('.button.submit').prop 'disabled', true
|
99
|
+
$('.button.return').addClass 'highlight'
|
100
|
+
$('.answers ul').addClass('answered');
|
101
|
+
$chosenRadio.parents('li').append("<span class=\"feedback\"><strong>Feedback:</strong> #{answer.feedback}</span>") if answer.feedback?
|
102
|
+
_$currentQuestionSquare.removeClass('unanswered').off 'click'
|
103
|
+
|
104
|
+
# Draw the final screen that transitions to the Score Screen
|
105
|
+
_drawFinishScreen = ->
|
106
|
+
tFinish = _.template $('#t-finish-notice').html()
|
107
|
+
$finish = $(tFinish score: _finalScore)
|
108
|
+
$finish.find('button').on 'click', _end
|
109
|
+
_$board.hide();
|
110
|
+
$('body').append $finish
|
111
|
+
|
112
|
+
# Update the score on the main screen
|
113
|
+
_updateScore = ->
|
114
|
+
_finalScore = 0
|
115
|
+
for i in _scores
|
116
|
+
_finalScore += i
|
117
|
+
|
118
|
+
_finalScore = Math.round _finalScore/_totalQuestions
|
119
|
+
$('.score .value').html _finalScore
|
120
|
+
|
121
|
+
# Check the value of the chosen answer
|
122
|
+
_checkAnswer = (question, answerId) ->
|
123
|
+
for answer in question.answers
|
124
|
+
if answer.id == answerId
|
125
|
+
return {
|
126
|
+
score: parseInt(answer.value, 10)
|
127
|
+
text: answer.text
|
128
|
+
feedback: answer.options.feedback
|
129
|
+
}
|
130
|
+
|
131
|
+
throw Error 'Submitted answer not in this questions'
|
132
|
+
|
133
|
+
# Close a Question screen to return to the main board
|
134
|
+
_closeQuestion = ->
|
135
|
+
$('.screen.question').remove()
|
136
|
+
_$board.show()
|
137
|
+
_drawFinishScreen() if _scores.length ==_totalQuestions
|
138
|
+
|
139
|
+
_end = ->
|
140
|
+
Materia.Engine.end()
|
141
|
+
|
142
|
+
#public
|
143
|
+
start: start
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>__DefaultWidget__ Engine</title>
|
5
|
+
<meta charset="utf-8" />
|
6
|
+
<style type="text/css"></style>
|
7
|
+
<script type="text/javascript" src="/js/materia.require.js"></script>
|
8
|
+
<link rel="stylesheet" type="text/css" href="css/widget.css">
|
9
|
+
<script type="text/javascript">
|
10
|
+
require(['enginecore', 'score', 'underscore', 'js/widget'], function(util) {
|
11
|
+
Materia.Engine.start(__DefaultWidgetCondensed__.Engine);
|
12
|
+
});
|
13
|
+
</script>
|
14
|
+
</head>
|
15
|
+
<body>
|
16
|
+
|
17
|
+
<script type="text/template" id="screen-main"><div class="screen main">
|
18
|
+
<h1><%= title %> Engine</h1>
|
19
|
+
</div>
|
20
|
+
</body>
|
21
|
+
</html>
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,48 @@
|
|
1
|
+
<?php
|
2
|
+
/**
|
3
|
+
* {ADD YOUR DOCUMENTATION HERE}
|
4
|
+
*
|
5
|
+
*
|
6
|
+
*
|
7
|
+
* The widget score module
|
8
|
+
*
|
9
|
+
* @package Materia
|
10
|
+
* @subpackage scoring
|
11
|
+
* @category Modules
|
12
|
+
* @author ADD NAME HERE
|
13
|
+
*
|
14
|
+
* @group App
|
15
|
+
* @group Materia
|
16
|
+
* @group Score
|
17
|
+
* @group __DefaultWidget__
|
18
|
+
*/
|
19
|
+
|
20
|
+
namespace Materia;
|
21
|
+
|
22
|
+
class Score_Modules___DefaultWidgetCondensed__ extends Score_Module
|
23
|
+
{
|
24
|
+
|
25
|
+
/**
|
26
|
+
* A basic example of what methods this class should override.
|
27
|
+
* @param object $log Any data saved to the server by your widget (usually question or performance data).
|
28
|
+
* @return [type] [description]
|
29
|
+
*/
|
30
|
+
// public function check_answer($log)
|
31
|
+
// {
|
32
|
+
// if (isset($this->questions[$log->item_id]))
|
33
|
+
// {
|
34
|
+
// $question = $this->questions[$log->item_id];
|
35
|
+
// foreach ($question->answers as $answer)
|
36
|
+
// {
|
37
|
+
// if ($log->text == $answer['text'])
|
38
|
+
// {
|
39
|
+
// return $answer['value'];
|
40
|
+
// break;
|
41
|
+
// }
|
42
|
+
// }
|
43
|
+
// }
|
44
|
+
//
|
45
|
+
// return 0;
|
46
|
+
// }
|
47
|
+
|
48
|
+
}
|