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
satishmukku
Posts: 42
Registered: ‎08-30-2012
My Device: PlayBook
My Carrier: Aircel
Accepted Solution

How to move one container to another container

Hi To everyone,

 

Iam Using mutiple containers in my app. now i want to move one container to anothe by clicking the button.

 

how can i add action listener and move to another container in same page.

 

Thanks in advance

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: How to move one container to another container

You add the eventlistener to the button. On that callback function, you remove the container from its parent (removeChild) and then add that container to the new parent (addChild).

For the button, it would be:
mybutton.addEventListener( MouseEvent.CLICK, MoveContainer );

If I understand your question properly.
Please use plain text.
Contributor
satishmukku
Posts: 42
Registered: ‎08-30-2012
My Device: PlayBook
My Carrier: Aircel

Re: How to move one container to another container

Thank you sir for your response.
Please use plain text.