血色残阳的专栏
登录
注册
全站
当前博客
空间
博客
好友
相册
留言
王军
ID:wangjun_pfc
共
71373
次访问,排名
1374(-1)
好友
5
人,关注者
9
人
wangjun_pfc的文章
原创 251 篇
翻译 0 篇
转载 205 篇
评论 47 篇
最近评论
muchool:
再推荐一个
31.码库:http://www.muchool.com
专门针对软件开发人员量身定做的源代码搜索引擎,无须下载就可以查看开源项目的所有源代码,数十种语言的语法着色提高代码的可读性.
lqlzxl:
.mxml怎样转化为.swf格式
szs0434:
我的系统是redhat的,按照你的方法安装,没有成功.
szs0434:
我的系统是redhat的,按照你的方法安装,没有成功.
szs0434:
我的系统是redhat的,按照你的方法安装,没有成功.
文章分类
.net技术
(RSS)
AJAX技术
(RSS)
Eclipse
(RSS)
flex技术
(RSS)
j2ee技术
(RSS)
j2me技术
(RSS)
j2se技术
(RSS)
JavaScript技术
(RSS)
Joomla
(RSS)
Linux
(RSS)
SCJP考题
(RSS)
SOA技术
(RSS)
本体
(RSS)
各种开发工具的使用
(RSS)
股票
(RSS)
精典文章
(RSS)
课程
(RSS)
敏捷开发
(RSS)
嵌入式系统
(RSS)
软件工程
(RSS)
手机
(RSS)
数据库
(RSS)
团队管理
(RSS)
学习心得
(RSS)
收藏
代码下载站
技术学习站
相册
C技术网站
CSDN.NET - 中国最大的IT技术社区
java技术网站
存档
2008年08月(1)
2008年07月(1)
2008年06月(8)
2008年05月(17)
2008年04月(67)
2008年03月(85)
2008年02月(3)
2008年01月(38)
2007年12月(60)
2007年11月(37)
2007年10月(91)
2007年09月(9)
2007年08月(10)
2007年07月(19)
2007年06月(10)
软件项目交易
订阅我的博客
ButtonBar实例
收藏
新一篇: ComboBox控件
|
旧一篇: RadioButton和RadioButtonGroup按钮的实现
ButtonBar.mxml
<?
xml version="1.0" encoding="utf-8"
?>
<
mx:Application
xmlns:mx
="http://www.adobe.com/2006/mxml"
layout
="absolute"
creationComplete
="initUI()"
>
<
mx:Style
source
="style.css"
></
mx:Style
>
<
mx:Script
>
<![CDATA[
import mx.events.ItemClickEvent;
internal function initUI():void{
var data_arr:Array=new Array();
data_arr.push("flex");
data_arr.push("flash");
data_arr.push("flasg media server");
data_arr.push("flex data server");
btnb.dataProvider=data_arr;
}
internal function btn_click(evt:ItemClickEvent):void{
tip_txt.text="点击的按钮:"+evt.index+":"+evt.label;//ActionScript给Buttonbar实例添加数据源
}
]]>
</
mx:Script
>
<
mx:ButtonBar
x
="27"
y
="30"
id
="btnb"
itemClick
="btn_click(event)"
styleName
="Btns"
>
<!--
在styleName中直接使用样式名,去掉前面的逗号
-->
<!--
MXML代码中对ButtonBar的itemlick事件进行了监听,用户点击ButtonBar中的任一按钮时都会
激发itemClick事件,我们可以用它来监控用户点击行为,获得点击按钮的位置
-->
</
mx:ButtonBar
>
<
mx:Label
x
="27"
y
="81"
text
="没有点击按钮"
id
="tip_txt"
/>
</
mx:Application
>
style.css
Application{
fontSize:12;
}
.Btns{
buttonStyleName:"mybuttonBarButtonStyle";
firstButtonName:"mybuttonBarFirstButtonStyle";
lastButtonName:"mybuttonBarLastButtonStyle";
}
.mybuttonBarButtonStyle{
color:#990000;
}
.mybuttonBarFirstButtonStyle{
cornerRadius:4;
}
.mybuttonBarLastButtonStyle{
cornerRadius:25;
}
发表于 @
2008年01月23日 17:54:00
|
评论(
loading...
)
|
编辑
新一篇: ComboBox控件
|
旧一篇: RadioButton和RadioButtonGroup按钮的实现
评论:没有评论。
发表评论
姓 名:
主 页:
校验码:
看不清,换一张
登录