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
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();
cOrg.addChild(c00);
//cOrg.addChild(addSpacer1());
cOrg.addChild(addSpacer());
var c01:Container = addDirections();
cOrg.addChild(c01);
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?

 

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

Re: ScrollPane problems

hey,

 

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