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
Regular Contributor
mwille64
Posts: 59
Registered: ‎01-08-2009
My Carrier: n/a

Problem with Invocation Framework in Flex/AIR

I'm developing with Flash Builder 4.6 and the latest BlackBerry SDK for OS10.

 

When I create a new mobile project following library entries are added to the project:

 

C:\Program Files (x86)\Research In Motion\blackberry-tablet-sdk-3.1.0\frameworks\libs\air\qnx-air.swc

C:\Program Files (x86)\Research In Motion\blackberry-tablet-sdk-3.1.0\frameworks\libs\qnx

C:\Program Files (x86)\Research In Motion\blackberry-tablet-sdk-3.1.0\frameworks\libs\blackberry

 

With theses entries I'm unable to import any of the qnx.invoke.* classes. They simply do not appear in the list of available libs.

 

Researching the problem did not bring up much information. However I stumbled about a related posting mentioning something about ANE entries. So I looked into the frameworks subdirectories and found this...

 

C:\Program Files (x86)\Research In Motion\blackberry-tablet-sdk-3.1.0\frameworks\libs\qnx\ane

 

After adding this path to the Library path in the project properties, I'm no able to see and select the qnx libs/classes.

 

However, I receive errors for the import related code lines...

 

import qnx.invoke.InvokeManager;

1172: Definition qnx.invoke:InvokeManager could not be found.

 

Is there something that I'm missing?

 

Any help is much appreciated.

 

 

Please use plain text.
Contributor
Verdave
Posts: 11
Registered: ‎03-01-2013
My Carrier: unknown, company employer

Re: Problem with Invocation Framework in Flex/AIR

[ Edited ]

 

I also had trouble importing qnx-classes. 

In my case i missed an extra checkbox, near the imported ANEs.

 

In Flex, Paket-Explorer 

-> right click on your project

-> select "properties"

-> Build Packaging (not Build-Path)

 -> Blackberry

  ->Tab "Native extensions"

   -> 3rd row: Paket-checkbox: enable/check for each single ANE you want to use. Simply adding them to the buildpath seems not to be enougth, these checkboxes have to be enabled too.

Please use plain text.
Developer
pyth
Posts: 421
Registered: ‎01-19-2011
My Carrier: Outer Space

Re: Problem with Invocation Framework in Flex/AIR

when you imported blackberry-tablet-sdk-3.1.0\frameworks\libs\blackberry, you should have imported the blackberry.swc as well. The InvokeManager and the other invoke-classesare there. In the package structure of flash Builder, there's normally a folder named something like 'imported libs' or something, and all the .swc's you use should be there. Can you check your paths again? Don't know about the ANE folders though :smileytongue:

-----------------------------------------------------------------------
I'm a bird from outer space. But I'm not flappy o.o
Please use plain text.
Regular Contributor
mwille64
Posts: 59
Registered: ‎01-08-2009
My Carrier: n/a

Re: Problem with Invocation Framework in Flex/AIR

Don't have any entries in the ANE table.
Please use plain text.
Regular Contributor
mwille64
Posts: 59
Registered: ‎01-08-2009
My Carrier: n/a

Re: Problem with Invocation Framework in Flex/AIR

The blackberry.swc is already listed as part of the blackberry swc folder. The same applies to the qnx folder/swc.
Please use plain text.
Regular Contributor
mwille64
Posts: 59
Registered: ‎01-08-2009
My Carrier: n/a

Re: Problem with Invocation Framework in Flex/AIR

OK, problem solved. I just simply added the ANE folders under the Library path tab instead of the ANE tab.

 

**bleep**, sometimes you dont see the woods for all the trees. 

Please use plain text.