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
New Contributor
Posts: 3
Registered: ‎02-13-2014
My Device: Blackberry Z10
My Carrier: Verizon

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

Can anyone from blackberry officially confirm if this is being worked on or not?  This is a crippling blow to the AIR platform on BB10 devices.  We are ready to drop BB10 support altogether because of this bug alone.  Our app is completely unusable on all devices that have updated to the latest BB10 version.

 

Please don't tell us your team "is looking into this", especially if they really aren't.  Just be straight up with us so we can figure out what to do with the reality of the situation.  

 

If there are no plans to fix this please confirm it so we can move on and not wait for something that is never going to happen.  If they are actively working on it then great, let us know that there is some sort of movement here so we know our patience will pay off.

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

Even if they were looking into it and can find a fix, it will be months and months before a runtime is released to carriers and then months before they release it. Best to find your own work around and not depend on BB to resolve this. Just the sad facts.
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

Thanks DitoAu. qnx.ui is working since I added QNXSkins.ane without the space hack! Smiley Happy Also make sure qnx.ui is linked "merged in code" not "external".
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

Now if someone could just tell me how to format the inputText? The BlackBerry documentation does not provide example code, just API reference. Label? TextInputBase? How do you apply a textFormat to inputText?

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

qnxui.swc is working except now when you type in the inputField, you can't see the top half of the text when using a textFormat on the inputText.

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

[ Edited ]

This is the only way I could get textInput to work without using the space hack. I'm assuming this will be backward compatible with the older BlackBerry OS 10 The textFormat cannot change any text properties except color.

 

Be sure to add qnxui.swc and QNXSkins.ane in ActionScript Settings... from the BlackBerry SDK (program files/research in motion/blackberry-tablet-sdk-3.2.1/frameworks/libs)

 

package
{

import flash.display.MovieClip;
import qnx.fuse.ui.text.TextInput;
import qnx.fuse.ui.text.TextFormat;
import qnx.fuse.ui.text.TextInputIconMode;
import qnx.fuse.ui.text.TextInputBase;
import qnx.fuse.ui.text.TextFormatStyle;

 

public class textinputfix extends MovieClip
{

public var inputField:qnx.fuse.ui.text.TextInput = new TextInput();
var format:TextFormat;
var instformat:TextFormat;

 

public function textinputfix():void
{


format = new TextFormat();
format.color = 0x000000;

 

instformat = new TextFormat();
instformat.color = 0x999999;


}


public function enterplayername(thisname:smileyfrustrated:tring):void
{


var displaytext = thisname;
inputField.addEventListener(FocusEvent.FOCUS_IN, blackinputtxt);
inputField.addEventListener(KeyboardEvent.KEY_DOWN, checkenter);
inputField.width = 200;
inputField.height = 50;
inputField.text = displaytext;
inputField.clearIconMode = TextInputIconMode.UNLESS_EDITING;
inputField.x = 140;
inputField.y = 20;

inputField.maxChars = 11;
inputField.restrict = "A-Za-z0-9";
inputField.format = instformat;
addChild(inputField);

 

}


public function blackinputtxt(e:Event):void
{


inputField.removeEventListener(FocusEvent.FOCUS_IN, blackinputtxt);
inputField.text = "";
inputField.format = format;


}


public function checkenter(e:KeyboardEvent):void
{


if (e.charCode == 13)
{


stage.focus = null;
inputField.removeEventListener(KeyboardEvent.KEY_DOWN, checkenter);
setplayername();


}

}

}

 

This way you can pass a string "User Instructons" to inputText and it will appear grey. Once the user taps the inputText field, the instructions will disappear and the text input by the user will appear black.

Developer
Posts: 439
Registered: ‎10-25-2010
My Device: Not Specified

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

[ Edited ]

Ok, I have a simple reproduction step for my issue.

 

It seems to happen only when your drag your finger on a TextField.

 

REPRODUCTION STEPS:

1. Create a TextField and add it to stage:

var text:TextField = new TextField();
text.text = "FOOOO";
text.type = TextFieldType.INPUT;
addChild(text);

2.
Quickly Tap Textfield

  2.1. Observe as Keyboard opens normally.

3. Drag and release your finger on TextField (rub the textfield a bit and release)
  3.1 Observe: Total app lockup, app is force-closed about 20 seconds later.

 

Is anyone else seeing this? I can't really use QNX TextField, as I have many font styles, all contained within an FLA which I import using a SWC.

 

I'm posting this over here in my original thread, seeing as you're not using Native Textfields and I am, this may be two different issues:
http://supportforums.blackberry.com/t5/Adobe-AIR-Development/Constant-User-Error-Reports-since-10-2/...

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

[ Edited ]

thanks for letting me know. I didn't realize there was a drag issue. Smiley Happy

 

Also, regarding the "space hack" two of  my apps were denied file release when the space hack was used. Apparently the space hack breaks the Q10 and Q5 devices input text function.

Developer
Posts: 439
Registered: ‎10-25-2010
My Device: Not Specified

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

Ugh. What a mess Smiley Sad

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

Well, there is good news and bad news.

 

The bad news is that you will have to implement the native ui and accept the default appearance of the text input elements in your apps.

 

The good news is that my app "Jacket Jack" was approved for release using the native ui text input fix previously posted.

 

A less aesthetically pleasing solution is better than no solution. Smiley Happy