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
Developer
Developer
Posts: 227
Registered: ‎01-17-2012
My Device: PB
My Carrier: ATT

Video Display

SDK 2.1 or SDK 3.0 - Using a VideoDisplay with allowOverlay=true and transparent initialWindow:

 

What is required to get (e.g. MouseDown) events?

 

Events from the VideoDisplay not covered by the actual video are received as expected, but nothing from the area covered by the video.

 

Regards,

Highlighted
Developer
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course
My Carrier: Vodafone

Re: Video Display

[ Edited ]

Overlay your VideoDisplay with a transparent sprite, and attach an event handler to that.

 

You'll probably also need to set the window sensitivity, otherwise it won't register touches on transparent areas:

 

import qnx.display.IowWindow;
import qnx.display.IowWindowSensitivity;

IowWindow.getAirWindow().sensitivity = IowWindowSensitivity.ALWAYS;

 

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
Developer
Developer
Posts: 227
Registered: ‎01-17-2012
My Device: PB
My Carrier: ATT

Re: Video Display

good suggestion:

 

turns out that simply setting the sensitivity did the trick - now the stage reports MouseDown events.

 

Thanks,