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 Developer
Posts: 61
Registered: ‎06-07-2011
My Device: Playbook
My Carrier: Employee

Error #1014: Class flash.events::SoftKeyboardEvent could not be found.

Hi every one,

 

I Just downloaded the 2.0 sdk and making a test app with some labels and textinputs, for TextInput field I am getting this error, can any one tell me how to solve this.

 

Error #1014: Class flash.events:Smiley FrustratedoftKeyboardEvent could not be found. 

Developer
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course
My Carrier: Vodafone

Re: Error #1014: Class flash.events::SoftKeyboardEvent could not be found.

You've used a class, in this case SoftKeyboardEvent, that has not been imported. You need to add an import statement so that the Flash Builder compiler knows where to find the class:

 

import Flash.events.SoftKeyboardEvent;

Normally, FB will add required imports when you use code completion to add instances or generate event handlers. In some cases, usually if your code contains syntax errors while usng code completion, FB can't quite determine what needs to be imported.

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
New Developer
Posts: 61
Registered: ‎06-07-2011
My Device: Playbook
My Carrier: Employee

Re: Error #1014: Class flash.events::SoftKeyboardEvent could not be found.

Thanks for your reply, I added the import statement, but still getting same error,  am I missing any thing?.

Developer
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course
My Carrier: Vodafone

Re: Error #1014: Class flash.events::SoftKeyboardEvent could not be found.

I guess, but I'd have to see some code to see what may be wrong...

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
Highlighted
New Developer
Posts: 61
Registered: ‎06-07-2011
My Device: Playbook
My Carrier: Employee

Re: Error #1014: Class flash.events::SoftKeyboardEvent could not be found.

Thanks for your reply, my code is here

 

package
{
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;

import qnx.fuse.ui.text.Label;
import qnx.fuse.ui.text.TextInput;
import flash.events.SoftKeyboardEvent;

public class Main extends Sprite
{
public function Main()
{
super();

// support autoOrients
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;

var label:Label = new Label();
label.text = "Test App..............";
addChild(label);

var input:TextInput = new TextInput();
addChild(input);
}
}
}