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

Regular Contributor
Posts: 65
Registered: ‎11-21-2011
My Device: Playbook developer
My Carrier: developer

Resize the height and width of a container.

Hello every one,

I have use a container and sized it  mycontainer.setsize(600,600).

Now how can I resize the given size of the container. I  had tried for it by using


function Resizecontainer(event:Event):void




But it is not working... How to get it.

Your help will be appreciated.

Thank you.


Posts: 508
Registered: ‎01-19-2011
My Device: My Trusty Red Plane
My Carrier: Outer Space

Re: Resize the height and width of a container.

i had problems with that function, too. have you set the sizeunit and/or the containerflow? otherwise, what i did in the end was setting width and height of the container directly instead of using that size function

I'm a bird from outer space. But I'm not flappy o.o
Posts: 235
Registered: ‎12-13-2011
My Device: Curve 9380
My Carrier: Vodafone-IN

Re: Resize the height and width of a container.

Remove the container first, then set container.width=some_value; container.height=some_value;