Skip to main content
Participant
December 15, 2011
Question

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

  • December 15, 2011
  • 1 reply
  • 1301 views

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.

This topic has been closed for replies.

1 reply

Known Participant
December 22, 2011

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.

Known Participant
March 26, 2012

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?