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

Posts: 275
Registered: ‎01-21-2013
My Device: BB10 Dev Aplha
My Carrier: -

Scrolling container without Grid Layout

I found some old posts about the same topic but wanted the updates based on current/latest SDK

Is it possible to have a container scrolling without using any/Grid layout. I want to lay the components manually and want the container to scroll.

Also is it possible to add some other custom made Flash components(in the form of movieclip) even in Grid layout and have container consider the height of component for scrolling?

Posts: 275
Registered: ‎01-21-2013
My Device: BB10 Dev Aplha
My Carrier: -

Re: Scrolling container without Grid Layout

I myself has found the solution to second problem Smiley Happy


Just in case anyone else need, follow the work-around

  • Create the container with Grid layout.
  • Add any Flash components to the container with any X/Y as per requirement.
  • Create GridLayout and add a dummy textInput so that the container can be scrolled.


oGridLayout = new GridLayout();
oContainer.layout = oGridLayout;
oGridLayout.padding = 0;

var oGridData:GridData = new GridData();
oGridData.hAlign = Align.FILL;
oGridData.vAlign = Align.BEGIN;

var oDummyTextInput = new TextInput();
oDummyTextInput.layoutData = oGridData;

//And Calculate the Maximum height of the container when you custom components are added and set the padding for container accordingly.

oGridLayout.paddingTop = nTotalHeight - oDummyTextInput.height;


This will make the container scroll with any custom Flash components!