03-20-2011 07:10 PM
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?
Solved! Go to Solution.
03-20-2011 07:12 PM
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!