08-24-2011 03:44 PM
I am having some trouble with the scrollpane UI element. I have created a sprite that is larger than the scrollpane as the content, so the pane will scroll. The problem is that when I test on the simulator everything works perfectly, however, when I test on the device the application locks up as soon as the pane is touched. Is there some bug witht he scrollpane I am unaware of? I have searched the forums for similar situations however I cannot seem to find a solution. Here is some code.
content = new Sprite(); content.graphics.beginFill( 0xDDDDDD ); content.graphics.drawRect( 0, 0, 557, 500 ); content.graphics.endFill(); contentPane = new ScrollPane(); contentPane.x = WIDTH * 0.3 + 80; // WIDTH = 1024 contentPane.y = 40; contentPane.width = 557; contentPane.height = HEIGHT - 80; // HEIGHT = 540 contentPane.scrollDirection = ScrollDirection.VERTICAL; contentPane.setScrollContent( content );
Any help would be appreciated.
Solved! Go to Solution.
08-25-2011 09:01 PM
I figured it out. I had a relatively large display structure, and the application was basically getting bogged down from the event structure. As events were being passed through all of the display events. Here are the two references used to determine the issue.