Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Contributor
Posts: 48
Registered: ‎09-08-2013
My Device: Z10
My Carrier: None
Accepted Solution

Flash apps crashing in 10.2 when input text is used

[ Edited ]

All my flash apps, since the 10.2.1.537 upgrade will crash whenever the input text is touched. The soft keyboard opens and the app crashes immediately leaving me with the OS icons.

 

this is not only happening in a new game I am developing but in every  game I have developed and currently selling online.

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Flash apps crashing in 10.2 when input text is used

Which text input control are you using?
Have you run it in debugger to see where it is crashing?
Contributor
Posts: 48
Registered: ‎09-08-2013
My Device: Z10
My Carrier: None

Re: Flash apps crashing in 10.2 when input text is used

I'm using standard Actionscript 3.0

 

inputField = new TextField();
inputField.defaultTextFormat = instformat;
inputField.text = thisname;
inputField.type = TextFieldType.INPUT;
inputField.addEventListener(FocusEvent.FOCUS_IN, blackinputtxt);
inputField.addEventListener(KeyboardEvent.KEY_DOWN, checkenter);
inputField.border = true;

 

I don't know how to run it in the debugger. I am using blackberry-airpackager with the .swf and -app.xml to package the .bar file and installing with the BlackBerry Graphic Aid.

 

this problem is not just with the game I am currently developing but with every Flash game I already have on BlackBerry World including Jacket Jack which passed Built For BlackBerry designation.

Contributor
Posts: 24
Registered: ‎10-17-2013
My Device: Z10
My Carrier: Vodafone

Re: Flash apps crashing in 10.2 when input text is used

i have THE SAME PROBLEM after new update of OS, see my game : 1-Hundred

Contributor
Posts: 24
Registered: ‎10-17-2013
My Device: Z10
My Carrier: Vodafone

Re: Flash apps crashing in 10.2 when input text is used

maybe we need new permission for softkeyboard?
Contributor
Posts: 48
Registered: ‎09-08-2013
My Device: Z10
My Carrier: None

Re: Flash apps crashing in 10.2 when input text is used

Using qnx-air.swc, qnxui.swc and qnxmedia.swc in the Library Path doesn't help either. My app Jacket Jack includes those libraries and still force exits.

Contributor
Posts: 24
Registered: ‎10-17-2013
My Device: Z10
My Carrier: Vodafone

Re: Flash apps crashing in 10.2 when input text is used

i'm tring other ways Smiley Sad stay tuned

Contributor
Posts: 24
Registered: ‎10-17-2013
My Device: Z10
My Carrier: Vodafone

Re: Flash apps crashing in 10.2 when input text is used

WAIT WAIT i see one thig.. IF I TOUCH TEXTFIELD AND STAY ON IT AND I WRITE SOME TEXT THAT'S WORK! Smiley Indifferent|| WTF

Contributor
Posts: 24
Registered: ‎10-17-2013
My Device: Z10
My Carrier: Vodafone

Re: Flash apps crashing in 10.2 when input text is used

[ Edited ]

i fixed for now editing the textfield when i focus and unfocus it ADDING blank space and delete it when i unfocus (ONLY IF THE TEXT IS !="") try this logic:

textfield.addEventListener(FOCUS_OUT, function():void
{
if (textfield.text == "")
textfield.text = " ";
else if(textfield.text != " ")
textfield.text = textfield.text.replace(" ", "");
});
textfield.addEventListener(TOUCH, function(evnt):void
{
//textfield.setFocus();

var t:Touch = (evnt as TouchEvent).getTouch(textfield);
if (textfield.text == "")
textfield.text = " ";
else if(textfield.text != " ")
textfield.text = textfield.text.replace(" ", "");

if (t && t.phase == TouchPhase.BEGAN)
{

try
{

stage.needsSoftKeyboard = true;
if (stage.requestSoftKeyboard())
{

textfield.setFocus(new Point(1, 0));
textfield.hideFocus();
if (SQInput.check(Key.ANY))
{

}
}
//textfield.textFormat.size = 40;

}
catch (e)
{

}
}
});

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Flash apps crashing in 10.2 when input text is used

[ Edited ]

@bkivin:  I meant which library (Flash, Flex, BB)?

 

What is your import statement?

 

Seeing if it might be a library issue or an AIR runtime issue.