Android 4 Problem - StageWebView cutting off button on same View

So I'm trying to pull off something similar to the example here: http://cookbooks.adobe.com/post_Create_a_basic_web_browser_with_StageWebView-18850.html . Basically, a native browser view with a few Flex controls over top. Problem is, I've been running into a lot of display problems on Android 4 devices specifically. As far as I can tell, the StageWebView seems to be preventing the button overhead from being rendered in part or *at all* - as in, the button doesn't show up at all. It's just black.
See for yourselves. Here's a screenshot (the test page has a yellow background):
If I touch the screen or the web view, the button will (usually) abruptly show up above the page, where it's supposed to be:
Anyone else seen anything like this before? Any ideas what it could be? Or what could be a fix? Project is being developed in Flash Builder 4.6 with the 4.6 SDK. Screenshots are from a Google Nexus 7 tablet (Android version 4.1.2, Adobe AIR version 3.4.0.254).

Uhh... anyone?

Similar Messages

  • Problem with Android 4 StageWebView cutting off/covering up buttons on same View

    So I'm trying to pull off something similar to the example here: http://cookbooks.adobe.com/post_Create_a_basic_web_browser_with_StageWebView-18850.html. Basically, a native browser view with a few Flex controls over top. Problem is, I've been running into a lot of display problems on Android 4 devices specifically. As far as I can tell, the StageWebView seems to be preventing the button overhead from being rendered in part or *at all* - as in, the button doesn't show up at all. It's just black.
    See for yourselves. Here's a screenshot (the test page has a yellow background):
    If I touch the screen or the web view, the button will (usually) abruptly show up above the page, where it's supposed to be:
    Anyone else seen anything like this before? Any ideas what it could be?
    Additional information for those who might want it:
    - Project is being developed in Flash Builder 4.6 with the 4.6 SDK. Screenshots are from a Google Nexus 7 tablet (Android version 4.1.2, Adobe AIR version 3.4.0.254).
    - the view in this case is an ActionScript class extending View with a skin. Here's the relevant code:
    [SkinState("ready")]
    [SkinState("loading")]
    public class LogInWebView extends View
              [SkinPart(required="false")]
              public var previousButton:Button;
              private var browser:StageWebView;
              private var url:String;
              private var isFirstPageLoaded:Boolean;
              public function LogInWebView()
                        super();
                        isFirstPageLoaded = false;
              override public function set data(value:Object):void {
                        url = value.url;
                        invalidateProperties();
              // protected functions
              override protected function createChildren():void {
                        super.createChildren();
                        if (url) {
                                  browser = new StageWebView();
                                  browser.viewPort = new Rectangle(0, 0, stage.stageWidth, stage.stageHeight);
                                  browser.addEventListener(Event.COMPLETE, onFirstPageLoaded, false, 0, true);
                                  browser.loadURL(url);
              override protected function partAdded(partName:String, instance:Object):void {
                        super.partAdded(partName, instance);
                        if (instance === previousButton) {
                                  previousButton.addEventListener(MouseEvent.CLICK, onPreviousButtonClick, false, 0, true);
                                  if (browser) {
                                            browser.viewPort = new Rectangle(0, previousButton.height, stage.stageWidth, stage.stageHeight-previousButton.height);
              override protected function commitProperties():void {
                        if (isFirstPageLoaded && currentState != "ready" && browser) {
                                  // display StageWebView now that it's loaded
                                  skin.currentState = "ready";
                                  browser.stage = this.stage;
                        } else if (currentState != "loading") {
                                  skin.currentState = "loading";
                        super.commitProperties();
              // event listeners
              private function onFirstPageLoaded(event:Event):void
                        browser.removeEventListener(Event.COMPLETE, onFirstPageLoaded);
                        isFirstPageLoaded = true;
                        invalidateProperties();
    - note: the button ONLY appears in state "ready" - it's not in state "loading."
    Your thoughts?

    Hi,
    Not sure what your specific problem is, but I have encountered no problems at all by going a stage further with my implementation - it is based on http://soenkerohde.com/?s=stagewebview but I extended it to update on dimension changes of the container.
    EG:
    [code]
    override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void {
    super.updateDisplayList(unscaledWidth,unscaledHeight);
    updateBrowser();
    protected function updateBrowser(event:ResizeEvent=null):void {
    if(myStage && stageWebView) {
      var offsets:Point = new Point();
      offsets = this.localToGlobal(offsets);
      stageWebView.viewPort = new Rectangle(offsets.x, offsets.y, unscaledWidth, unscaledHeight);
    [/code]
    Seems to work for me, anyway. Hope it does for you too.
    G

  • I got new iphone it had a problem of sleep/off button not working i replaced from care. now the replaced product had a problem that home button not working properly now what i want to do

    Igot new iphone it had a problem of sleep/off button not working i replaced from care. now the replaced product had a problem that home button not working properly now what i want to do

    Hello, krishna kumar.j. 
    Thank you for visiting Apple Support Communities.  
    I understand that you are experiencing and issue with your Home button.  Here are the troubleshooting steps when experiencing this.  
    Get help with buttons and switches on your iPhone, iPad, or iPod touch
    http://support.apple.com/en-us/HT203017
    Cheers, 
    Jason H.  

  • Are the sleep button and on/off button the same on ipad?

    Are the sleep button and on/off button the same on ipads?

    Yes.  This is the same for iPad/iPhone/iPod Touch.  The button on the top edge of the screen is the sleep, power on/off button

  • Two problems: showMessageDialog cut off when it renders at all

    I'm using a dialog box with the following code:
    JOptionPane.showMessageDialog(null, "The filename must end with '.csv'", "Save File Error", JOptionPane.ERROR_MESSAGE);
    Sometimes, seemingly at random, the message and the OK button don't show up. Just the dialog box and the title. Moving the mouse over it makes the OK button show up. Has anyone else experienced this and is there a way to fix it?
    Also, when the message does show up, the last couple of characters are often cut off, as if there's not enough room for them. Is there any way to make sure that the dialog box will be big enough to hold the message?
    Thanks,
    Chris Funkhouser

    I have a similar problem. I have been converting an old Java application from JDK 1.1.8 (and Swing 1.03) to JDK 1.3.1. One JPanel contains other JPanels that contain a group of JButtons, a JTable, and some JComboBoxes. When I select a row in the JTable and press the Delete button, a confirmation dialog is shown:
    int confirmation = JOptionPane.showConfirmDialog
    (Joezilla.getFrame(),
    "Are you sure you want to\ndelete selected rows?",
    "Confirm",
    JOptionPane.YES_NO_OPTION,
    JOptionPane.PLAIN_MESSAGE);
    The dialog comes up with no prompt text displayed, and only the Yes button is displayed. The No button will appear if you move the mouse over it.

  • Create AAC version problems - songs cut off

    I am running the most recent version of iTunes on my laptop (11.3.1?...my laptop is at home, and I'm not) on Windows 8, but I think I've been having this problem since I was on Windows 7, and on previous versions of iTunes as well.
    I'm importing a bunch of MP3 files into my library. There doesn't seem to be anything special with them...usually CBR @ 320kbps (they are music I've downloaded directly from artists' websites).
    However, I'm a little OCD, so I'd like all of my music in iTunes to be AAC. So I try converting these MP3s to AAC using the built-in function. I use the iTunes plus encoder, but the problem seems to happen with the lower quality settings as well. The conversion seems to work properly, however every AAC version of the song that gets created is exactly 3 minutes 37 seconds long. If the original song is longer than that, it gets cut off at that point. I don't recall offhand what happens if the original song is shorter than 3:37...I don't know if I had any that were shorter than that to begin with to test.
    Obviously there isn't a "Make every song 3:37" setting, so I doubt it's a setting that is mis-set. I'm guessing there's something else on my laptop that is interfering with iTunes working properly, but for the life of me I couldn't tell what. When I upgraded from Windows 7 to 8, it was a clean install, so there shouldn't be anything lingering from that. Also, I created a new library when I did that upgrade, so I doubt there was anything that came over with that. So it's possible it's something that I may have installed after I set the laptop up, but I'd have no way of telling other than wiping, reinstalling, and testing after every app has been installed.

    neilp316 wrote:
    I am running the most recent version of iTunes on my laptop (11.3.1?...my laptop is at home, and I'm not) on Windows 8, but I think I've been having this problem since I was on Windows 7, and on previous versions of iTunes as well.
    I'm importing a bunch of MP3 files into my library. There doesn't seem to be anything special with them...usually CBR @ 320kbps (they are music I've downloaded directly from artists' websites).
    However, I'm a little OCD, so I'd like all of my music in iTunes to be AAC. So I try converting these MP3s to AAC using the built-in function. I use the iTunes plus encoder, but the problem seems to happen with the lower quality settings as well. The conversion seems to work properly, however every AAC version of the song that gets created is exactly 3 minutes 37 seconds long. If the original song is longer than that, it gets cut off at that point. I don't recall offhand what happens if the original song is shorter than 3:37...I don't know if I had any that were shorter than that to begin with to test.
    Obviously there isn't a "Make every song 3:37" setting, so I doubt it's a setting that is mis-set. I'm guessing there's something else on my laptop that is interfering with iTunes working properly, but for the life of me I couldn't tell what. When I upgraded from Windows 7 to 8, it was a clean install, so there shouldn't be anything lingering from that. Also, I created a new library when I did that upgrade, so I doubt there was anything that came over with that. So it's possible it's something that I may have installed after I set the laptop up, but I'd have no way of telling other than wiping, reinstalling, and testing after every app has been installed.
    Neil,
    It is an iTunes bug.  There have been various versions of that bug reported here.  It occurs more often with VBR, but you are seeing it with CBR.
    However, I STRONGLY suggest that you leave your MP3/320s alone.  OCD or no, there is absolutely no advantage to the conversion.  Virtually anything that can handle AAC can play MP3 (and the reverse is not at all true).  Worse, the conversion itself has the potential to introduce audio degradation, which is probably not what you want.
    Or, if you really must do the conversion, use a competent 3rd party conversion program such as Switch.

  • Another problem - phone cuts off incoming calls

    Has anyone else had issues since upgrading to iOS4 or at any other time with incoming calls being cut off just a second or so after the phone starts ringing? I've had this happen twice to me today although I've never had the problem before. I know there've been issues with 3GS handsets cutting off calls since the upgrade but I've not seen it mentioned with regards to the 3G. Anyone else experienced this at all?

    I'm sorry for misunderstanding you, but you said she went to the Apple store and the third time she bought a new phone. Did the new phone work then? Is the issue still persisting on the old device? That's where I'm confused. Did she get the device replaced or just buy a new phone and the problem is still happening on the old device.

  • Problem in cut off value key calculation

    Dear Experts,
    We have assigned a cut off key with 5% in our depreciation key with tick on " Scrap value deduction from base value".
    We have made a service entry sheet on 13/12/2014. On the same day we have reversed that SES. But system is taking the effect of cut off value key on depreciation calculation in case of original service entry sheet only. System is not taking effect of cut off value key on reversal of SES. Because of this there is a difference between depreciation posted through SES and reversal of SES. Ideally these ( depreciation posted through original SES and depreciation posted through reversal of SES) should be knock off.
    I am not understanding whether this is standard behaviour of SAP or we are missing something. For better understanding I am attaching the screen shot of AW01N of asset.
    Regards,
    Ankit K. Agarwal

    Hi Ankit,
    System definitely consider scrap value for reversal also. I did testing it is picking. Can you check once again the depreciation posted.
    Regards,
    Mukthar

  • Having problems w on/off button on 4620LE

    Is it ok to leave the Jetpack 4620LE plugged into the wall charger and turned on 24x7?
    The on/off button is difficult to use.  It is rubber and is not easy to use when trying to turn the device on or off.
    Our reception and performance is fine. Just worried on whether or not
    it is good for the device to be always "on".
    Thanks for your help.

    Thank you for answering my question John. Its nice to know that I can leave it on for extended periods of time.  Our problem really is that it is so difficult to turn on and off. To turn it off we have resorted to removing the battery.. not an ideal solution.  To turn it on, it requires multiple efforts of pushing on the on/off button -- usually using my fingernail on an edge.. is what seems to work.  The button is not hard, it is a soft rubber. Wondering why.
    Was hoping to know whether or not this is a design defect? or something that I could get repaired.
    As of now, we leave it on the charger and plugged in pretty much 24x7. 
    Thank you again.
    Any other comments on how to more easily turn it on and off?

  • Problem displaying the output in the same view

    hi Gurus,
    I have developed an web dynrpo application and have three views, in the first view I am having an input field from which I am calling a BAPI by giving that input field value as input to the BAPI.
    Now is it possible to display the output also retrived from the BAPI on the same view.
    Thanks and regards
    kris

    hi LM,
    Thanks for your fast response.
    I think I was not clear in explaining my problem.
    I have a view in which I have an input field which is the input to the BAPI, now on entering the value in the input field I have a submit button, on clicking the BAPI should be executed and also the the output should be displayed on the same view.
    Now regarding the mapping both the input and output are in the same context, would that a problem.
    And also after getting the output from the BAPI I have to do some validations based on the output from the BAPI and get some message printed on the view.
    Please help me in this issue.
    Thanks and regards
    kris

  • My iPhone 4 is out of warranty however I have always had problems getting cut off when calling and bad reception my provider has proved that their network is stable and suggested I contact apple

    I have always had problems with my iPhone O2 network
    It has always cut calls  in the middle of conversations and reception has never being good
    I spoke to O2 and have had new sim cards which have not helped
    Any ideas

    GregMayne wrote:
    i figure it is the logic board. and no it has never been changed. yes i have the box, the code. i keep everything for situations just like these and somehow they still try to **** me over.
    Do this.
    Go to the Apple Support page and type in your serial number. When the screen comes up showing that Serial number having Applecare extended warranty take a screen shot of it or Print it out to a PDF file and then Print a Hard Copy of either of those things. Take that with you when you take your Mac in to be looked at.
    Good Luck with the Lenovo. I hear they are the same quality as when IBM was making them. Personally I have always used Dell Business Class notebooks and have never had any problems with them. Still have one that is going on 11 years old and it still runs as good as the day I bought it, actually a little better because I've upgrade the CPU, GPU. RAM and HDD.

  • Problem in Adding two buttons under same column header (in JTable)

    Hi,
    I have a JTable and to a particular column i want to add two buttons.
    Here the two buttons should be under the same column header and i need to add listners to these.
    Any idea how to do this?
    Thanks & regards
    Neel

    Of course as your header is drawn by a renderer, the buttons don't actually work, but you can listen for mouse clicks within the area of the header and see which button the mouse position was over.
    See the Java Table Sorter Demo code for how to add a mouse listener to the header...
    http://java.sun.com/docs/books/tutorial/uiswing/components/example-1dot4/index.html#TableSorterDemo
    ....and from there you should be able to determine where in the component the click occured by using the getX() and getY() methods of the MouseEvent to determine which button in the renderer component was clicked. Use something like Rectangle.contains() to match the click location against the buttons.

  • HT4623 My iPhone 4 apps that already have been downloaded cannot open I have tried everything from pressing the home and the on/off button at same time to reboot and deleting the apps and reinstalling then but nothing is working any ideas?

    I cannot add image I don't know how to sorry

    Hi teinefob9,
    So let me get this straight. Are you saying that when attempting to access applications that you have downloaded to your iPhone, they don't open at all no matter how much you tap on them?

  • Song Titles Get Cut Off

    I have decided to convert all of the music on my computer from MP3 to AAC format, but when i convert songs the titles tend to be cut off after 35 characters or less. A good portion of my music has rather long names in the file titles because some of them have either those featured on the song or the name of the album within the file title while they are MP3, but after having converted them to AAC this causes an inconvenience because the title will be cut off at odd places such as just after the "artist - album title" or for example if the song title itself was "portion of the song title" the newly created AAC file will only display "artist - album title - portio" rather than "artist - album title - portion of the song title" as would be preferred. I have tried turning of the option of "Automatically retrieve CD track names from the Internet" and this has not helped at all.
    Is the shortening of the song titles simply an issue that I will just have to live with or is there some other option/possibly downloadable patch that could stop this from happening to my selection of music? I would love to convert the music to AAC but i also enjoy not having sore eyes and a headache from tedious tasks like copying and pasting the song names from a website into the file names for hours. Any help would be greatly appreciated.

    it wouldnt be such a problem if the conversion process just cut out the album title in the name of the file, but it's the fact that the album title remains part of the file title and the song name will be cut off instead so when viewing the files in the folder they all have either the exact same name minus and appended number or they all have only a portion of the title to the track

  • Share window says my footage is 100% shared but video is cut off prematurely.

    I finished a segment of a wedding video this week.  I used a compressor bundle to export that includes both the Dolby Digital for DVD (for sound) and the MPEG-2 for DVD (for the video).  The share window says the process is 100% complete.  iMac running Mavericks did not "sleep" or anything during the compression period.  HOWEVER, when I bring the project in to DVD Studio Pro the audio is complete (the audio segment always compresses first [and quickly] anyway) but the video segment is cut off about 2/3 the way through.  I trash and double trash the segments... reshare.... same problem!   Never had any problem with this sharing before.  Full project is 3.6 GB to be burned to a 4.7 GB DVD.  Please advise!!

    Okay, this was an odd fix.  Apparently the m2v was sharing through compressor completely each time.  When I brought it into DVD Studio Pro it was cut off at the same place each time.  I viewed it in the Track tab of my DVD Studio Pro project and observed each time that the m2v was shorter than the AC3 audio in the viewer.  Finally, and I don't know for what reason, I just stretched the m2v clip out and there it all was!!  Hope this helps someone else that's as clueless as I was!

Maybe you are looking for

  • J2EE Server unable to start

    Hi, first of all, i'm really new to SAP NW. Today I started installing the Sneak Preview of SAP NetWeaver 2004 7.0 SP9 JavaStack on my Virtual Machine (Windows2003Server, J2SE 1.4.2.09) and it worked fine. After installation I started the SAP Managem

  • Problems viewing html from interactive swf export

    I have created a student manual in InDesign CS5 that I need to email to our students.  I exported it as an swf and also created an html.  I tried to email the html but it won't open from the email.  It will, however open on my computer.  The swf file

  • IWork 09 Family Pack license

    I recently purchased an iWork Family pack for use on my three macs. I would like to allow my niece in college to also use this software. Do I have to mail her the original disk, or is there a work-around, such as a family pack serial number?, She is

  • Acrobat Reader XI - Acrobat failed to connect to a DDE Server

    I have recently purchased a new computer running Windows 8 and have installed Acrobat Reader XI. When trying to open pdf file get Fatal Error (Acrobat failed to connect to a DDE server) Any suggestions?

  • Transfering Files using Sockets

    Hello, im new to Java network. Im trying to build a client-server application that reads a file, converts it to bytes and writes it to socket. A server application then gets the bytes, and writes the file to the remote location. It seems whatever i d