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
Contributor
jansensan
Posts: 30
Registered: ‎04-04-2012
My Device: BlackBerry Playbook
My Carrier: Telus

Re: QNXApplicationEvent.SWIPE_DOWN not firing at all in an AS3 project

That was indeed the case, thanks a bunch for the info!

--
mat janson blanchet
twitter: @jansensan, portfolio: http://jansensan.net/portfolio, tech blog: http://jansensan.net
Please use plain text.
Contributor
jansensan
Posts: 30
Registered: ‎04-04-2012
My Device: BlackBerry Playbook
My Carrier: Telus

Re: QNXApplicationEvent.SWIPE_DOWN not firing at all in an AS3 project

Yup, that's exactly what I was looking for, thanks! Can't wait to upgrade :smileyhappy:
--
mat janson blanchet
twitter: @jansensan, portfolio: http://jansensan.net/portfolio, tech blog: http://jansensan.net
Please use plain text.
New Developer
luko
Posts: 48
Registered: ‎06-26-2011
My Device: Blackberry Playbook
My Carrier: none

Re: QNXApplicationEvent.SWIPE_DOWN not firing at all in an AS3 project

It doesn't work for me too when I am using blackberry-tablet-sdk-3.0.0 beta 4.

It works fine on dev alpha when I am compiling code with blackberry-tablet-sdk-2.1 but with 3.0 it doesn't work.

I am including QNXDevice.ane which contains QNXApplication Class but it doesnt work properly :/

 

Does anybody know solution for sdk 3.0?

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: QNXApplicationEvent.SWIPE_DOWN not firing at all in an AS3 project

Is it crashing or just not firing?
And you are doing this:

this.app.addEventListener( QNXApplicationEvent.SWIPE_DOWN, showApplicationBar );

It is working in all my apps, the same way they do from the PlayBook, so it has to be a setup issue.
Please use plain text.
New Developer
luko
Posts: 48
Registered: ‎06-26-2011
My Device: Blackberry Playbook
My Carrier: none

Re: QNXApplicationEvent.SWIPE_DOWN not firing at all in an AS3 project

I am using

QNXApplication.qnxApplication.addEventListener(QNXApplicationEvent.SWIPE_DOWN, onSwipe);

 

onSwipe function is not firing at all. It works fine when I compile code using 2.1 version of SDK.

With BB10 SDK (3.0) it doesn't work. I am using FlashDevelop and including all needed libraries(.ane with SDK 3.0 and .swc with SDK 2.1).

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: QNXApplicationEvent.SWIPE_DOWN not firing at all in an AS3 project

Why are you not using the SWC from 3.0? You cannot mix 2.1 with 3.0. The 3.0 SWC will only work with thge 3.0 ANEs.
Please use plain text.
New Developer
luko
Posts: 48
Registered: ‎06-26-2011
My Device: Blackberry Playbook
My Carrier: none

Re: QNXApplicationEvent.SWIPE_DOWN not firing at all in an AS3 project

I am not using .swc from 3.0 because qnx.system.QNXApplication is included only in QNXDevice.ane with SDK 3.0

 

When I am compiling with SDK 2.1 I am including QNXApplication class from qnxdevice.swc (from SDK 2.1) . I am not mixing it. When I use SDK 2.1, swipe gesture works fine on Dev Alpha (like it did on PlayBook) but I need some functionality from SDK 3.0 (Active Frames) and I don't even know if SDK 2.1 will be working fine with the final BB10.

 

Thanks for help.

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: QNXApplicationEvent.SWIPE_DOWN not firing at all in an AS3 project

Good luck. Living dangerously in mixing the SDKs. Everything will be BB10 SDK in the spring, so hopefully you wont have to do this for long.
Please use plain text.
New Developer
luko
Posts: 48
Registered: ‎06-26-2011
My Device: Blackberry Playbook
My Carrier: none

Re: QNXApplicationEvent.SWIPE_DOWN not firing at all in an AS3 project

I've implemented Active Frames and it's working fine, but I still can't use Swipe Down with SDK 3.0 :/

Please use plain text.
New Developer
luko
Posts: 48
Registered: ‎06-26-2011
My Device: Blackberry Playbook
My Carrier: none

Re: QNXApplicationEvent.SWIPE_DOWN not firing at all in an AS3 project

I have solved this problem.

It was in descriptor .xml file

 

I had to add tag with information about native extensions:

 

 <extensions>
        <extensionID>qnx.system.QNXDevice</extensionID>
 </extensions>

 

Please use plain text.