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
Trusted Contributor
Sangram
Posts: 101
Registered: ‎03-04-2011
My Device: BB10-Dev Alpha
My Carrier: -
Accepted Solution

Using QNX events in AIR for BB10 in Flash Professional 5.5

I want to use the QNX events in my AIR application for BB10 in Flash Professional. As in playbook, am I supposed to add some swc files in order to use the events as I am getting compiling error?

 

I want to use 'CardCloseEvent' but it is giving compilation error.

 

Thanks!

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Using QNX events in AIR for BB10 in Flash Professional 5.5

Are you including the device ANE? I think that event is part of the invocation framework, which is in the device ANE.
Please use plain text.
Trusted Contributor
Sangram
Posts: 101
Registered: ‎03-04-2011
My Device: BB10-Dev Alpha
My Carrier: -

Re: Using QNX events in AIR for BB10 in Flash Professional 5.5

No... I am not including ANE. I thought that is part of SDK itself. Which ANE should be included and how?

 

Thanks!

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Using QNX events in AIR for BB10 in Flash Professional 5.5

I did verify it is in the device ANE. Not certain how to do that in Flash Pro. It's pretty easy in Flash Builder.
Please use plain text.
Trusted Contributor
Sangram
Posts: 101
Registered: ‎03-04-2011
My Device: BB10-Dev Alpha
My Carrier: -

Re: Using QNX events in AIR for BB10 in Flash Professional 5.5

At least let me know how it is done in Flash builder, I will check if I can do some workaround in Flash pro.

Thanks!
Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Using QNX events in AIR for BB10 in Flash Professional 5.5

Recent thread has a post about the steps to create a new project that lists the steps to include ANEs.

http://supportforums.blackberry.com/t5/Adobe-AIR-Development/BB10-Air-Dev-Alpa-and-VM-Run-Time-Error...
Please use plain text.
Trusted Contributor
Sangram
Posts: 101
Registered: ‎03-04-2011
My Device: BB10-Dev Alpha
My Carrier: -

Re: Using QNX events in AIR for BB10 in Flash Professional 5.5

Thanks!

 

Yet it does not help in Flash Professional :-(

 

No one tried using ANE's in Flash Professional and there is no documentation on this.

 

Sangram

Please use plain text.
Developer
KermEd
Posts: 175
Registered: ‎05-18-2009
My Device: NA
My Carrier: NA

Re: Using QNX events in AIR for BB10 in Flash Professional 5.5

In most languages, from a high level, what you need to do is go into your Project properties and add the ANE's manually.  It should be accessible anywhere you find references and assets in the properties.

 

A good example is here:

 

http://www.adobe.com/devnet/air/articles/using-ane-in-flash.html

 

1.Launch Flash Professional CS6, and create a new project of the type AIR, AIR for Android, or AIR for iOS (see Figure 1).
2.Choose File > Publish Settings.
3.Click the wrench icon next to Script for ActionScript Settings (see Figure 2).
4.Click the Library Path tab.
5.Click the Browse To Native Extension (ANE) File button (see Figure 3)
6.Navigate to the directory that contains your native extension and select the ANE file.
7.Click OK.

 

What they don't mention is to look carefully at the boxes.  Once you attach an ANE, they usually have a checkbox that you need to check to actualyl enable it.  It usually is off the screen and needs you to scroll over to it (on Flash Buillder 4.6 anyway).

 

If you keep having big issues, look at downloading the freeware AIR builder from http://developer.blackberry.com/air.

 

Cheers,

 

Ed.

Please use plain text.
Trusted Contributor
Sangram
Posts: 101
Registered: ‎03-04-2011
My Device: BB10-Dev Alpha
My Carrier: -

Re: Using QNX events in AIR for BB10 in Flash Professional 5.5

Thank you so much for the detailed reply. But adding ANE option is not available in Flash Professional 5.5, may be it is only in CS6 :-(

Please use plain text.
Developer
KermEd
Posts: 175
Registered: ‎05-18-2009
My Device: NA
My Carrier: NA

Re: Using QNX events in AIR for BB10 in Flash Professional 5.5

No worries,

 

Goto File > Actionscript Settings > Library Path

 

Press the + and browse to the ANE

 

Note:  If it will not allow you to add the ANE --- make a copy and rename it as SWF.  It worked for Flash Builder 4.5.

 

For each ANE, you may need to click on it and press the I button and change it to External. 

 

I'm not sure how Flash Pro builds your packages though - but that should set it up right.

 

Ed.

 

 

Please use plain text.