mako 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,584 @@
|
|
|
1
|
+
<?xml version = "1.0" encoding = "utf-8"?>
|
|
2
|
+
<mx:Canvas xmlns:mx = "http://www.adobe.com/2006/mxml"
|
|
3
|
+
creationComplete="{if(onCompleteCallback != null) { onCompleteCallback.call(this); } }"
|
|
4
|
+
verticalScrollPolicy="off" horizontalScrollPolicy="off"
|
|
5
|
+
top="0" bottom="0" left="0" right="0" currentState="Expanded"
|
|
6
|
+
implements = "mx.managers.IFocusManagerComponent, mx.controls.listClasses.IDropInListItemRenderer, mx.core.IFactory">
|
|
7
|
+
<mx:states>
|
|
8
|
+
<mx:State name="Expanded">
|
|
9
|
+
<mx:SetStyle target="{mainField}" name="bottom" value="22"/>
|
|
10
|
+
</mx:State>
|
|
11
|
+
<mx:State name="Normal">
|
|
12
|
+
<mx:RemoveChild target="{subtitleText}"/>
|
|
13
|
+
<mx:SetStyle target="{mainField}" name="bottom" value="{fieldPadding}"/>
|
|
14
|
+
<mx:SetStyle target="{mainField}" name="top" value="{fieldPadding}"/>
|
|
15
|
+
<mx:SetStyle target="{mainField}" name="right" value="{fieldPadding}"/>
|
|
16
|
+
<mx:SetStyle target="{mainField}" name="left" value="{fieldPadding}"/>
|
|
17
|
+
<mx:RemoveChild target="{hbox1}"/>
|
|
18
|
+
</mx:State>
|
|
19
|
+
<mx:State name="ShowCharsLeft">
|
|
20
|
+
<mx:RemoveChild target="{subtitleText}"/>
|
|
21
|
+
<mx:SetStyle target="{mainField}" name="bottom" value="22"/>
|
|
22
|
+
</mx:State>
|
|
23
|
+
</mx:states>
|
|
24
|
+
<mx:transitions>
|
|
25
|
+
<mx:Transition id="myTransition" fromState="Normal" toState="ShowCharsLeft">
|
|
26
|
+
<mx:Parallel id="t1" targets="{[mainField]}">
|
|
27
|
+
<mx:Move duration="50"/>
|
|
28
|
+
<mx:Resize duration="50"/>
|
|
29
|
+
</mx:Parallel>
|
|
30
|
+
</mx:Transition>
|
|
31
|
+
<mx:Transition id="myTransition2" fromState="Normal" toState="ShowCharsLeft">
|
|
32
|
+
<mx:Parallel id="t2" targets="{[characterCount]}">
|
|
33
|
+
<mx:Fade alphaFrom="0" alphaTo="1" />
|
|
34
|
+
</mx:Parallel>
|
|
35
|
+
</mx:Transition>
|
|
36
|
+
<mx:Transition id="myTransition3" fromState="ShowCharsLeft" toState="Normal">
|
|
37
|
+
<mx:Parallel id="t3" targets="{[mainField]}">
|
|
38
|
+
<mx:Move duration="50"/>
|
|
39
|
+
<mx:Resize duration="50"/>
|
|
40
|
+
</mx:Parallel>
|
|
41
|
+
</mx:Transition>
|
|
42
|
+
<mx:Transition id="myTransition4" fromState="ShowCharsLeft" toState="Normal">
|
|
43
|
+
<mx:Parallel id="t4" targets="{[characterCount]}">
|
|
44
|
+
<mx:Fade alphaFrom="0" alphaTo="1" />
|
|
45
|
+
</mx:Parallel>
|
|
46
|
+
</mx:Transition>
|
|
47
|
+
</mx:transitions>
|
|
48
|
+
<mx:TextArea id = "mainField"
|
|
49
|
+
creationComplete="{onMainFieldCreationComplete()}"
|
|
50
|
+
top = "{fieldPadding}"
|
|
51
|
+
bottom = "22"
|
|
52
|
+
left = "{fieldPadding}"
|
|
53
|
+
right = "{fieldPadding}"
|
|
54
|
+
mouseWheel="{onMouseWheel(event)}"
|
|
55
|
+
change = "{onChange()}"
|
|
56
|
+
textInput="{onTextInput(event)}"
|
|
57
|
+
focusIn = "{onFocusIn()}"
|
|
58
|
+
focusOut = "{onFocusOut()}"
|
|
59
|
+
restrict= "{restrict}"
|
|
60
|
+
/>
|
|
61
|
+
<mx:Script>
|
|
62
|
+
<![CDATA[
|
|
63
|
+
import com.adobe.utils.StringUtil;
|
|
64
|
+
import mx.controls.Alert;
|
|
65
|
+
import mx.controls.TextInput;
|
|
66
|
+
import mx.controls.dataGridClasses.DataGridListData;
|
|
67
|
+
import mx.controls.listClasses.BaseListData;
|
|
68
|
+
import mx.events.FlexEvent;
|
|
69
|
+
import mx.events.ListEvent;
|
|
70
|
+
import mx.events.ScrollEvent;
|
|
71
|
+
import mx.utils.ObjectUtil;
|
|
72
|
+
/**
|
|
73
|
+
* this is the default text that shows up when there is no text
|
|
74
|
+
* it dissapears when the user starts editing
|
|
75
|
+
*/
|
|
76
|
+
public var explanationText:String;
|
|
77
|
+
/**
|
|
78
|
+
* this is the default text that shows up when acting as a "press to add"
|
|
79
|
+
* box.
|
|
80
|
+
*/
|
|
81
|
+
public var placeHolderText:String;
|
|
82
|
+
/**
|
|
83
|
+
* To limit the amount of characters for the input
|
|
84
|
+
*/
|
|
85
|
+
public var characterLimit:uint;
|
|
86
|
+
[Bindable]
|
|
87
|
+
/**
|
|
88
|
+
* The padding to be used around the main field
|
|
89
|
+
*/
|
|
90
|
+
public var fieldPadding:int = 5;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Tells item renderer which question error filter to use
|
|
94
|
+
* Need to include in: <questionAnswerDataGrid:TextInputItem id="blah" errorType="blah" />
|
|
95
|
+
* AND Extend Question.as to implement custom valid(errorType):Boolean
|
|
96
|
+
**/
|
|
97
|
+
[Bindable]
|
|
98
|
+
public var errorType:String;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Restrict newlines if set to false
|
|
102
|
+
*/
|
|
103
|
+
public var multiline:Boolean = true;
|
|
104
|
+
/**
|
|
105
|
+
* TextField restrict property
|
|
106
|
+
*/
|
|
107
|
+
[Bindable]
|
|
108
|
+
public var restrict:String = null;
|
|
109
|
+
/**
|
|
110
|
+
* determines weather or not word count is shown
|
|
111
|
+
*/
|
|
112
|
+
protected var _showWordCount:Boolean = false;
|
|
113
|
+
/**
|
|
114
|
+
* determines weather or not word count is shown
|
|
115
|
+
*/
|
|
116
|
+
protected var _characterLimitVisible:Boolean = true;
|
|
117
|
+
public var errorColoringEnabled:Boolean = true;
|
|
118
|
+
/**
|
|
119
|
+
* The color of the input field when this question has an error
|
|
120
|
+
* Make sure to set this in the initial item renderer.
|
|
121
|
+
*/
|
|
122
|
+
public var backgroundColor_error:Number = BGCOLOR_DEFAULT_ERROR;
|
|
123
|
+
/**
|
|
124
|
+
* The color of the input field when this question is normal
|
|
125
|
+
* Make sure to set this in the initial item renderer.
|
|
126
|
+
*/
|
|
127
|
+
public var backgroundColor_normal:Number = BGCOLOR_DEFAULT_NORMAL;
|
|
128
|
+
/**
|
|
129
|
+
* A background to set for the TextArea.
|
|
130
|
+
*
|
|
131
|
+
* Usage:
|
|
132
|
+
*
|
|
133
|
+
* Create an image class by using the embed tag:
|
|
134
|
+
* [Embed (source="assets/myImage.png")]
|
|
135
|
+
* public static const MY_IMAGE:Class
|
|
136
|
+
*
|
|
137
|
+
* Set this equal to that constant
|
|
138
|
+
* inputItem.backgroundImage = MY_IMAGE;
|
|
139
|
+
*/
|
|
140
|
+
public var backgroundImage:Class;
|
|
141
|
+
/**
|
|
142
|
+
* Function called every time this input field is changed or updated
|
|
143
|
+
*/
|
|
144
|
+
public var onChangeCallback:Function;
|
|
145
|
+
/**
|
|
146
|
+
* Function called when the creation of this TextInputItem is complete
|
|
147
|
+
*/
|
|
148
|
+
public var onCompleteCallback:Function;
|
|
149
|
+
protected const BGCOLOR_DEFAULT_ERROR:int = 0xFFE9E9;
|
|
150
|
+
protected const BGCOLOR_DEFAULT_NORMAL:int = 0xFFFFFF;
|
|
151
|
+
protected const TEXTSTYLE_NORMAL:int = 0;
|
|
152
|
+
protected const TEXTSTYLE_LIGHT:int = 1;
|
|
153
|
+
protected var _listData:DataGridListData;
|
|
154
|
+
protected var _fieldIsEmpty:Boolean;
|
|
155
|
+
protected var _currentTextStyle:int;
|
|
156
|
+
protected var _isPlaceholder:Boolean = false;
|
|
157
|
+
protected var _pendingProperties:Array = new Array();
|
|
158
|
+
[Bindable]
|
|
159
|
+
protected var _wordCount:int;
|
|
160
|
+
public override function set data(value:Object):void
|
|
161
|
+
{
|
|
162
|
+
if (parent == null || !(parent.parent is QuestionAnswerDataGrid))
|
|
163
|
+
{
|
|
164
|
+
return;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
super.data = value;
|
|
168
|
+
text = String(getData(value));
|
|
169
|
+
|
|
170
|
+
if (!mainField.editable)
|
|
171
|
+
{
|
|
172
|
+
mainField.selectable = true;
|
|
173
|
+
mainField.editable = true;
|
|
174
|
+
updateTextStyle();
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// update input style, needed for importing questions
|
|
178
|
+
updateWordCount();
|
|
179
|
+
updateCharacterLimit();
|
|
180
|
+
updateBackgroundColor();
|
|
181
|
+
|
|
182
|
+
//If stealFocus flag is set, take focus and unset it so future text inputs don't try to steal focus also
|
|
183
|
+
if (data && data.stealFocus)
|
|
184
|
+
{
|
|
185
|
+
setFocus();
|
|
186
|
+
data.stealFocus = false;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
//Change appearance if this is the last (placeholder) item
|
|
190
|
+
var len:int = QuestionAnswerDataGrid(parent.parent).dataProvider.length;
|
|
191
|
+
if (_isPlaceholder == true)
|
|
192
|
+
{
|
|
193
|
+
if (value.rowIndex != len)
|
|
194
|
+
{
|
|
195
|
+
_isPlaceholder = false;
|
|
196
|
+
mainField.setStyle("backgroundAlpha", "1");
|
|
197
|
+
mainField.setStyle("borderStyle", "solid");
|
|
198
|
+
mainField.setStyle("textAlign", "left");
|
|
199
|
+
if (text == '' || text == "null")
|
|
200
|
+
{
|
|
201
|
+
mainField.text = (_isPlaceholder) ? placeHolderText : explanationText;
|
|
202
|
+
}
|
|
203
|
+
mainField.setSelection(0, mainField.text.length);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
else
|
|
207
|
+
{
|
|
208
|
+
if (value.rowIndex == len)
|
|
209
|
+
{
|
|
210
|
+
_isPlaceholder = true;
|
|
211
|
+
mainField.setStyle("backgroundAlpha", "0");
|
|
212
|
+
mainField.setStyle("borderStyle", "none");
|
|
213
|
+
mainField.setStyle("textAlign", "center");
|
|
214
|
+
if (text == '')
|
|
215
|
+
{
|
|
216
|
+
mainField.text = placeHolderText;
|
|
217
|
+
}
|
|
218
|
+
mainField.setSelection(0, mainField.text.length);
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Digests a complex dataField by reading all the periods and brackets
|
|
224
|
+
* and following the path as it should be followed. If we were to
|
|
225
|
+
* read dataField without this method, a dataField reading
|
|
226
|
+
* 'question.answer' have us check for values in data[question.answer]
|
|
227
|
+
* including the period as part of the string. We want periods to act
|
|
228
|
+
* as separators and brackets to act as array indexes so we need this
|
|
229
|
+
* method
|
|
230
|
+
*/
|
|
231
|
+
protected function getData(value:Object):Object
|
|
232
|
+
{
|
|
233
|
+
var dir:Array = (_listData.dataField as String).split('.');
|
|
234
|
+
var ret:Object = value;
|
|
235
|
+
for (var i:int = 0; i < dir.length; i++)
|
|
236
|
+
{
|
|
237
|
+
var bracketIndex1:int = String(dir[i]).indexOf('[');
|
|
238
|
+
var bracketIndex2:int = String(dir[i]).indexOf(']');
|
|
239
|
+
if (bracketIndex1 == -1)
|
|
240
|
+
{
|
|
241
|
+
ret = ret[dir[i]];
|
|
242
|
+
}
|
|
243
|
+
else if (bracketIndex2 != -1)
|
|
244
|
+
{
|
|
245
|
+
var arr:String = String(dir[i]).substring(0, bracketIndex1);
|
|
246
|
+
var index:int = int(String(dir[i]).substring(bracketIndex1 + 1, bracketIndex2));
|
|
247
|
+
ret = Object(ret[arr])[index];
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
return ret;
|
|
251
|
+
}
|
|
252
|
+
protected function setData(target:Object, content:Object):void
|
|
253
|
+
{
|
|
254
|
+
var dir:Array = (_listData.dataField as String).split('.');
|
|
255
|
+
var ret:Object = target;
|
|
256
|
+
for (var i:int = 0; i < dir.length - 1; i++)
|
|
257
|
+
{
|
|
258
|
+
var bracketIndex1:int = String(dir[i]).indexOf('[');
|
|
259
|
+
var bracketIndex2:int = String(dir[i]).indexOf(']');
|
|
260
|
+
if (bracketIndex1 == -1)
|
|
261
|
+
{
|
|
262
|
+
if (ret[dir[i]] == null)
|
|
263
|
+
{
|
|
264
|
+
ret[dir[i]] = new Object();
|
|
265
|
+
}
|
|
266
|
+
ret = ret[dir[i]];
|
|
267
|
+
}
|
|
268
|
+
else if (bracketIndex2 != -1)
|
|
269
|
+
{
|
|
270
|
+
var arr:String = String(dir[i]).substring(0, bracketIndex1);
|
|
271
|
+
var index:int = int(String(dir[i]).substring(bracketIndex1 + 1, bracketIndex2));
|
|
272
|
+
ret = (ret[arr] as Array)[index];
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
ret[dir[dir.length - 1]] = content;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Gives the text field focus automatically whenever this component receives focus
|
|
279
|
+
*/
|
|
280
|
+
public override function setFocus():void
|
|
281
|
+
{
|
|
282
|
+
mainField.setFocus();
|
|
283
|
+
}
|
|
284
|
+
public override function get data():Object
|
|
285
|
+
{
|
|
286
|
+
return super.data;
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Creates a copy of this item. Copies all properties of this instance
|
|
290
|
+
* that should be present in all instances.
|
|
291
|
+
*/
|
|
292
|
+
public function newInstance():*
|
|
293
|
+
{
|
|
294
|
+
var item:TextInputItem = new TextInputItem();
|
|
295
|
+
this.cloneTo(item);
|
|
296
|
+
return item;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Copies important properties from current instance to the target
|
|
300
|
+
*/
|
|
301
|
+
public function cloneTo(target:TextInputItem):void
|
|
302
|
+
{
|
|
303
|
+
target.explanationText = explanationText;
|
|
304
|
+
target.placeHolderText = placeHolderText;
|
|
305
|
+
target.characterLimit = characterLimit;
|
|
306
|
+
target.errorColoringEnabled = errorColoringEnabled;
|
|
307
|
+
target._showWordCount = _showWordCount;
|
|
308
|
+
target._characterLimitVisible = _characterLimitVisible;
|
|
309
|
+
target._pendingProperties = _pendingProperties;
|
|
310
|
+
target.multiline = multiline;
|
|
311
|
+
target.restrict = restrict;
|
|
312
|
+
target.backgroundColor_error = backgroundColor_error;
|
|
313
|
+
target.backgroundColor_normal = backgroundColor_normal;
|
|
314
|
+
target.backgroundImage = backgroundImage;
|
|
315
|
+
target.onChangeCallback = onChangeCallback;
|
|
316
|
+
target.onCompleteCallback = onCompleteCallback;
|
|
317
|
+
target.fieldPadding = fieldPadding;
|
|
318
|
+
target.errorType = errorType;
|
|
319
|
+
}
|
|
320
|
+
public function set showWordCount(value:Boolean):void
|
|
321
|
+
{
|
|
322
|
+
if (value)
|
|
323
|
+
{
|
|
324
|
+
currentState = "Expanded";
|
|
325
|
+
}
|
|
326
|
+
else if (characterLimit)
|
|
327
|
+
{
|
|
328
|
+
currentState = "ShowCharsLeft";
|
|
329
|
+
}
|
|
330
|
+
else
|
|
331
|
+
{
|
|
332
|
+
currentState = "Normal";
|
|
333
|
+
}
|
|
334
|
+
_showWordCount = value;
|
|
335
|
+
}
|
|
336
|
+
public function get showWordCount():Boolean
|
|
337
|
+
{
|
|
338
|
+
return _showWordCount;
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Whether or not the "characters left" info is shown under
|
|
342
|
+
* the input field when focused
|
|
343
|
+
*/
|
|
344
|
+
public function get characterLimitVisible():Boolean
|
|
345
|
+
{
|
|
346
|
+
return _characterLimitVisible;
|
|
347
|
+
}
|
|
348
|
+
public function set characterLimitVisible(value:Boolean):void
|
|
349
|
+
{
|
|
350
|
+
_characterLimitVisible = value;
|
|
351
|
+
}
|
|
352
|
+
public function set listData(value:BaseListData):void
|
|
353
|
+
{
|
|
354
|
+
_listData = DataGridListData(value);
|
|
355
|
+
}
|
|
356
|
+
public function get listData():BaseListData
|
|
357
|
+
{
|
|
358
|
+
return _listData;
|
|
359
|
+
}
|
|
360
|
+
public function set text(value:String):void
|
|
361
|
+
{
|
|
362
|
+
//Eliminate newlines if multiline is disabled -- remove carriage returns and returns (\n, \r)
|
|
363
|
+
if(!multiline)
|
|
364
|
+
{
|
|
365
|
+
for (var i:int = value.length - 1; i >= 0; i--)
|
|
366
|
+
{
|
|
367
|
+
if (value.charCodeAt(i) == 10 || value.charCodeAt(i) == 13)
|
|
368
|
+
{
|
|
369
|
+
value = value.substring(0, i).concat(value.substring(i + 1));
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
if (!value || !value.length || value == "null")
|
|
375
|
+
{
|
|
376
|
+
setTextStyle(TEXTSTYLE_LIGHT);
|
|
377
|
+
if (onChangeCallback != null)
|
|
378
|
+
{
|
|
379
|
+
if (mainField.text != explanationText && _isPlaceholder == false && mainField.text != placeHolderText && !_isPlaceholder)
|
|
380
|
+
{
|
|
381
|
+
onChangeCallback.call(this);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
mainField.text = (_isPlaceholder) ? placeHolderText : explanationText;
|
|
385
|
+
}
|
|
386
|
+
else
|
|
387
|
+
{
|
|
388
|
+
if (!text.length)
|
|
389
|
+
{
|
|
390
|
+
setTextStyle(TEXTSTYLE_NORMAL);
|
|
391
|
+
}
|
|
392
|
+
if (mainField.text != value && onChangeCallback != null)
|
|
393
|
+
{
|
|
394
|
+
onChangeCallback.call(this);
|
|
395
|
+
}
|
|
396
|
+
mainField.text = value;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
public function get text():String
|
|
400
|
+
{
|
|
401
|
+
return (mainField.text == placeHolderText || mainField.text == explanationText) ? '' : mainField.text;
|
|
402
|
+
}
|
|
403
|
+
public function get wordCount():int
|
|
404
|
+
{
|
|
405
|
+
return _wordCount;
|
|
406
|
+
}
|
|
407
|
+
public function set wordCount(value:int):void
|
|
408
|
+
{
|
|
409
|
+
_wordCount = value;
|
|
410
|
+
}
|
|
411
|
+
public function updateTextStyle():void
|
|
412
|
+
{
|
|
413
|
+
var textStyle:int = (!text) ? TEXTSTYLE_LIGHT : TEXTSTYLE_NORMAL;
|
|
414
|
+
setTextStyle(textStyle);
|
|
415
|
+
}
|
|
416
|
+
public function updateBackgroundColor():void
|
|
417
|
+
{
|
|
418
|
+
// if errorType is null, it valid checks both question && answer
|
|
419
|
+
if(!data.question.valid(errorType) && errorColoringEnabled)
|
|
420
|
+
{
|
|
421
|
+
mainField.setStyle('backgroundColor', backgroundColor_error);
|
|
422
|
+
}
|
|
423
|
+
else
|
|
424
|
+
{
|
|
425
|
+
mainField.setStyle('backgroundColor', backgroundColor_normal);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
// set the background image if needed
|
|
429
|
+
if(backgroundImage != null)
|
|
430
|
+
{
|
|
431
|
+
mainField.setStyle('backgroundImage', backgroundImage);
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
public function updateCharacterLimit():void
|
|
435
|
+
{
|
|
436
|
+
if (characterLimit && this.text.length >= characterLimit)
|
|
437
|
+
{
|
|
438
|
+
text = text.substr(0, characterLimit);
|
|
439
|
+
}
|
|
440
|
+
wordCount = characterLimit - text.length;
|
|
441
|
+
}
|
|
442
|
+
public function hideCharacterLimit():void
|
|
443
|
+
{
|
|
444
|
+
currentState = "Normal"
|
|
445
|
+
}
|
|
446
|
+
public function showCharacterLimit():void
|
|
447
|
+
{
|
|
448
|
+
// Show character limit box if enabled
|
|
449
|
+
if (characterLimitVisible && characterLimit > 0)
|
|
450
|
+
{
|
|
451
|
+
currentState = "ShowCharsLeft"
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
protected function updateWordCount():void
|
|
455
|
+
{
|
|
456
|
+
var txt:String = StringUtil.trim(text);
|
|
457
|
+
_wordCount = (txt && txt.length > 0) ? txt.split(/\s+/g).length : 0;
|
|
458
|
+
}
|
|
459
|
+
protected function onTextInput(event:TextEvent):void
|
|
460
|
+
{
|
|
461
|
+
var str:String = event.text;
|
|
462
|
+
}
|
|
463
|
+
protected function onMainFieldCreationComplete():void
|
|
464
|
+
{
|
|
465
|
+
for (var i:int = 0; i < _pendingProperties.length; i++)
|
|
466
|
+
{
|
|
467
|
+
mainField[_pendingProperties[i].property] = _pendingProperties[i].arg;
|
|
468
|
+
}
|
|
469
|
+
// initially hide word and char count
|
|
470
|
+
hideCharacterLimit();
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* Detects mousewheel events and propagates them if there's no scrolling to do
|
|
474
|
+
**/
|
|
475
|
+
public function onMouseWheel(event:MouseEvent):void
|
|
476
|
+
{
|
|
477
|
+
if (_isPlaceholder)
|
|
478
|
+
{
|
|
479
|
+
dispatchEvent(event);
|
|
480
|
+
return;
|
|
481
|
+
}
|
|
482
|
+
//If scrolling down
|
|
483
|
+
if (event.delta > 0)
|
|
484
|
+
{
|
|
485
|
+
if (mainField.verticalScrollPosition == mainField.maxVerticalScrollPosition)
|
|
486
|
+
{
|
|
487
|
+
dispatchEvent(event);
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
//If scrolling up
|
|
491
|
+
else if (event.delta < 0)
|
|
492
|
+
{
|
|
493
|
+
if (mainField.verticalScrollPosition == 0)
|
|
494
|
+
{
|
|
495
|
+
dispatchEvent(event);
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
public function onChange():void
|
|
500
|
+
{
|
|
501
|
+
// update input field
|
|
502
|
+
setData(data, text);
|
|
503
|
+
updateWordCount();
|
|
504
|
+
updateCharacterLimit();
|
|
505
|
+
updateBackgroundColor();
|
|
506
|
+
setTextStyle(TEXTSTYLE_NORMAL);
|
|
507
|
+
dispatchEvent(new Event(Event.CHANGE, true));
|
|
508
|
+
QuestionAnswerDataGrid(parent.parent).dispatchEvent(new Event(FlexEvent.DATA_CHANGE));
|
|
509
|
+
if (onChangeCallback != null)
|
|
510
|
+
{
|
|
511
|
+
onChangeCallback.call(this);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
public function onFocusIn():void
|
|
515
|
+
{
|
|
516
|
+
//If there is sample text, remove it and change to normal font
|
|
517
|
+
if (!text.length)
|
|
518
|
+
{
|
|
519
|
+
mainField.text = "";
|
|
520
|
+
}
|
|
521
|
+
// prevent dragging when we might want to be selecting text
|
|
522
|
+
dispatchEvent(new Event(QuestionAnswerDataGrid.DISABLE_DRAGGING, true));
|
|
523
|
+
showCharacterLimit();
|
|
524
|
+
}
|
|
525
|
+
public function onFocusOut():void
|
|
526
|
+
{
|
|
527
|
+
// make sure we can drag again as soon as we click out
|
|
528
|
+
dispatchEvent(new Event(QuestionAnswerDataGrid.ENABLE_DRAGGING, true));
|
|
529
|
+
hideCharacterLimit();
|
|
530
|
+
}
|
|
531
|
+
/**
|
|
532
|
+
* Sets properties in mainField. If mainField has not yet been
|
|
533
|
+
* created, property is set on creation complete for mainField.
|
|
534
|
+
*/
|
|
535
|
+
public function setTextFieldProperty(property:String, arg:*):void
|
|
536
|
+
{
|
|
537
|
+
if (mainField != null)
|
|
538
|
+
{
|
|
539
|
+
mainField[property] = arg;
|
|
540
|
+
}
|
|
541
|
+
else
|
|
542
|
+
{
|
|
543
|
+
_pendingProperties.push({property:property, arg:arg});
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
public function setTextStyle(textStyle:int):void
|
|
547
|
+
{
|
|
548
|
+
switch (textStyle)
|
|
549
|
+
{
|
|
550
|
+
case TEXTSTYLE_NORMAL:
|
|
551
|
+
if (_currentTextStyle != TEXTSTYLE_NORMAL)
|
|
552
|
+
{
|
|
553
|
+
_currentTextStyle = TEXTSTYLE_NORMAL;
|
|
554
|
+
mainField.setStyle('fontStyle', 'normal');
|
|
555
|
+
mainField.setStyle('color', '0');
|
|
556
|
+
}
|
|
557
|
+
break;
|
|
558
|
+
case TEXTSTYLE_LIGHT:
|
|
559
|
+
if (_currentTextStyle != TEXTSTYLE_LIGHT)
|
|
560
|
+
{
|
|
561
|
+
_currentTextStyle = TEXTSTYLE_LIGHT;
|
|
562
|
+
mainField.setStyle('fontStyle', 'normal');
|
|
563
|
+
mainField.setStyle('color', '0x999999');
|
|
564
|
+
}
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
]]>
|
|
569
|
+
</mx:Script>
|
|
570
|
+
<mx:HBox bottom = "0"
|
|
571
|
+
left = "5"
|
|
572
|
+
fontSize = "10"
|
|
573
|
+
paddingBottom = "0"
|
|
574
|
+
paddingLeft = "0"
|
|
575
|
+
paddingRight = "0"
|
|
576
|
+
paddingTop = "0" id="hbox1">
|
|
577
|
+
<mx:Text id = "subtitleText"
|
|
578
|
+
text = "{_wordCount} Words"
|
|
579
|
+
selectable = "false" />
|
|
580
|
+
<mx:Text id = "characterCount"
|
|
581
|
+
text = "{_wordCount} Characters Remain"
|
|
582
|
+
selectable = "false"/>
|
|
583
|
+
</mx:HBox>
|
|
584
|
+
</mx:Canvas>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
package materia.components.questionAnswerDataGrid
|
|
2
|
+
{
|
|
3
|
+
import materia.questionStorage.Question;
|
|
4
|
+
public dynamic class TextInputObject
|
|
5
|
+
{
|
|
6
|
+
public var stealFocus:Boolean;
|
|
7
|
+
[Bindable]
|
|
8
|
+
public var rowIndex:int;
|
|
9
|
+
public var question:Question;
|
|
10
|
+
public var imported:Boolean;
|
|
11
|
+
public var importModified:Boolean;
|
|
12
|
+
public function TextInputObject(stealFocus:Boolean, rowIndex:int, question:Question, imported:Boolean, importModified:Boolean)
|
|
13
|
+
{
|
|
14
|
+
this.stealFocus = stealFocus;
|
|
15
|
+
this.rowIndex = rowIndex;
|
|
16
|
+
this.question = question;
|
|
17
|
+
this.imported = imported;
|
|
18
|
+
this.importModified = importModified;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Override question's valid method in a widget specific extended question class
|
|
22
|
+
**/
|
|
23
|
+
public function hasErrors():Boolean
|
|
24
|
+
{
|
|
25
|
+
return !question.valid();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|