01-18-2013 05:20 PM
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(Invok eEvent.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.
01-18-2013 06:51 PM
01-19-2013 12:57 AM
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.
01-20-2013 10:15 AM