Mar 24

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

windshow , 14:04 , 风语 , 评论(0) , 引用(0) , 阅读(683) , Via 本站原创 | |
<?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;" />
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]