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 Contributor
Posts: 5
Registered: ‎03-20-2011
My Device: Playbook
My Carrier: None
Accepted Solution

Scrollpane broke on device

Hey there,


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 );

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.

New Contributor
Posts: 5
Registered: ‎03-20-2011
My Device: Playbook
My Carrier: None

Re: Scrollpane broke on device

Hey all,


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.