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

Posts: 250
Registered: ‎03-14-2012
My Device: PlayBook 2.0
My Carrier: AT&T

Copy and paste is not working correctly for text fields


Copy and paste and the selection circle is not working correctly for my StageText text-fields. 
Are there any known issues with using StageText text-fields in a project?

This is the code I'm using:

import flash.text.StageText;
import flash.text.ReturnKeyLabel;
import flash.events.KeyboardEvent;
import flash.geom.Rectangle;
import flash.ui.Keyboard;
import flash.text.StageTextInitOptions;

var stageTextInitOptions:StageTextInitOptions;
stageTextInitOptions=new StageTextInitOptions(true);
var mymessage:StageText

mymessage = new StageText(stageTextInitOptions)
mymessage.softKeyboardType = SoftKeyboardType.DEFAULT
mymessage.stage = this.stage
mymessage.fontFamily = "_sans"
mymessage.viewPort = new Rectangle(10, 10, 300, 200); 


I'm using Air 3.1.
Thank you

Posts: 427
Registered: ‎02-22-2012
My Device: BlackBerry Z10, BlackBerry Dev Alpha C, BlackBerry PlayBook
My Carrier: Bell

Re: Copy and paste is not working correctly for text fields

I haven't tried using the StageText API's for text input but using the BlackBerry 10 AIR SDK API's should get you what you're looking for. 





Follow me on Twitter: @dustinmalik
Keep up to date on BlackBerry development: http://devblog.blackberry.com/