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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Adobe AIR Development

Reply
Trusted Contributor
Vibes
Posts: 129
Registered: ‎03-14-2012
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.

Please use plain text.
Developer
Developer
CMY
Posts: 1,115
Registered: ‎02-10-2009
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.
Please use plain text.
Contributor
Idlemedia
Posts: 32
Registered: ‎04-25-2011
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.

Please use plain text.
Developer
jtegen
Posts: 6,145
Registered: ‎10-27-2010
My Carrier: AT&T

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

ANEs will only work in their native OS.
Please use plain text.