ITeye博客

隐藏Flex控件

gdntx · 2009-09-28 10:21 · Flex · XML · Adobe · Markdown

<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>


评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。