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>
<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>
相关文章推荐
- flex如何真是隐藏一个组件
- Flex如何真正隐藏一个组件
- 在FLEX中真正的隐藏一个组件,隐藏后不占据自身的位置. (转)
- 在FLEX中真正的隐藏一个组件,隐藏后不占据自身的位置.
- 在FLEX中真正的隐藏一个组件,隐藏后不占据自身的位置. (转)
- Flex中如何利用titleIcon属性给Panel容器标题部添加一个ICON图标的例子
- 在mfc中,如何设置一个隐藏菜单栏,工具栏,状态栏,最大化、最小化、关闭按钮的窗体 分类: MFC
- AS、Flex如何循环调用一个对象的属性、方法
- 如何制作一个没有任何窗体的,隐藏在后台的程序。
- 如何建立一个彻底隐藏的系统账户
- 如何用JS实现一个DropDownList的值改变时触发另一个DropDownList的显示与隐藏
- 从零开始编写一个flex组件。FLEX自定义控件。
- 如何在flex的mxml视图中调整Imgage组件的位置
- 如何隐藏flex中AdvancedDataGrid的根节点
- 如何创建一个依赖Android AAR文件的React Native组件
- win7如何在登陆界面隐藏一个账户
- 从零开始编写一个flex组件。FLEX自定义控件
- Flex中如何利用status属性,在Alert消息框上添加一个状态信息
- Flex中如何利用Bitmap和BitmapData类复制图片到一个TileList控件的例子
- 如何使一个组件居中?