您的位置:首页 > 其它

Flex中如何隐藏一个组件

2009-08-18 13:22 218 查看
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical">

<mx:Button label="hide text"
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 label="show text"
click="myText.visible=true;
myText.includeInLayout=true;" />
</mx:Application>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: