Jump to content
Search Community

onUpDate

gabriele test
Moderator Tag

Recommended Posts

Hi jack,

 

there is a way to increase the frequency of onUpDate without changing the frame rate of the movie?

 

I am working on a tail effect on a mc that I move with TweenMax.

 

I am applying blur effect and fade out tweening dots created with x and y coordinates each time onUpdate is called, but the movement has to be so fast and therefore frame rate is not enough to create cohesive tail....

 

I also tried to call dispatch an event at the beginning of the tween and start a set Timer and suing that, but it looks like I am not able to create dots that can cover the gaps...

 

 

 

Thank you very much for your help

Link to comment
Share on other sites

Thank you for the answer but yes, I am doing in this way and still there are several gaps :

 

 

moveTimer = new Timer(0);

moveTimer.addEventListener(TimerEvent.TIMER, onTimer);

moveTimer.start();

 

// var myTween =TweenMax.to(this, .5, {bezierThrough:[{x:this, y:312}, {x:300, y:345}], orientToBezier:true, ease:Bounce.easeOut});

var myTween = TweenMax.to(this, .28, {bezierThrough:[{x:BezierX, y:BezierY}, {x:nX, y:nY}], scaleX:ScaleN, scaleY:ScaleN, ease:Sine.easeOut, onComplete:remove});

 

function onTimer(event:TimerEvent):void {

 

event.updateAfterEvent();

 

var sprMain : Sprite = addChild(new Sprite()) as Sprite;

 

sprMain.graphics.clear();

 

sprMain.alpha = .8;

 

sprMain.graphics.beginFill(0xFFFFFF);

 

sprMain.graphics.drawCircle(event.currentTarget.x, event.currentTarget.y, event.currentTarget.width / 2);

}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...