码迷,mamicode.com
首页 > 其他好文 > 详细

如何在Flex标签中写事件函数

时间:2015-08-17 17:04:33      阅读:88      评论:0      收藏:0      [点我收藏+]

标签:

在事件变量值中直接写函数语句,如果是多条语句,则用“;”号隔开。

示例如下:

<mx:Box id="label" backgroundColor="{outColor}" width="{labelWidth}" height="{labelHeight}"
                horizontalAlign="center" verticalAlign="middle"
                buttonMode="true" mouseOver="label.setStyle(‘backgroundColor‘,overColor)"
                mouseOut="label.setStyle(‘backgroundColor‘,outColor)">
            <s:Label id="plotButton" text="{plotLabel}" click="button1_clickHandler(event)"/>
        </mx:Box>

如何在Flex标签中写事件函数

标签:

原文地址:http://www.cnblogs.com/233liyj/p/4736884.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!