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 Carrier: Telus
Accepted Solution

QNXApplicationEvent.SWIPE_DOWN not firing at all in an AS3 project

I have read some blog posts and forum entries about trying to implement a QNXApplicationEvent.SWIPE_DOWN listener, but somehow none work for me.

I have tried signals:

_swipedDown = newNativeSignal(QNXApplication.qnxApplication, QNXApplicationEvent.SWIPE_DOWN, QNXApplicationEvent);
_swipedDown.add(onSwipedDown);

And I have tried with regular event handlers:

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

But the handler never traces anything:

private function onSwipedDown(_:QNXApplicationEvent):void
{
trace("\n", this, "--- onSwipedDown ---");
}

The class holding this code extends a Sprite. Anything I should know about?

--
mat janson blanchet
twitter: @jansensan, portfolio: http://jansensan.net/portfolio, tech blog: http://jansensan.net
Please use plain text.
Developer
Smugrik
Posts: 185
Registered: ‎04-05-2011
My Carrier: Bouygues Telecom

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

Hi,

 

What version of the SDK are you using? I've seen the same thing with bb10 SDK when trying to run on the PlayBook. I think it comes from the fact that some of the qnx packages are now implemented as ANEs...

Julien
Web: smugrik.org Follow: @Smugrik
PlayBook apps:
OSCream
kiPass
Please use plain text.
Contributor
jansensan
Posts: 30
Registered: ‎04-04-2012
My Carrier: Telus

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

I'm using these:

 

  • Flex 4.6.0.23201B 
  • blackberry-tablet-sdk-3.0.0

Yea, there are some ANEs linked in there.

--
mat janson blanchet
twitter: @jansensan, portfolio: http://jansensan.net/portfolio, tech blog: http://jansensan.net
Please use plain text.
Developer
Smugrik
Posts: 185
Registered: ‎04-05-2011
My Carrier: Bouygues Telecom

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

My code was working well when I built it against tablet sdk 2.0.  But since I build it on tablet sdk 3.0 (I called it bb10 SDK in the previous post ) the event is not working anymore. I don't now if this is because sdk 3 is only supported on bb10, or if it is a bug... I only tested on the PlayBook as I don't have a bb10 yet.

Julien
Web: smugrik.org Follow: @Smugrik
PlayBook apps:
OSCream
kiPass
Please use plain text.
Contributor
jansensan
Posts: 30
Registered: ‎04-04-2012
My Carrier: Telus

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

Yea, feels like a bug to me then. A functionality cannot be taken away in the hopes that users are necessarily up to date. Especially if an update is not available to their device.

--
mat janson blanchet
twitter: @jansensan, portfolio: http://jansensan.net/portfolio, tech blog: http://jansensan.net
Please use plain text.
Developer
JohnPinkerton
Posts: 350
Registered: ‎01-21-2011
My Carrier: Regional

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

I just tried again and this works for me:

 

import qnx.events.QNXApplicationEvent;
import qnx.system.QNXApplication;

 

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

 

private function showSwipeUI(e:QNXApplicationEvent):void {
	trace("zomg swipez!");
}

 

 

 

 

Please use plain text.
Administrator
MSohm
Posts: 14,065
Registered: ‎07-09-2008
My Carrier: Bell

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

Are you testing this on a PlayBook or using the BlackBerry Dev Alpha Simulator?  Applications produced in the BB10 SDKs require BlackBerry 10+ to run.  They will not run correctly on Tablet OS 2.x.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
Developer
JohnPinkerton
Posts: 350
Registered: ‎01-21-2011
My Carrier: Regional

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

The code I pasted above Mark's post worked for me with the 2.0 SDK on the PlayBook and the 3.0 SDK on the Dev Alpha. I didn't try it with the 3.0 on the PlayBook for the reasons Mark stated. Just thought I'd clear that up quick :smileyhappy:

Please use plain text.
Trusted Contributor
jetstreamblue
Posts: 119
Registered: ‎01-21-2011
My Carrier: Telus

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

I'm having the same problem.

My exisitng app with SDK 2.0, swipe down works fine on PlayBook.

Updated app to SDK 3.0, running on the BB10 simulator, swipe down won't work.

VENTURCON
For BB10: e-Mmanuel Bible Reader, e-Mmanuel Audio Bible, PM Assist
For PlayBook: e-Mmanuel Bible Reader, Business Analysis Toolbox
Please use plain text.
Developer
Smugrik
Posts: 185
Registered: ‎04-05-2011
My Carrier: Bouygues Telecom

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

Thanks for clarification Mark, let's hope a bb10 dev Beta will soon be available on the PlayBook, as was the case with 2.0. I'm already upgrading all my apps to bb10 ;-)

Julien
Web: smugrik.org Follow: @Smugrik
PlayBook apps:
OSCream
kiPass
Please use plain text.