虚位以待(AD)
虚位以待(AD)
首页 > 网页特效 > Flash > Flex Gumbo 通过smooth属性设置BitmapGraphic对象平滑度的例子

Flex Gumbo 通过smooth属性设置BitmapGraphic对象平滑度的例子
类别:Flash   作者:码皇   来源:互联网   点击:

接下来的例子演示了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 Gumbo smooth BitmapGraphic