
转载请保持文章完整性!
本文链接地址:http://blog.desizen.com/4lone/426.html
主页:joel's blog
这个例子进行的是UI Controls:Buttons:LinkButton
本文用到的图片资源:点此下载
简介:
The LinkButton control is a borderless Button control whose contents are highlighted when a user moves the mouse over it. These traits are often exhibited by HTML links contained within a browser page. In order for the LinkButton control to perform some action, you must specify a click event handler, as you do with a Button control.
例子:
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal" verticalAlign="middle" horizontalAlign="center" backgroundGradientColors="[0x000000,0x323232]" viewSourceURL="srcview/index.html"> <mx:Script> <![CDATA[ import mx.controls.Alert; ]]> </mx:Script> <mx:Panel title="LinkButton Sample" layout="vertical" color="0xffffff" borderAlpha="0.15" paddingTop="10" paddingRight="10" paddingBottom="10" paddingLeft="10" horizontalAlign="center"> <mx:Text color="0x323232" text="Sample of image embeded at compile time." /> <mx:LinkButton label="LinkButton Control" color="0x3380DD" click="{Alert.show('LinkButton Pressed');}" textDecoration="underline" fontWeight="normal" icon="@Embed('assets/arrow_icon_blue.png')" /> <!--textDecoration是定义字体样式,underline是表示下划线--> </mx:Panel> </mx:Application>
标签:FLEX, LinkButton, TourDeFlex, 例子
