Change panel height, width and title

With the help of a button's click we can change the height, width , and title of a panel. In the given tutorial we will learn how to change all these attributes with a single click event.

Ads

Change panel height, width and title

     

 

With the help of a button's click we can change the height, width , and title of a panel. In the given tutorial we will learn how to change all these attributes with a single click event.

 

 

 

ButtonNPanel.mxml

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
  <mx:Panel title="Unchanged" id="pan">
  <mx:Button id="First" label="Change Title" click="pan.title='changed' ; pan.width=205;pan.height=250"/>
  </mx:Panel>
  </mx:Application>


  

 

Advertisements

Ads
Share on Google+Share on Google+

Change panel height, width and title

Posted on: April 3, 2006 If you enjoyed this post then why not add us on Google+? Add us to your Circles

Advertisements

Ads
 

Discuss: Change panel height, width and title  

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0

Ads

 

Ads