Flex Gumbo 通過smooth屬性設置BitmapGraphic對象平滑度的例子
更新時間:2009年06月09日 13:07:43 作者:
接下來的例子演示了Flex Gumbo中如何通過smooth屬性,設置BitmapGraphic對象平滑度。
復制代碼 代碼如下:
<?xml version="1.0" encoding="utf-8"?>
<Application name="BitmapGraphic_smooth_test"
xmlns="http://ns.adobe.com/mxml/2009"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
<ApplicationControlBar dock="true">
<Form styleName="plain">
<FormItem label="smooth:">
<CheckBox id="checkBox" />
</FormItem>
<FormItem label="rotation:">
<HSlider id="slider"
minimum="0"
maximum="360"
snapInterval="1"
tickInterval="15"
liveDragging="true" />
</FormItem>
</Form>
</ApplicationControlBar>
<Graphic>
<BitmapGraphic id="bitmapGraphic"
source="@Embed('assets/fx_appicon-tn.gif')"
rotation="{slider.value}"
smooth="{checkBox.selected}" />
</Graphic>
</Application>
相關文章
Flex與.NET互操作(十):FluorineFx.Net的及時通信應用(ApplicationAdapter)(一)
使用FluorineFx.Net開發(fā)的每一個實時通訊功能應用都擁有一個應用程序適配器(ApplicationAdapter),用來管理整個實時通訊應用的生命周期,以及接受和拒絕客戶端的連接等。2009-06-06

