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

Reply
Contributor
Posts: 27
Registered: ‎03-31-2011
My Device: Developer
My Carrier: Developer

Re: Cant Add Container to 2nd Sprite

This makes the container visible...but now when I add things to the container, it doesn't actually put the items in the container. It just plops all the items ontop of eachother

Check out Go Studio on Blackberry App World!

http://appworld.blackberry.com/webstore/content/38912
Developer
Posts: 165
Registered: ‎10-26-2010
My Device: BlackBerry® PlayBook™
My Carrier: .

Re: Cant Add Container to 2nd Sprite

Call setSize again on the container after you've put the elements into it and the elements will be arranged accordingly as long as they're set up properly.

 

setSize triggers the layout functions to arrange the elements within the size you set. 

 

You can also try calling layout() on the container as well. It is supposed to position everything according to the docs, but in my experience, it doesn't work.

Highlighted
Contributor
Posts: 27
Registered: ‎03-31-2011
My Device: Developer
My Carrier: Developer

Re: Cant Add Container to 2nd Sprite

Oh my this has worked! Thanks so much!

Check out Go Studio on Blackberry App World!

http://appworld.blackberry.com/webstore/content/38912