package ch13_1
{
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.Graphics;
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class WipeText extends MovieClip
{
public function WipeText()
{
var cv:MovieClip = new MovieClip();
var g:Graphics = cv.graphics;
var bmd:BitmapData = new picture(1,1);//在库中的位图,链接名:pictrue
var bm:Bitmap = new Bitmap(bmd);
cv.addChild(bm);
addChild(cv);
TransitionManager.start(cv, {type:Wipe, direction:Transition.IN, duration:2, easing:None.easeNone, startPoint:1});
}
}
}
AS3.0划入划出效果
最新推荐文章于 2023-02-17 22:53:36 发布