public class DragEffect extends Sprite { private var regularTweenX:Tween; private var regularTweenY:Tween; private var noneTweenX:Tween; private var noneTweenY:Tween;
private var goalX:Number; private var goalY:Number;
[Embed(source="com/gde/assets/light.swf", symbol="Light")] private var Light :Class;
private var light:*;
private var timer:Timer;
public function DragEffect() { //设置flash在网页缩放的时候,不缩放内部元件,而可以裁切显示内容 stage.scaleMode = StageScaleMode.NO_SCALE; stage.align = StageAlign.TOP_LEFT;
timer = new Timer(3); timer.addEventListener(TimerEvent.TIMER, easeMoveHandler);