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
coyotegd
Posts: 10
Registered: ‎05-16-2012
My Device: Playbook 64GB
Accepted Solution

Can't reference qnx.dialog in the libraries

I'm trying to get the proper AIR programming environment working.  Can't get Flash Builder to recognize the qnx.dialog package. Just trying to run a simple "Hello world!" app w/ dialog boxes in the simulator or USB'ed Playbook.   Here are all of my qnx imports:

 

import qnx.dialog.DialogButtonProperty;
import qnx.dialog.PromptDialog;
import qnx.display.IowWindow;
import qnx.fuse.ui.buttons.LabelButton;
import qnx.fuse.ui.text.Label;

 

Just qnx.dialog is not getting referenced.  However, the following libraries are listed by Flash Builder as referenced libraries:

 

qnx-air.swc

qnxmedia.swc

qnxui.swc

blackberry.swc

 

The following Flex 4.6 libraries are referenced too:

 

airglobal.swc

core.swc

osmf.swc

textLayout.swc

servicemonitor.swc

 

Am I missing something?  Can anyone help me with this?

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

Re: Can't reference qnx.dialog in the libraries

Do you have "Add platform specific libraries to library path" checked under the project's properties, "Flex Build Packaging" / "BlackBerry Tablet OS"?
Contributor
coyotegd
Posts: 10
Registered: ‎05-16-2012
My Device: Playbook 64GB

Re: Can't reference qnx.dialog in the libraries

Yes, I have "Enable this target platform" checked for Blackberry, not iOS nor Android.  With Blackberry highlighted, the "Add platform specific libraries to library path" is checked too.

 

Thanks for your help,

 

KMK

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

Re: Can't reference qnx.dialog in the libraries

Odd. In my projects, under "...blackberry-tablet-sdk-2.0.0/frameworks/libs/qux", my "Flex Build Path" libraries are:
qnx-screen
qnxdevice
qnxmedia
qnxtext
qnxui
skins167

Are you going against the 2.0 SDK under IDE prefrences, Flash Builder / Taget Platforms / BlackBerry Tablet OS. Should be pointing to the blackberry-tablet-sdk-2.0.0 directory.
Contributor
coyotegd
Posts: 10
Registered: ‎05-16-2012
My Device: Playbook 64GB

Re: Can't reference qnx.dialog in the libraries

[ Edited ]

As stated in my first post, Flash Builder referenced the Flex 4.6 libraries.  FB's additional "Referenced Libraries" are from "...blackberry-tablet-sdk-3.0.0/frameworks/libs/air", "...blackberry-tablet-sdk-3.0.0/frameworks/libs/qux", and "...blackberry-tablet-sdk-3.0.0/frameworks/libs/blackberry".

 

Does this help?  Any additional information needed?  I would really like to move on past a "HelloWorld!" app.  lol

Contributor
coyotegd
Posts: 10
Registered: ‎05-16-2012
My Device: Playbook 64GB

Re: Can't reference qnx.dialog in the libraries

[ Edited ]

Is the qnx.dialog package in the 2.0.0 qnx-screen library?  Perhaps I can just copy that library from a 2.0.0 unzip.  It looks like they forgot about qnx.dialog in 3.0.0.  Yes, No?

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

Re: Can't reference qnx.dialog in the libraries

Did you include the ANE for 3.0?
Contributor
coyotegd
Posts: 10
Registered: ‎05-16-2012
My Device: Playbook 64GB

Re: Can't reference qnx.dialog in the libraries

I didn't know that an ANE for 3.0 was required.  I wil go find it and install it.  Hopefully, this is the problem.

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

Re: Can't reference qnx.dialog in the libraries

Contributor
coyotegd
Posts: 10
Registered: ‎05-16-2012
My Device: Playbook 64GB

Re: Can't reference qnx.dialog in the libraries

[ Edited ]

All libraries are now referenced, so I will consider this closed.

 

One warning: When you  "Add Folder..." or "Add ANE..." do not check the "Update AIR application descriptor" checkbox.  Otherwise, an error-dialog box opens and closes within a split second, and the libraries will not be referenced when you close the application's properties dialog.  I suspect the error has to do with the name change to "bar-descriptors.xml", but the dialog flashes by so fast I can't read it.

 

Thanks for your help.

 

I need to update the code, however.  Throwing the following errors.  The answer is I need to learn more C++ and ActionScript.

 

1046: Type was not found or was not a compile-time constant

1120: Access of undefined property

1180: Call to a possibly undefined method