Mega Code Archive

 
Categories / Flex / Container
 

Using a negative value in the x property to hide a component off screen

<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Button id="button1" label="Show the other button" x="120" y="50" click="button2.x=155;" />     <mx:Button id="button2" label="Hello!" x="-100" y="80" /> </mx:Application>