2 Replies Latest reply on Jul 6, 2012 12:57 AM by MatteoLegittimo

    Textinput Skin dosent open SoftKeyboard



      im building a skin for my textInput in a Flex Mobile Project.

      But doest open the softKeyboard, just with default skin it's working.


      Alse setting resizeForSoftKeyboard="true" in main application dosent scale!


      Thanks so much

        • 1. Re: Textinput Skin dosent open SoftKeyboard

          Can you post some of your code? I'm working on a Flex Mobile project at the moment as well, and I haven't had any issues with the soft keyboard.

          • 2. Re: Textinput Skin dosent open SoftKeyboard
            MatteoLegittimo Level 1


            thnks for you replay!

            This is my text input skin:


            <?xml version="1.0" encoding="utf-8"?>

            <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"

                    xmlns:s="library://ns.adobe.com/flex/spark" width="180" height="22">

                <!-- host component -->







                        import mx.core.FlexGlobals;



                        protected function textDisplay_focusInHandler(event:FocusEvent):void



                            bg.visible = true

                            currentState = 'focusIn'




                        protected function textDisplay_focusOutHandler(event:FocusEvent):void


                            bg.visible = false






                <!-- states -->


                    <s:State name="disabledWithPrompt" />

                    <s:State name="normalWithPrompt" />

                    <s:State name="disabled" />

                    <s:State name="normal" />

                    <s:State name="focusIn" />




                <!-- SkinParts

                name=promptDisplay, type=spark.core.IDisplayText, required=false

                name=textDisplay, type=spark.core.IEditableText, required=false





                <s:Rect width="100%" height="100%">


                        <s:SolidColorStroke color="0XCCCCCC" joints="miter"/>




                <s:Rect id="bg" width="100%" height="100%" visible="false">       


                        <s:SolidColor color="0XFF0000"/>




                <s:RichEditableText id="textDisplay"



                                    left="5" right="5" top="5" bottom="5" color.focusIn="0XFFFFFF" focusIn="textDisplay_focusInHandler(event)" focusOut="textDisplay_focusOutHandler(event)" />


                <!--- Defines the Label that is used for prompt text. The includeInLayout property is false so the prompt text does not affect measurement. -->

                <s:Label id="promptDisplay" maxDisplayedLines="1"


                         mouseEnabled="false" mouseChildren="false"


                         includeInLayout="false" />





            Let me know

            Thanks a lot!