flex按钮控制文本标签内容
2014-12-03 21:56
176 查看
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Array id="coffeeArray"> </mx:Array> <mx:Script> <![CDATA[ import mx.controls.Alert; public function addToCart():void { txt.text="OK"; } ]]> </mx:Script> <mx:Label id="txt" text="hello" height="100" x="32" y="19"/> <mx:Button label="Add to Cart" click="addToCart()" x="149" y="97"/> </mx:Application>
相关文章推荐
- 使用权限标签控制View层展示的内容
- 使用权限标签控制View层展示的内容
- js控制文本内容闪烁
- Flex中如何通过selectedButtonTextStyleName样式,设置ToggleButtonBar选中按钮文本颜色
- Flex中如何通过verticalScrollPolicy属性,控制VBox容器内容超过容器大小时滚动条自动显示与否
- 使用权限标签控制View层展示的内容
- Flex中通过设置textAlign和labelStyleName样式设置FormItem容器中标签文本对齐方式的例子
- 使用权限标签控制View层展示的内容
- 使用权限标签控制View层展示的内容
- Flex中如何修改Alert控件中默认按钮标签(button label)的例子
- 使用权限标签控制View层展示的内容
- 使用权限标签控制View层展示的内容
- 使用权限标签控制View层展示的内容
- Flex中如何创建复数行文本内容的List
- 使用权限标签控制View层展示的内容
- 使用权限标签控制View层展示的内容
- 使用权限标签控制View层展示的内容
- 在FLEX中,拷贝文本内容到剪贴板.
- Flex 文本内容循环滚动效果
- Flex中通过textAlign样式在一个按钮(Button)控件中设置标签(label)对齐方式的例子