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
nickdollimount
Posts: 21
Registered: ‎03-21-2011
My Device: BlackBerry Z10
My Carrier: Telus

Scrolling through DropDownList and ComboBox not working.

Hi everyone,

 

I'm using Flash Builder 4.5 Burrito and I'm starting to think it's an issue that Adobe has to fix... but here's the low down.

 

I'm using the designer (MXML Views) to create my app.  When using their provided DropDownList and ComboBox objects, they fail to scroll in the simulator (and on the real device).  The debugger throws you into the Scroller.as file showing the following error.

 

TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at TouchScrollHelper/sbRoot_mouseUpHandler()[E:\dev\hero_private_beta\frameworks\projects\spark\src\spark\components\Scroller.as:2180]

 

When running on the real device without debugging, the list just closes but selects the item your finger touched.  If it's a long list, you have to open it and do that a few times to slowly skip down to where you want to select.  Very annoying.

 

I'm wondering if anyone has found a way around this or if someone could help me out to get some of the QNX equivelants to work with the design mode.  Thanks in advance!

Please use plain text.
New Contributor
burns1686
Posts: 5
Registered: ‎05-03-2011
My Device: Playbook
My Carrier: None

Re: Scrolling through DropDownList and ComboBox not working.

I am having the same issue. Has anyone found a solution for this yet?
Please use plain text.
Contributor
nickdollimount
Posts: 21
Registered: ‎03-21-2011
My Device: BlackBerry Z10
My Carrier: Telus

Re: Scrolling through DropDownList and ComboBox not working.

I ended up using hiddent list items and custom buttons to create my own drop downs. Turned out pretty good actually but definitely a lot more work than it should be.
Please use plain text.
New Contributor
burns1686
Posts: 5
Registered: ‎05-03-2011
My Device: Playbook
My Carrier: None

Re: Scrolling through DropDownList and ComboBox not working.

Do you have any sample code on how you did that?
Please use plain text.
New Contributor
burns1686
Posts: 5
Registered: ‎05-03-2011
My Device: Playbook
My Carrier: None

Re: Scrolling through DropDownList and ComboBox not working.

FYI... Here is something I foudn that works.

<?xml version="1.0" encoding="utf-8"?>
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" title="Home"
xmlns:model="model.*"
xmlns:listClasses="qnx.ui.listClasses.*"
xmlns:mx="library://ns.adobe.com/flex/mx"
viewActivate="view1_viewActivateHandler(event)">
<fx:smileyfrustrated:cript&gt;
<![CDATA[
import mx.events.FlexEvent;
import qnx.ui.data.DataProvider;
import qnx.ui.listClasses.DropDown;

private var myList:smileyvery-happy:ropDown = new DropDown();


protected function view1_viewActivateHandler(event:FlexEvent):void
{
this.myList.x = 50;
this.myList.y = 100;
this.myList.width = 500;
this.myList.height = 31;

wrapper.addChild(this.myList);

var arr:Array = new Array();
arr.push({label: "List"});
arr.push({label: "RoundList"});
arr.push({label: "ScrollPane"})
arr.push({label: "SectionList"});

this.myList.dataProvider = new DataProvider(arr);





}

]]>
</fx:smileyfrustrated:cript&gt;
<fx:smileyvery-happy:eclarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:smileyvery-happy:eclarations>
<!--<s:Label id="mainTxt" x="50" y="50" width="200" height="31" />-->
<s:navigationContent>
<mx:UIComponent id="wrapper" width="120" height="100%"/>
</s:navigationContent>
</s:View>
Please use plain text.