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,503 @@
|
|
1
|
+
/* See the file "LICENSE.txt" for the full license governing this code. */
|
2
|
+
package nm.ui
|
3
|
+
{
|
4
|
+
import com.gskinner.motion.GTween;
|
5
|
+
import flash.display.MovieClip;
|
6
|
+
import flash.display.Sprite;
|
7
|
+
import flash.events.Event;
|
8
|
+
import flash.events.EventDispatcher;
|
9
|
+
public class TweeningDragDropBankList extends EventDispatcher
|
10
|
+
{
|
11
|
+
protected static const TRACE_STRING:String = "TweeningDragDropBankList";
|
12
|
+
// you give this clips, and it stacks them up ( on different pages)
|
13
|
+
// it tweens page changes, tweens adding items,
|
14
|
+
// and tweens making room for adding items
|
15
|
+
// NOTE: is currently a horizontal list
|
16
|
+
protected var _parent:Sprite;
|
17
|
+
public function get items():Array
|
18
|
+
{
|
19
|
+
return _items;
|
20
|
+
}
|
21
|
+
protected var _items:Array = [];
|
22
|
+
// the location on the parent that this list is
|
23
|
+
protected var _x:Number, _y:Number, _width:Number, _height:Number;
|
24
|
+
protected var _paddingBetweenListItems:Number = 8.0; // using this to magic number hack fix
|
25
|
+
protected var _customTween:Function;
|
26
|
+
protected var _tweenTime:Number = 1.6;
|
27
|
+
//protected var _lastPageIndex:int = 0;
|
28
|
+
protected var _currentPage:Number = 0.0; // the current page we are showing
|
29
|
+
// the clips will be shown on pages based on the _width/_height of the area set
|
30
|
+
// NOTE: Should be a Number instead of an int because we are multiplying it with Numbers
|
31
|
+
public function TweeningDragDropBankList(parent:Sprite)
|
32
|
+
{
|
33
|
+
_parent = parent;
|
34
|
+
}
|
35
|
+
public function setTweenStyle(tweenTime:Number, customTweenFunction:Function = null):void
|
36
|
+
{
|
37
|
+
_tweenTime = tweenTime;
|
38
|
+
_customTween = customTweenFunction;
|
39
|
+
}
|
40
|
+
public function setArea(theX:Number, theY:Number, width:Number, height:Number):void
|
41
|
+
{
|
42
|
+
_x = theX;
|
43
|
+
_y = theY;
|
44
|
+
_width = width;
|
45
|
+
_height = height;
|
46
|
+
}
|
47
|
+
public function addItem(clip:MovieClip, animate:Boolean = true):void
|
48
|
+
{
|
49
|
+
//////trace(TRACE_STRING + "::addItem");
|
50
|
+
// NOTE: we will handle the case where the clip is already in items
|
51
|
+
// just re-position it
|
52
|
+
_makingRoomForItem = false;
|
53
|
+
var i:int = _items.indexOf(clip);
|
54
|
+
if( i != -1)
|
55
|
+
{
|
56
|
+
_items.splice(i,1);
|
57
|
+
}
|
58
|
+
_items.splice(0,0,clip);
|
59
|
+
// clip.tabEnabled = false;
|
60
|
+
bubbleDownItemAt(0);
|
61
|
+
moveItemsIntoPosition(animate);
|
62
|
+
}
|
63
|
+
public function itemIsMember(clip:MovieClip):Boolean
|
64
|
+
{
|
65
|
+
return isMember(clip, _items);
|
66
|
+
}
|
67
|
+
public function tryStoppingTweensForClip(clip:MovieClip):void
|
68
|
+
{
|
69
|
+
//////trace(TRACE_STRING + "::tryStoppingTweensForClip");
|
70
|
+
var tweenObject:Object = removeTweenInfo(clip);
|
71
|
+
if(tweenObject != null)
|
72
|
+
{
|
73
|
+
////trace("function tryStoppingTweensForClip, pausing a tween");
|
74
|
+
(tweenObject.tween as GTween).paused = true;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
// our items can have custom fields for telling their height
|
78
|
+
// this sets the field to use as the function to get the item's height
|
79
|
+
protected var _itemHeightFunctionField:String = ""
|
80
|
+
public function setItemHeightFunctionField(field:String):void
|
81
|
+
{
|
82
|
+
_itemHeightFunctionField = field;
|
83
|
+
}
|
84
|
+
protected function getItemHeight(item:*):Number
|
85
|
+
{
|
86
|
+
var result:Number;
|
87
|
+
if(_itemHeightFunctionField != "")
|
88
|
+
{
|
89
|
+
result = (item[_itemHeightFunctionField])();
|
90
|
+
}
|
91
|
+
else
|
92
|
+
{
|
93
|
+
result = item.height;
|
94
|
+
}
|
95
|
+
//trace("height result = " + result);
|
96
|
+
return result;
|
97
|
+
}
|
98
|
+
protected function bubbleDownItemAt(pos:int):int
|
99
|
+
{
|
100
|
+
for(var i:int = pos + 1; i < _items.length; i++)
|
101
|
+
{
|
102
|
+
if( itemY(_items[pos]) > itemY(_items[i]) )
|
103
|
+
{
|
104
|
+
swap(_items, pos, i);
|
105
|
+
pos++;
|
106
|
+
}
|
107
|
+
else
|
108
|
+
{
|
109
|
+
break;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
return pos;
|
113
|
+
}
|
114
|
+
protected function itemY(item:MovieClip):Number
|
115
|
+
{
|
116
|
+
return item.y + getItemHeight(item)/2.0;
|
117
|
+
}
|
118
|
+
protected function swap(arr:Array, index1:int, index2:int):void
|
119
|
+
{
|
120
|
+
var temp:* = arr[index1];
|
121
|
+
arr[index1] = arr[index2];
|
122
|
+
arr[index2] = temp;
|
123
|
+
}
|
124
|
+
protected function moveItemsIntoPosition(animate:Boolean, skipList:Array = null):void
|
125
|
+
{
|
126
|
+
if(skipList == null)
|
127
|
+
{
|
128
|
+
skipList = [];
|
129
|
+
}
|
130
|
+
var lastPage:int = getCurrentLastPage();
|
131
|
+
if( _currentPage > lastPage)
|
132
|
+
{
|
133
|
+
_currentPage = lastPage;
|
134
|
+
}
|
135
|
+
var pageOffset:Number = getPageYOffset(_currentPage);
|
136
|
+
//////trace("pageOffset = " + pageOffset);
|
137
|
+
var curY:Number = _y;
|
138
|
+
for(var i:int =0; i< _items.length; i++)
|
139
|
+
{
|
140
|
+
var item:MovieClip = _items[i];
|
141
|
+
if( ! isMember(item, skipList) )
|
142
|
+
{
|
143
|
+
setItemPosition(item, _x, curY, pageOffset, animate);
|
144
|
+
}
|
145
|
+
// NOTE: doing thise even if they are on the skip list
|
146
|
+
curY += getItemHeight(item) + _paddingBetweenListItems;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
protected function isMember(item:*, list:Array):Boolean
|
150
|
+
{
|
151
|
+
for(var i:int =0; i< list.length; i++)
|
152
|
+
{
|
153
|
+
if( item == list[i])
|
154
|
+
{
|
155
|
+
return true;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
return false;
|
159
|
+
}
|
160
|
+
public function removeItem(clip:MovieClip, animate:Boolean = true):void
|
161
|
+
{
|
162
|
+
//////trace(TRACE_STRING + "::removeItem");
|
163
|
+
_makingRoomForItem = false;
|
164
|
+
for(var i:int =0; i< _items.length; i++)
|
165
|
+
{
|
166
|
+
if( _items[i] == clip)
|
167
|
+
{
|
168
|
+
//////trace("itemFound");
|
169
|
+
var item:MovieClip = _items.splice(i, 1)[0];
|
170
|
+
// stop the tweeing on this item if its goint
|
171
|
+
var tweenInfo:Object = removeTweenInfo(item);
|
172
|
+
if(tweenInfo != null)
|
173
|
+
{
|
174
|
+
////trace("function removeItem, pausing a tween");
|
175
|
+
(tweenInfo.tween as GTween).paused = true;
|
176
|
+
}
|
177
|
+
break;
|
178
|
+
}
|
179
|
+
//////trace("moveItemsIntoPosition, animate = " + animate);
|
180
|
+
moveItemsIntoPosition(animate);
|
181
|
+
}
|
182
|
+
}
|
183
|
+
// set to true when we are making room for an item
|
184
|
+
// it will be set to false after adding, removing, or canceling the make room
|
185
|
+
protected var _makingRoomForItem:Boolean = false;
|
186
|
+
public function makeRoomForItem(clip:MovieClip, animate:Boolean = true):void
|
187
|
+
{
|
188
|
+
// NOTE: clip could already be a member of our clips
|
189
|
+
// if it is, we would not need to keep its old space?
|
190
|
+
var i:int = _items.indexOf(clip);
|
191
|
+
if(i != -1) // if its already in the _items array
|
192
|
+
{
|
193
|
+
// no need to have room for it twice
|
194
|
+
_items.splice(i,1);
|
195
|
+
}
|
196
|
+
_items.splice(0,0,clip);
|
197
|
+
var newIndex:int = bubbleDownItemAt(0);
|
198
|
+
moveItemsIntoPosition(animate,[clip]);
|
199
|
+
_items.splice(newIndex,1);
|
200
|
+
_makingRoomForItem = true;
|
201
|
+
}
|
202
|
+
public function cancelMakeRoomForItem(animate:Boolean = true):void
|
203
|
+
{
|
204
|
+
if(_makingRoomForItem)
|
205
|
+
{
|
206
|
+
moveItemsIntoPosition(animate);
|
207
|
+
_makingRoomForItem = false;
|
208
|
+
}
|
209
|
+
}
|
210
|
+
protected function getCurrentLastPage():int
|
211
|
+
{
|
212
|
+
//return the index of the last page
|
213
|
+
var pageCount:int = 0;
|
214
|
+
var curPageYAmount:Number = 0;
|
215
|
+
for(var i:int =0; i< _items.length; i++)
|
216
|
+
{
|
217
|
+
var item:MovieClip = _items[i];
|
218
|
+
// NOTE: doing thise even if they are on the skip list
|
219
|
+
curPageYAmount += getItemHeight(item) + _paddingBetweenListItems;
|
220
|
+
if(curPageYAmount > _height)
|
221
|
+
{
|
222
|
+
// this item will be the first item on the next page
|
223
|
+
pageCount++;
|
224
|
+
curPageYAmount = getItemHeight(item) + _paddingBetweenListItems;
|
225
|
+
}
|
226
|
+
}
|
227
|
+
return pageCount;
|
228
|
+
}
|
229
|
+
// get the y offset of a page
|
230
|
+
protected function getPageYOffset(pageNum:int):Number
|
231
|
+
{
|
232
|
+
//////trace("pageNum = " + pageNum);
|
233
|
+
var pageCount:int = 0;
|
234
|
+
var curPageYAmount:Number = 0;
|
235
|
+
var curTotalAmount:Number = 0;
|
236
|
+
var returnValueY:Number = 0;
|
237
|
+
for(var i:int =0; i< _items.length; i++)
|
238
|
+
{
|
239
|
+
if(pageCount == pageNum)
|
240
|
+
{
|
241
|
+
return returnValueY;
|
242
|
+
}
|
243
|
+
var item:MovieClip = _items[i];
|
244
|
+
if(curPageYAmount + getItemHeight(item) > _height)
|
245
|
+
{
|
246
|
+
returnValueY = curTotalAmount;
|
247
|
+
curPageYAmount = 0.0;
|
248
|
+
pageCount++;
|
249
|
+
}
|
250
|
+
var addAmount:Number = getItemHeight(item) + _paddingBetweenListItems;
|
251
|
+
curPageYAmount += addAmount;
|
252
|
+
curTotalAmount += addAmount;
|
253
|
+
}
|
254
|
+
return returnValueY;
|
255
|
+
}
|
256
|
+
public function canGoToNextPage():Boolean
|
257
|
+
{
|
258
|
+
var lastPage:int = getCurrentLastPage();
|
259
|
+
if( _currentPage + 1 <= lastPage)
|
260
|
+
{
|
261
|
+
return true;
|
262
|
+
}
|
263
|
+
return false;
|
264
|
+
}
|
265
|
+
public function canGoToPreviousPage():Boolean
|
266
|
+
{
|
267
|
+
if( _currentPage > 0)
|
268
|
+
{
|
269
|
+
return true;
|
270
|
+
}
|
271
|
+
return false;
|
272
|
+
}
|
273
|
+
public function tryGotoNextPage(animate:Boolean = true):void
|
274
|
+
{
|
275
|
+
_currentPage += 1;
|
276
|
+
moveItemsIntoPosition(animate);
|
277
|
+
// returns true if there was a next page to go to
|
278
|
+
// false if not
|
279
|
+
}
|
280
|
+
public function tryGotoPreviousPage(animate:Boolean = true):void
|
281
|
+
{
|
282
|
+
_currentPage -= 1;
|
283
|
+
if( _currentPage < 0)
|
284
|
+
{
|
285
|
+
_currentPage = 0;
|
286
|
+
}
|
287
|
+
moveItemsIntoPosition(animate);
|
288
|
+
}
|
289
|
+
// scroll to the page that the selected item is on
|
290
|
+
// if its on the current page, do nothing
|
291
|
+
// if it is on another page, only show 1 page move animation
|
292
|
+
public function scrollToItem(item:Object, animate:Boolean = true, force:Boolean = false):void
|
293
|
+
{
|
294
|
+
var newPage:int = getPageForItem(item);
|
295
|
+
if(force || (_currentPage != newPage))
|
296
|
+
{
|
297
|
+
_currentPage = newPage;
|
298
|
+
moveItemsIntoPosition(animate);
|
299
|
+
}
|
300
|
+
}
|
301
|
+
// return the page that the current item is on
|
302
|
+
protected function getPageForItem(theItem:Object):int
|
303
|
+
{
|
304
|
+
var pageCount:int = 0;
|
305
|
+
var curPageYAmount:Number = 0;
|
306
|
+
var curTotalAmount:Number = 0;
|
307
|
+
var returnValueY:Number = 0;
|
308
|
+
//var pageNum:int = 0; // start looking from page 0
|
309
|
+
for(var i:int =0; i< _items.length; i++)
|
310
|
+
{
|
311
|
+
var item:MovieClip = _items[i];
|
312
|
+
if(curPageYAmount + getItemHeight(item) > _height)
|
313
|
+
{
|
314
|
+
returnValueY = curTotalAmount;
|
315
|
+
curPageYAmount = 0.0;
|
316
|
+
pageCount++;
|
317
|
+
}
|
318
|
+
// if we find this item, return the page
|
319
|
+
if( item == theItem)
|
320
|
+
{
|
321
|
+
return pageCount;
|
322
|
+
}
|
323
|
+
var addAmount:Number = getItemHeight(item) + _paddingBetweenListItems;
|
324
|
+
curPageYAmount += addAmount;
|
325
|
+
curTotalAmount += addAmount;
|
326
|
+
}
|
327
|
+
return pageCount;
|
328
|
+
}
|
329
|
+
// where we store all the tween objects
|
330
|
+
// we might need them to cancel tweens
|
331
|
+
//protected var _tweens:Object = {};
|
332
|
+
protected var _tweens:Array = [];
|
333
|
+
// each oject will have {item:, tween:, x:, y:}
|
334
|
+
// x and y are the target locations
|
335
|
+
protected function isTweenStored(item:MovieClip):Boolean
|
336
|
+
{
|
337
|
+
for(var i:int = 0; i< _tweens.length; i++)
|
338
|
+
{
|
339
|
+
if( _tweens[i].item == item)
|
340
|
+
{
|
341
|
+
return true;
|
342
|
+
}
|
343
|
+
}
|
344
|
+
return false;
|
345
|
+
}
|
346
|
+
protected function getTweenInfo(item:MovieClip):Object
|
347
|
+
{
|
348
|
+
for(var i:int = 0; i< _tweens.length; i++)
|
349
|
+
{
|
350
|
+
if( _tweens[i].item == item)
|
351
|
+
{
|
352
|
+
return _tweens[i];
|
353
|
+
}
|
354
|
+
}
|
355
|
+
return null;
|
356
|
+
}
|
357
|
+
protected function removeTweenInfo(item:MovieClip):Object
|
358
|
+
{
|
359
|
+
for(var i:int = 0; i< _tweens.length; i++)
|
360
|
+
{
|
361
|
+
if( _tweens[i].item == item)
|
362
|
+
{
|
363
|
+
return _tweens.splice(i,1)[0];
|
364
|
+
}
|
365
|
+
}
|
366
|
+
return null;
|
367
|
+
}
|
368
|
+
protected function addTweenInfo(item:Object):void
|
369
|
+
{
|
370
|
+
_tweens.push(item);
|
371
|
+
}
|
372
|
+
protected function willClipBeVisible(clip:MovieClip, xDest:Number, yDest:Number):Boolean
|
373
|
+
{
|
374
|
+
// NOTE: currently list is vertical and we only check y coords
|
375
|
+
// dont need offset param
|
376
|
+
var curPageStartY:Number = _y;
|
377
|
+
var curPageEndY:Number = curPageStartY + _height;
|
378
|
+
const ERROR:Number = 3.0;
|
379
|
+
// arg, this ERROR thing is hacky, but its pissing me off so im gonna do it
|
380
|
+
// a clip is being hidden when i dont wat it, so doing this
|
381
|
+
// if it is too high up
|
382
|
+
if(yDest + ERROR < curPageStartY)
|
383
|
+
{
|
384
|
+
return false;
|
385
|
+
}
|
386
|
+
// if it is too far down
|
387
|
+
if( yDest + getItemHeight(clip) > curPageEndY)
|
388
|
+
{
|
389
|
+
return false;
|
390
|
+
}
|
391
|
+
return true;
|
392
|
+
}
|
393
|
+
protected function setItemPosition(item:MovieClip, theX:Number, theY:Number, pageOffset:Number, animate:Boolean = true):void
|
394
|
+
{
|
395
|
+
// theY gets offset by the current page we are on
|
396
|
+
theY -= pageOffset;
|
397
|
+
if(item.x != theX || item.y != theY)
|
398
|
+
{
|
399
|
+
// cancel any previous tweens
|
400
|
+
var o:Object = removeTweenInfo(item);
|
401
|
+
if(o != null)
|
402
|
+
{
|
403
|
+
//////trace("hello");
|
404
|
+
//var o:Object = getTweenInfo(item);
|
405
|
+
//g = o.tween;
|
406
|
+
//////trace( "theX = " + theX+", theY = "+theY);
|
407
|
+
//////trace( " o.x = " + o. x+", o.y = "+o.y);
|
408
|
+
// if the tween is not going where it needs to
|
409
|
+
if( theX != o.x || theY != o.y)
|
410
|
+
{
|
411
|
+
//////trace("hi");
|
412
|
+
//g.end();
|
413
|
+
o.tween.removeEventListener(Event.COMPLETE, tweenComplete);
|
414
|
+
o.tween.paused = true; // not sure if this is needed?
|
415
|
+
//removeTweenInfo(item);//_tweens[item+""] = undefined;
|
416
|
+
}
|
417
|
+
else
|
418
|
+
{
|
419
|
+
// its going to where it needs to go
|
420
|
+
return; // early return
|
421
|
+
}
|
422
|
+
}
|
423
|
+
// Visiblility Check
|
424
|
+
// if it isn't visible, and wont be, no need to animate
|
425
|
+
// if it isnt visible, but will be, make it visible
|
426
|
+
// if it is visible, but wont be later. mark it as to be hidden
|
427
|
+
// if it will be visible at the end
|
428
|
+
var endVisibility:Boolean = willClipBeVisible(item, theX, theY);
|
429
|
+
var startAlpha:Number;
|
430
|
+
var endAlpha:Number;
|
431
|
+
if(endVisibility == true)
|
432
|
+
{
|
433
|
+
if(item.visible == true)
|
434
|
+
{
|
435
|
+
// continue as normal
|
436
|
+
startAlpha = 1.0;
|
437
|
+
}
|
438
|
+
else
|
439
|
+
{
|
440
|
+
// make it visible
|
441
|
+
item.visible = true;
|
442
|
+
startAlpha = 0.0;
|
443
|
+
}
|
444
|
+
endAlpha = 1.0;
|
445
|
+
}
|
446
|
+
else
|
447
|
+
{
|
448
|
+
//item.visible = false;
|
449
|
+
if(item.visible == true)
|
450
|
+
{
|
451
|
+
// endVisibility being false will make it hide later
|
452
|
+
startAlpha = 1.0;
|
453
|
+
endAlpha = 0.0;
|
454
|
+
}
|
455
|
+
else
|
456
|
+
{
|
457
|
+
// be sure not to tween it!
|
458
|
+
// starts invisible, ends invisible
|
459
|
+
animate = false;
|
460
|
+
// wont need to worry about alphas
|
461
|
+
}
|
462
|
+
}
|
463
|
+
if(animate)
|
464
|
+
{
|
465
|
+
var g:GTween;
|
466
|
+
item.alpha = startAlpha;
|
467
|
+
if(_customTween != null)
|
468
|
+
{
|
469
|
+
g = new GTween(item, _tweenTime,
|
470
|
+
{x:theX, y:theY, alpha:endAlpha},
|
471
|
+
{ease:_customTween});
|
472
|
+
}
|
473
|
+
else
|
474
|
+
{
|
475
|
+
g = new GTween(item, _tweenTime,
|
476
|
+
{x:theX, y:theY, alpha:endAlpha});
|
477
|
+
}
|
478
|
+
//////trace("ADDING TWEEN");
|
479
|
+
g.onComplete = tweenComplete;
|
480
|
+
// g.addEventListener(Event.COMPLETE, tweenComplete, false, 0, true);
|
481
|
+
addTweenInfo({item:item, tween:g, x:theX, y:theY, endVisibility:endVisibility});
|
482
|
+
}
|
483
|
+
else
|
484
|
+
{
|
485
|
+
item.x = theX;
|
486
|
+
item.y = theY;
|
487
|
+
item.visible = endVisibility;
|
488
|
+
}
|
489
|
+
}
|
490
|
+
}
|
491
|
+
// protected function tweenComplete(e:Event):void
|
492
|
+
protected function tweenComplete(g:GTween):void
|
493
|
+
{
|
494
|
+
// not longer need to store it
|
495
|
+
// var g:GTween = e.target as GTween; // the listener is added to the tween
|
496
|
+
var tweenInfo:Object = removeTweenInfo(g.target as MovieClip);
|
497
|
+
if(tweenInfo != null)
|
498
|
+
{
|
499
|
+
(g.target).visible = tweenInfo.endVisibility;
|
500
|
+
}
|
501
|
+
}
|
502
|
+
}
|
503
|
+
}
|
@@ -0,0 +1,144 @@
|
|
1
|
+
/* See the file "LICENSE.txt" for the full license governing this code. */
|
2
|
+
package nm.ui
|
3
|
+
{
|
4
|
+
import flash.filters.DropShadowFilter;
|
5
|
+
import flash.geom.Matrix;
|
6
|
+
import flash.text.TextFormat;
|
7
|
+
import nm.draw.shapes.RectRoundBorder;
|
8
|
+
/**
|
9
|
+
* Default Style for the Window Component
|
10
|
+
*/
|
11
|
+
public class Window extends Window_base
|
12
|
+
{
|
13
|
+
//--------------------------------------------------------------------------
|
14
|
+
//
|
15
|
+
// Constructor
|
16
|
+
//
|
17
|
+
//--------------------------------------------------------------------------
|
18
|
+
/**
|
19
|
+
* Creates a window automatically. The window will take on the x/y coordinates of its parent movie clip.
|
20
|
+
* @param x Number. x coordinate within target to place window's top left corner
|
21
|
+
* @param y Number. y coordinate within target to place window's top left corner
|
22
|
+
* @param w Number. width of window in pixles
|
23
|
+
* @param h Number. Height of window in pixles
|
24
|
+
* @param title String. Title text for the window
|
25
|
+
* @param centered Boolean decides whether or not the window will be centered
|
26
|
+
* @param isModal Boolean flag. Optional. Default: false. True will render a background blocking movie clip over the stage
|
27
|
+
* @param isMovable Boolean flag. Optional. Defaults: false. True will allow the user to drad and drop the window within it's parent (or within the modal background)
|
28
|
+
*/
|
29
|
+
function Window(w:Number, h:Number, title:String, isModal:Boolean = false, isMovable:Boolean = false)
|
30
|
+
{
|
31
|
+
super(NaN, NaN, w, h, title, isModal, isMovable);
|
32
|
+
}
|
33
|
+
//--------------------------------------------------------------------------
|
34
|
+
//
|
35
|
+
// Functions
|
36
|
+
//
|
37
|
+
//--------------------------------------------------------------------------
|
38
|
+
//----------------------------------
|
39
|
+
// styling
|
40
|
+
//----------------------------------
|
41
|
+
/**
|
42
|
+
* Default styles setup
|
43
|
+
*/
|
44
|
+
protected override function styleDefaults():void{
|
45
|
+
super.styleDefaults()
|
46
|
+
/* BORDERS */
|
47
|
+
//Border Params
|
48
|
+
setStyle('borderSpacing', 10); // padding from the edges of the window
|
49
|
+
setStyle('borderStroke', 2);// title bar Frame size
|
50
|
+
setStyle('borderColor', 0x377aa6);
|
51
|
+
setStyle('borderCurve', 6);
|
52
|
+
//Bevel Colors (Discontinued)
|
53
|
+
setStyle('wintL', 0xACACAC);
|
54
|
+
setStyle('winbR', 0xACACAC);
|
55
|
+
/* BODY */
|
56
|
+
//Body Colors
|
57
|
+
setStyle('winf1', 0x404550);
|
58
|
+
setStyle('winf2', 0x404550);
|
59
|
+
//Body Alpha
|
60
|
+
setStyle('wina', .7);
|
61
|
+
//Body Gradient Direction
|
62
|
+
setStyle('winr', 90);
|
63
|
+
/* TITLE BAR */
|
64
|
+
//Title Bar Fill Colors
|
65
|
+
setStyle('tBf1', 0xEEEEEE);
|
66
|
+
setStyle('tBf2', 0xFFFFFF);
|
67
|
+
//Title Bar Border Color?
|
68
|
+
setStyle('tBsC', 0xC1C1C1);
|
69
|
+
//Title Bar Gradient Direction
|
70
|
+
setStyle('tBr', 90);
|
71
|
+
//Title Bar Alpha
|
72
|
+
setStyle('tBa', 0);
|
73
|
+
// Title Bar Height
|
74
|
+
setStyle('titleBarHeight', 30);
|
75
|
+
//Title Bar Font
|
76
|
+
setStyle('titleFormat', new TextFormat("Arial", 16, 0xffffff, true));
|
77
|
+
setStyle('titleEmbedFonts', false);
|
78
|
+
/* OTHER */
|
79
|
+
//Modal (Blackout) Color/Alpha
|
80
|
+
setStyle('bgfill', 0x000000);
|
81
|
+
setStyle('bgalpha', .20);
|
82
|
+
//Effects
|
83
|
+
setStyle('dropShadow', new DropShadowFilter(5, 45, 0x000000, 1, 5, 5, .5, 1));
|
84
|
+
}
|
85
|
+
//----------------------------------
|
86
|
+
// gui drawing functions
|
87
|
+
//----------------------------------
|
88
|
+
/**
|
89
|
+
* Draws the body of the window
|
90
|
+
*/
|
91
|
+
protected override function drawBody():void
|
92
|
+
{
|
93
|
+
super.drawBody()
|
94
|
+
//Draw Window Body
|
95
|
+
var colors:Array = [getStyle('winf1'), getStyle('winf2')];
|
96
|
+
var alphas:Array = [getStyle('wina'), getStyle('wina')];
|
97
|
+
var ratios:Array = [0, 0xFF];
|
98
|
+
var matrix:Matrix = new Matrix()
|
99
|
+
matrix.createGradientBox(width, height, (getStyle('winr')/180)*Math.PI)
|
100
|
+
windowBg.graphics.beginGradientFill("linear", colors, alphas, ratios, matrix);
|
101
|
+
windowBg.graphics.drawRoundRect(0, 0, width, height,getStyle('borderCurve'));
|
102
|
+
//Draw Window Border
|
103
|
+
//RectBevel.draw(windowFr, 0, 0, width, height, getStyle('borderStroke'), getStyle('wintL'), getStyle('winbR')); //Draw beveled edge
|
104
|
+
RectRoundBorder.draw(windowFr,0,0,width,height,getStyle('borderStroke'), getStyle('borderCurve'), getStyle('borderColor'), 1);
|
105
|
+
//Apply drop shadow filter
|
106
|
+
windowBg.filters = [getStyle('dropShadow')];
|
107
|
+
}
|
108
|
+
/**
|
109
|
+
* Draws the tilte bar
|
110
|
+
*/
|
111
|
+
protected override function drawTitleBar():void
|
112
|
+
{
|
113
|
+
super.drawTitleBar();
|
114
|
+
var stroke:int = getStyle('borderStroke')
|
115
|
+
var tBt:int = getStyle('titleBarHeight');
|
116
|
+
var colors:Array = [getStyle('tBf1'), getStyle('tBf2')];
|
117
|
+
var alphas:Array = [getStyle('tBa'), getStyle('tBa')];
|
118
|
+
var ratios:Array = [0, 0xFF];
|
119
|
+
//var matrix = {matrixType:"box", x:stroke, y:stroke, w:width-(stroke*2), h:tBt, r:(getStyle('tBr')/180)*Math.PI};
|
120
|
+
var matrix:Matrix = new Matrix()
|
121
|
+
matrix.createGradientBox(width-(stroke*2), tBt, (getStyle('tBr')/180)*Math.PI)
|
122
|
+
titleBar.graphics.beginGradientFill("linear", colors, alphas, ratios, matrix);
|
123
|
+
titleBar.graphics.drawRect(stroke, stroke, width - (stroke * 2), tBt);
|
124
|
+
titleBar.graphics.beginFill(getStyle('tBsC'),getStyle('tBa'));
|
125
|
+
titleBar.graphics.drawRect(stroke, stroke+tBt, width - (stroke * 2), stroke);
|
126
|
+
}
|
127
|
+
/**
|
128
|
+
* Draws the Background (modal blocking area)
|
129
|
+
*/
|
130
|
+
protected override function drawBg():void
|
131
|
+
{
|
132
|
+
super.drawBg();
|
133
|
+
//Determine parameters for modal (fading background)
|
134
|
+
var rootbound:Boolean = (_modalTarg == root)
|
135
|
+
var bgHeight:Number = (rootbound) ? root.height : _modalTarg.height;
|
136
|
+
var bgWidth:Number = (rootbound) ? root.width : _modalTarg.width;
|
137
|
+
if(modalHeight > 0) bgHeight = modalHeight
|
138
|
+
if(modalWidth > 0) bgWidth = modalWidth
|
139
|
+
//Draw Modal
|
140
|
+
bg.graphics.beginFill(getStyle('bgfill'), getStyle('bgalpha'));
|
141
|
+
bg.graphics.drawRect(0, 0, bgWidth, bgHeight);
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|