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.

Change panel height, width and title

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>