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

New Developer
Posts: 47
Registered: ‎10-22-2009
My Device: Not Specified
Accepted Solution

ScrollPane problems

So when i had the odl sdk my scroll pane was working properly. Last week or so i updated to 0.9.3 and now the scrollpane does not scroll (yes i know that new SDK is out. I am just downloading it as i type).


Basically here is my code for the scroll pane



var cOrg:Container = new Container();
var c00:Container = addIngredients();
var c01:Container = addDirections();
cOrg.align = ContainerAlign.NEAR;
cOrg.setSize(700, c00.height+25+c01.height);

//add to the scrollView
var scroller:ScrollPane = new ScrollPane();
scroller.width = 750; 
scroller.height = 490;
scroller.y = 0; 
scroller.addChild( cOrg ); 
addChild( scroller );


Any guidance here?


Posts: 2,462
Registered: ‎11-04-2010
My Device: Bold 9700

Re: ScrollPane problems



since the updated SDK, the method to add content to the ScrollPane object is by doing the following:



scroller.setScrollContent( cOrg ); 


hope that helps. good luck!


J. Rab (Blog) (Twitter)
1. If you liked my post or found it useful please click on the thumbs up and provide a Like!
2. If my post solved your problem please click on the Accept as Solution button. Much appreciated!

Approved Apps: OnTrack | ssShots | Hangman