Flex Gumbo 通過smooth屬性設(shè)置BitmapGraphic對象平滑度的例子
更新時(shí)間:2009年06月09日 13:07:43 作者:
接下來的例子演示了Flex Gumbo中如何通過smooth屬性,設(shè)置BitmapGraphic對象平滑度。
復(fù)制代碼 代碼如下:
<?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>
相關(guān)文章
如何定義一個(gè)getter和seter設(shè)置的屬性可以被綁定
Define private variable for maxFontSize.2009-05-05
Flex與.NET互操作(十):FluorineFx.Net的及時(shí)通信應(yīng)用(ApplicationAdapter)(一)
使用FluorineFx.Net開發(fā)的每一個(gè)實(shí)時(shí)通訊功能應(yīng)用都擁有一個(gè)應(yīng)用程序適配器(ApplicationAdapter),用來管理整個(gè)實(shí)時(shí)通訊應(yīng)用的生命周期,以及接受和拒絕客戶端的連接等。2009-06-06

