gabriele Posted July 1, 2011 Share Posted July 1, 2011 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 More sharing options...
Carl Posted July 2, 2011 Share Posted July 2, 2011 i'm pretty certain onUpdate is always going to be locked to the ENTER_FRAME which will be tied to the framerate. i'm sure if there was a way to have quicker and more reliable onUpdates, it would be in there already. did you use onUpdateAfterEvent() with your Timer()? http://livedocs.adobe.com/flash/9.0/Act ... fterEvent() Link to comment Share on other sites More sharing options...
gabriele Posted July 4, 2011 Author Share Posted July 4, 2011 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now