05-18-2012 06:26 PM
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?
Solved! Go to Solution.
05-18-2012 08:05 PM
05-18-2012 08:19 PM
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
05-19-2012 09:02 AM
05-19-2012 12:09 PM - edited 05-19-2012 12:30 PM
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
Does this help? Any additional information needed? I would really like to move on past a "HelloWorld!" app. lol
05-19-2012 12:27 PM - edited 05-19-2012 12:31 PM
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?
05-19-2012 02:25 PM
05-19-2012 02:36 PM
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.
05-19-2012 02:39 PM
05-19-2012 04:34 PM - edited 05-19-2012 06:42 PM
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