09-07-2013 07:39 PM
I'm trying for days to get a custom item in the context menu without success.
I would like to send a text from the context menu to BBM.
How can I add an item to the context menu?
I tried all examples of this forum and from the docs and none of them are working for me!
I guess I overlook something.
Can anybody please please upload a working Air example?
That would really save my week!
I'm using Flash CS6 and Air 3.1
09-10-2013 09:21 AM
I haven't used the BBM ANE but you can find it with a sample here - https://github.com/blackberry/Community-APIs-for-A
09-14-2013 06:13 AM
That card invoking part is working for me, the problem is I would like to launch it from the context menu.
I'm trying to have a custom context menu entry with the BBM icon that invokes the BBM Card if selected.
I just can't get this example to work in Flash CS6 and Air 3.1:
Can you help me with it? That would be fantastic!
I'm really out of ideas.
09-14-2013 12:23 PM
Yeah. The BBM root share card is broken - I've been told it's something to do with BBM Channels beta.
But if you use BBM message share it will work. Let me dig up some working code.
09-14-2013 12:31 PM
var ba:ByteArray = new ByteArray();
ba.writeUTFBytes("Fortune cookie says: Play nice with others.");
var invopt:InvokeTargetOptions = new InvokeTargetOptions();
var request:InvokeRequest = new InvokeRequest();
request.mimeType = "text/plain";
request.targetOptions = InvokeTargetOptions.ALL;
request.action = "bb.action.SHARE";
request.target = "sys.bbm.sharehandler";
request.data = ba;