<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" fontSize="12">
<mx:Script>
<![CDATA[
// 导入包含缓动函数的包
import mx.effects.easing.*;
]]>
</mx:Script>
<mx:Style>
@font-face
{
src: url('assets/钢笔行书.ttf');
fontFamily: font01;
advancedAntiAliasing: true;
}
</mx:Style>
<mx:Zoom id="zoom" duration="2500" easingFunction="Elastic.easeOut" target="{embeddedText}" />
<mx:Panel title="使用缓动函数" width="240" height="160" verticalAlign="middle" horizontalAlign="center">
<mx:Text id="embeddedText" text="使用缓动函数" fontFamily="font01" fontSize="20" rotation="10" creationComplete="zoom.play();" effectEnd="zoom.play()" />
</mx:Panel>
</mx:Application>
Flex3学习轨迹:缓动函数简单实现
最新推荐文章于 2020-08-03 11:38:28 发布