Welcome!

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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
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

mycontainer.addEventListener(Event.Resize,Resizecontainer)

function Resizecontainer(event:Event):void

{

   mycontainer.setsize(600,1200)

}

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

Your help will be appreciated.

Thank you.

 

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