Adobe air mobile - softKeyboardType is not working when using skinClass to allow scrolling?

I am trying to set the softKeyboardType to email but when ever i use skinClass="spark.skins.mobile.TextAreaSkin" it doesn't change it but when i take off skinClass="spark.skins.mobile.TextAreaSkin" it does work. The problem is i need the skinClass="spark.skins.mobile.TextAreaSkin" class to allow my application so scroll with out it the text does not stay with in the bounds of the text input boxes. Has anyone seen this problem or another fix the the scrolling problem?
Code examples
<s:TextInput softKeyboardType="email" id="id1" width="100%" skinClass="spark.skins.mobile.TextInputSkin" />
<s:TextArea softKeyboardType="email" id="id2" height="400" width="100%" skinClass="spark.skins.mobile.TextAreaSkin" />
Thank for the help,
Justin

The main problem we are all seeing is that its not hooking into the scroller, as this is documented not to work in a scrollable environment
However try something like this, still not perfect (as i see a flicker) but it should get you going.
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
    xmlns:s="library://ns.adobe.com/flex/spark"
    applicationDPI="320"
    xmlns:local="*"
          applicationComplete="init()">
  <fx:Script>
                    <![CDATA[
                              import mx.events.PropertyChangeEvent;
                              import spark.skins.mobile.StageTextInputSkin;
                              import spark.skins.mobile.TextInputSkin;
                              protected function init():void {
                                        addHandlers(myScroller, myTI);
                              protected function setStageTextInputSkin(ti:TextInput):void {
  //FIXME could do with a check to ensure that the skin isn't being set many times when it doesn't need to
                                        var myTIText:String = ti.text;
                                        ti.setStyle("skinClass",Class(StageTextInputSkin));
                                        ti.returnKeyLabel = ReturnKeyLabel.DONE;
                                        ti.autoCapitalize = "sentence";
                                        ti.softKeyboardType = SoftKeyboardType.NUMBER;
                                        ti.text = myTIText;
                              protected function setTextInputSkin(ti:TextInput):void {
  //FIXME could do with a check to ensure that the skin isn't being set many times when it doesn't need to
                                        ti.setStyle("skinClass",Class(TextInputSkin));
                              protected function addHandlers(scroller:Scroller, ti:TextInput):void {
  // ====================== ADD LISTENERS FOR WHEN WE NEED THE STAGETEXTINPUT ===========================================
                                        ti.addEventListener(FocusEvent.FOCUS_IN, function(event:FocusEvent=null):void { setStageTextInputSkin(ti) });
  // ====================== ADD LISTENERS FOR WHEN WE NEED THE TEXTINPUT ===========================================
                                        addEventListener(SoftKeyboardEvent.SOFT_KEYBOARD_DEACTIVATE, function(event:SoftKeyboardEvent=null):void { setTextInputSkin(ti) });
                                        ti.addEventListener(FocusEvent.FOCUS_OUT, function(event:FocusEvent=null):void { setTextInputSkin(ti) });
  //http://stackoverflow.com/questions/4390725/flex-4-scroller/4425091#4425091
                                        scroller.viewport.addEventListener(PropertyChangeEvent.PROPERTY_CHANG E, function(e:PropertyChangeEvent):void {
                                                  if (e.source == e.target && e.property == "verticalScrollPosition")
                                                            setTextInputSkin(ti);
                                                  if (e.source == e.target && e.property == "horizontalScrollPosition")
                                                            setTextInputSkin(ti);
                    ]]>
  </fx:Script>
    <s:Scroller width="100%"
        height="100%"
        verticalScrollPolicy="on"
                    id="myScroller">
        <s:Group width="100%"
            height="100%">
  <s:layout>
  <s:VerticalLayout/>
  </s:layout>
            <s:TextInput id="myTI" text="hello"
                softKeyboardType="number"
                                        skinClass="spark.skins.mobile.TextInputSkin"/>
        </s:Group>
    </s:Scroller>
</s:Application>

Similar Messages

  • How do I set up a mail group on mac mail?  All the advise on line seems to refer to 'address book' and I only have 'contacts'.  The guidance does not work when using 'contacts' - can anyone help me?

    How do I set up a mail group on mac mail?  All the advise on line seems to refer to 'address book' and I only have 'contacts'.  The guidance does not work when using 'contacts' - can anyone help me?

    Create a group and send mail
    http://www.dummies.com/how-to/content/how-to-create-a-basic-contact-group-in-mac -os-x-li.html
    http://www.macworld.com/article/1165582/how_to_email_groups_with_mail.html
    Best.

  • Photoshop CC. Colour selection not working when using alt and brush.

    Hi, Photoshop CC. Windows 8.1 64 bit. Colour selection not working when using alt and brush. I have tried rebooting and other things like closing swatch panel etc.
    The alt key is otherwise OK.  It's not the recent upgrade from Win 8 to 8.1 (5 days ago) because the colour selection facility was working yesterday. Any ideas.

    I'd say things sound desperate enough to try resetting Preferences
    Reset Preferences
    Windows — Hold down Shift Ctrl Alt immediately after starting Photoshop
    Mac — Hold down Shift Cmd Opt immediately after starting Photoshop
    If that fails, we need to know your operating system?
    Do you have a full CC subscription, or by apps do you mean Photoshop, Bridge and Lightroom?
    Another other information that might pertain ?

  • Siri does not work when used for calling a contact function

    Siri does not work when used for calling a contact function

    Very strange, try to turn off/on your iPhone. Or make a reset (home+power button)...
    If it continues try to restore it.

  • HT204168 touch screen function not working when using facetime

    Why is my iPad touch screen function not working when using FaceTime?

    Hi megascones,
    I apologize, I'm a bit unclear on the exact nature or scope of the issue you are describing. If you are having issues with the touch screen on your iPad, you may find the troubleshooting steps outlined in the following article helpful:
    If the screen on your iPhone, iPad, or iPod touch doesn't respond to touch - Apple Support
    Regards,
    - Brenden

  • Why is my touch screen function not working when using facetime

    Why is my touch screen function not working when using facetime

    Hello megascones,
    After reviewing your post, it sounds like the screen is not responding to touch in one app. I would recommend that you read this article, it may be able to help the issue.
    If the screen on your iPhone, iPad, or iPod touch doesn't respond to touch - Apple Support
    Restart your device. If you can't restart, reset your device.
    Thanks for using Apple Support Communities.
    Have a nice day,
    Mario

  • Lenovo S8-50LC Wlan(WiFi) Does not work when use Sim Cart(3G)

    Hi
    Tablet Lenovo S8-50LC
    Wlan(WiFi) Does not work when use Sim Cart(3G).
    What is the solution for this problem?
    Build Number : TABS8-50LC_S000200_150121_ROW
    SoftWarw Version : TABS8-50LC_150121

    Right, but if you have the SIM in the tablet and you put the tablet in airplane mode, does wifi work then? If so, it may be a bad SIM. Do you have another SIM you can try?

  • Keyboard backlighting not working when using Windows in Boot Camp

    Hi, I'm posting this for a friend with a new Macbook Air. He says that his keyboard backlighting does not work when he is using it for Windows (don't know which, but probably Vista). Any ideas why? Thanks. Gary

    Install all the drivers needed when running boot camp - try for example inserting a DVD - then press the eject key - See if it comes out - If it doesn't install all the drivers - try Control Panel - If not try re-installing your version of Windows.

  • Why does diadem intellisense not work when using scriptinclude or for global object

    I have a script with a different classes in it (scripted 1).  When I create an object of a class in the script 1 intellisense works.  Intellisense is when you type name of the object created from a class it shows all the possible variables and functions contained in that object.  But when I write another script and use scriptinclude(scripted 1) the intellisense does not work.  I also tried a global object and intesllisense does not work.  Is there a way to get intellisense to work when using scriptinclude?  I am working with version 2012. 

    Here is more information on the issue.
    I have a script with a different classes in it (scripted 1).  When I create an object of a class in the script 1 intellisense works.  Intellisense is when you type name of the object created from a class it shows all the possible variables and functions contained in that object.  But when I write another script and use scriptinclude(scripted 1) the intellisense does not work.  I also tried a global object and intesllisense does not work.  Is there a way to get intellisense to work when using scriptinclude?  I am working with version 2012. 
    'Test.vbs
    class test
        public function test1()
             msgbox("test1")
        end function
        public function test2()
             msgbox("test2")
        end function
    end class
    'now create a object of the class
    dim oTest
    set oTest=new Test
    'now when you type oTest. you get the following functions to choose from
    oTest.test1
            .test2
    Now if you remove the object from Test.vbs and create a main program with scriptinclude(Test.vbs) it will not show the two functions
    'Main.vbs
    Option Explicit  'Forces the explicit declaration of all the variables in a script.
    call scriptinclude("c:\1atmp\Test.vbs")
    dim oTest
    set oTest=new test
    'now when you type oTest. it shows none of the functions in the object oTest
    oTest.

  • Microphone not working when using a phone call, Microphone not working when using a phone call

    Microphone is not working when i use my iphone 4, first day when i installed a iOS 7 , was all good, second day this happened. Please help me. When i use a Viber microphone working. I think this is not a hardwear problem.

    Hi Mike
    That was very helpful thank you.
    I did as you suggested and found the "switch" was already turned on green. I swiched it off waited a while then turned it back on and microphone was back in use in viber. I have a sneaky feeling I may have to do this again in the future.  I am not aware that I did anything that led to the microphone going off, but having said that I have only had the phone for a few days so may have done something when checking it out.
    The phone has been a lot of fun after replacing my ancient Nokia with it. That Nokia worked in Morse code!
    Best wishes
    Rob

  • Elements 11 - Brush tool not working when using layer mask

    My brush tool won't work when using layer mask in PS Elements 11. I also have Elements version 10 installed and there it works fine. If I do the exact same proces in version 11 nothing happens.
    Is this a bug or has something changed in the proces?
    Please help.
    Thanks.

      Make sure you have the mask thumbnail selected - it will be highlighted in blue.

  • Enter Key Not Working When Using Text Tool

    For some reason, my enter key has stopped working when using the text tool.  Instead of making a soft return to a new line, it simply commits the type. What is going on here?
    I'm using a desktop and CS3.

    there are 2 enter keys in key board
    if u enter main key board enter, sentence will go to next line
    In case u enter the key  available in  rightside of the key board , in the cluster of numericals, the type tool is committed.

  • Flash, Adobe Air, Time Machine, Safari not  working with Snow Leopard

    Really need some help with this.
    Did an archive and install of Leopard then installed Snow Leopard. No problems yet.
    90% of Video sites would not work. Uninstalled and reinstalled Flash. Uninstalled ShockWave, could not reinstall with 10.6.1.
    Attempt to install adobe air, received this message: "couldn't write the application to hard drive - please verify and try again." performed verify disk, disk permissions, repair permissions all ok.
    Attempted to install Air again, same message.
    Tried to use Time Machine to open Safari from a week ago, received message: I did not have permission.
    Using Macbook Pro, 2g memory, 80g hd, with 42g free.
    Backed up on ext. HD,
    Oh, one more, getting a lot of spinning wheels when using Safari that causes a lockup and hard re-start.
    I have an expensive piece of software that uses adobe air and I create videos for my business and I'm not able to do so now.
    Can anyone give me any ideas what I can do.
    Thanks,
    Z

    After a couple of days of problems with Snow Leopard and flash, safari etc... I figured out the problem is with my account.
    I created a new admin account and everything seems to be working. Well almost.
    a couple of things I've noticed are right clicking on dock icons does nothing, no option to quit or keep in dock.
    Apple Techs', had me change my account months ago to fix a problem with safari crashing. It didn't really work and more problems resulted.
    *So now my big question is: How do I move need items over to the new account.* I don't want to move everything over as I might bring what caused the problem in the first place.
    What I need are several apps,(like ilife, iwork, firefox, devonthink, 1password etc.) downloads, desktop, docs, files, and book marks.
    *What is the best way for me to do this?* Is there anything I need to do re: Snow Leopard on the new account?
    I feel like I have a new and functioning Mac again just around the corner.
    Looking for your help, thanks,
    Z

  • Cannot Uninstall Adobe Air - tried everything - Pandora not working.

    I cannot update AdobeAir and now pandora will not work. I have been trying to update for months.
    There is an unspecified error each time I try.
    So now I am trying to uninstall AIR, so I can attempt to reinstall.  I get the same error when I try to uninstall.
    I am am the admistrator on my machine - and I have tried to uninstall as administrator. No difference.
    I tried to uninstall at the CMD line - no difference.
    I am on my work maching - Windows XP Professional Version 2002 - SP3
    AIR is version 1.5.3.9130
    Please help!

    Hi guys,
    Could you try uninstalling AIR using the Windows Installer Cleanup Utility?  Details on this app can be found on this post.  If that does not solve the problem, the next step would be to examine your AIR installer logs.  Here are the details for this procedure:
    1. Ensure that viewing hidden folders is enabled.  Instructions can be found on Microsoft's site:
    Windows 7, Vista, XP
    2. Navigate to the following folder (replace username with your login name):
    Windows 7:  C:\Users\username\AppData\Local\Adobe\AIR\logs
    Vista:  C:\Users\ username\AppData\Local\Adobe\AIR\logs
    XP:  C:\Documents and Settings\username\Local Settings\Application Data\Adobe\AIR\logs
    3. Please attach the install.log to your forum post or open the log file with Notepad or your favorite text editor and select all and copy/paste.
    4. In some situations the AIR installer will fail during the MSI portion of the install.  You can determine if this occurred by searching the Install.log text for "Error occurred during msi install operation".  If this text is found, please enable and locate the MSI log using this Microsoft document and include it, along with the AIR Install.log when reporting the install issue.
    How to enable Windows Installer logging
    Once MSI logging is enabled, please re-run the AIR Installer to generate the MSI Log.
    Thanks,
    Chris

  • Ipad air 2 touch id not working when plugged in

    A very strange problem tonight.
    After work, I grabbed my iPad Air 2 which was plugged in to the Apple Charger next to my chair.  Touched the home button to open it - nothing happened.  Tried again.  Nothing happened.  Entered the code and the IPad Air opened.
    After dinner, same thing.  Touch ID did not work with any of 3 fingers.  With the code - it opened.  So, I decided to delete and redo the finger scans.  Turned off - no change - Touch ID not working.
    To get a better grip, I unplugged the Apple charger.  Viola!  Touch ID worked.  Plugged it back in.  Touch ID stops working.
    Powder off, power on.  Touch ID works unplugged but not plugged in.  I have done the Reset All Settings.  No change.
    At a loss.  This is not a 3rd party charger - it is the Apple one that came with the iPad Air.  Anyone got any ideas?
    Tim

    Make sure the usb wall adapter is from Apple too.
    if your using a generic wall adapter and original Apple lightning cable,
    the touch ID won't work.
    IF you use both apple wall adapter and lightning cable
    the touch id should work.
    hopes this helps

Maybe you are looking for

  • Problem in calling abap editor with the program name in Web Dynpro ABAP

    Hi, I have to caal ABAP Editor screen with the display of program after clicking a button from web dynpro abap application. I am able to call the ABAP Editor initial screen, but i want the editor display screen with a program. How to do that? Please

  • No Sales Order Item number in PCA document on Delivery

    Hi, We have an issue as below: Sales Order (Not a CO object)>Delivery is done> We cannot see Sales Order item number in the PCA document whereas it appears in Accounting Document. After Billing, a CO-PA document also generated. Thanks to provide any

  • Gmail apple mail password

    I am using Apple mail to send/receive mail from Gmail Account, it was working properly. Yesterday I changed my gmail pasword from website for securiy, and then my Apple mail send a warning. So naturally, I changed my password too in Apple Mail Gmail

  • Using my Mac as alarm clock

    Hi- I notice in the Sys Prefs under Energy saver you can get the Mac to Startup (or Shutdown) at specific times. The problem is you can only set Weekends, Weekdays, Every Day or ONE day in the week. I work Saturdays but not Mondays, so I need to set

  • Error:  Msg1: This Supplier Number already exists

    Hi All, I have created a procedure which search for a vendor and if the vendor or supplier doesn't exist then it will create that Vendor or Supplier using the API AP_VENDOR_PUB_PKG.Create_Vendor. I am using it as an concurrent program. Everything is