在FLEX中真正的隐藏一个组件

发布于 2010-03-24  1.04k 次阅读


<?xml version="1.0" encoding="utf-8"?>
<?xml:namespace prefix = mx /><mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical">

<mx:Button
click="myText.visible=false;
myText.includeInLayout=false;" />
<mx:Text id=myText text="hello,
this text will be hidden or shown,
depending on the buttons">
<mx:Button
click="myText.visible=true;
myText.includeInLayout=true;" />


有些随风有些入梦