Skip navigation
adrian santuario
Currently Being Moderated

StageWebView (Air) issue on iOS when typing into a text field

Dec 15, 2011 10:39 AM

Tags: #air #as3 #mobile #ios

I am using Adobe Flash Professional CS5.5 to build an iPhone app with AIR 3.

I am implementing the FacebookMobile flash API which uses a StageWebView to display the login form. Everything works fine when I test my app locally (on my computer) but the app always crashes on iPhone as soon as I click on the "Email" text field to type my email and be able to login. The iPhone's keyboard is shown and then my app simply freeze forever (I don't have time to write any character in the text field).

Am I doing something wrong with my StageWebView? I can't figure out why this is happening.

public var webView:StageWebView;

Here is the code where I initialize the StageWebView :

webView = new StageWebView();
webView
.viewPort = new Rectangle( 0, 0, stage.stageWidth, stage.stageHeight );
FacebookMobile.login(handleLogin, stage, permissions, webView);

Any help would be appreciated.

 
Replies
  • Currently Being Moderated
    Dec 21, 2011 8:07 PM   in reply to adrian santuario

    Hi, did you solve this problem?

    It doesn't sound like the stagewebview is the problem, but rather your input field which you don't show.

    Perhaps at a guess, set the focus to your email address field.

     

    need a bit more code to work this one out.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 26, 2012 2:23 PM   in reply to rachalmers

    The snippet looks fine.

     

    I don't know if you did this before though:

     

    FacebookMobile.init("app key goes here", initHandller);

     

    alsom make sure stage isn't null?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points