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
Developer
Posts: 229
Registered: ‎03-14-2012
My Device: PlayBook 2.0
My Carrier: AT&T

Error #1065: Variable qnx.invoke::InvokeManager is not defined

Hi,

 

I would like to use the invocation framework with Adobe Air.

I'm using Flash CS5.5 with Air 3.1.

 

I'm getting this error:

Error #1065: Variable qnx.invoke::InvokeManager is not defined

 

The code:

 

import qnx.invoke.InvokeManager;
import qnx.events.InvokeEvent;
 import qnx.invoke.*;	             //NOTE: THIS MUST BE THE FIRST THING SET IN YOUR APPLICATION CONSTRUCTOR
          InvokeManager.invokeManager.addEventListener(InvokeEvent.INVOKE, onInvoke );
     

         function onInvoke( event:InvokeEvent ):void
        {
            if( InvokeManager.invokeManager.startupMode == InvokeStartupMode.INVOKE )
            {
                //invoked as an application/target.
                var mydata:InvokeRequest = InvokeManager.invokeManager.startupRequest;
           
		   }
            else if( InvokeManager.invokeManager.startupMode == InvokeStartupMode.VIEWER )
            {
                //invoked as a viewer
                var myotherdata:InvokeViewerRequest = InvokeManager.invokeManager.startupViewerRequest;
           
		   }
            else
            {
     
			  //launched by the pressing on the icon on the home screen.
            }
        }

 

I included this files: qnx-air.swc, qnxui.swc, qnxmedia.swc and blackberry.swc

 

How to fix the error?

 

 

Thanks.

Developer
Developer
Posts: 1,123
Registered: ‎02-10-2009
My Device: 8130 / 8350 / 9530 / 9550 / 9850 / PlayBook
My Carrier: Verizon

Re: Error #1065: Variable qnx.invoke::InvokeManager is not defined

You need to include the ANE file. I think it's the QNXDevice.ane one.
Contributor
Posts: 32
Registered: ‎04-25-2011
My Device: Blackberry Playbook
My Carrier: Wifi

Re: Error #1065: Variable qnx.invoke::InvokeManager is not defined

I didn't have any luck with it, so I'd build the swf, then push to the emulator or device -- it works fine there, just not in the flash IDE.

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

Re: Error #1065: Variable qnx.invoke::InvokeManager is not defined

ANEs will only work in their native OS.