A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Sick of my tweens not being smooth. Please help?

  1. #1
    Senior Member
    Join Date
    Apr 2004

    Sick of my tweens not being smooth. Please help?

    I am not understanding why a simple alpha tween is staggering my processor every time and just making the tween seem slow and not smooth.

    I basically have a black movie clip that covers my screen, and i want it to fade up. I've tried using mctween for this and on the timeline, and it doesn't seem to make a difference.

    the fact that it's large shouldn't really matter, cause it's all vector.

    i feel like on some high end flash sites, i see really nice, smooth tweens all the time. But why is it that mine seem so far away from that?

    I've looked at cacheasbitmap, but is that the answer? My frame rate is 30...and I don't have all sorts of animation at the same time.

    What are the tricks to get just really smooth tweens?


  2. #2
    Senior Member
    Join Date
    Oct 2004
    instead of using mctweens. use AS tween class. here is sample. Your tweens will be smoother plus you can control them better. Hope this helps

    PHP Code:
    import mx.transitions.Tween
    import mx.transitions.easing.*; 

    animation.onPress xMoveTo(movieClipName,this._x,this._y); 

    myTween:Tween = new Tween(who"_x"mx.transitions.easing.Regular.easeInxStart55.53true); 
    myTween:Tween = new Tween(who"_y"mx.transitions.easing.Regular.easeInyStart16433true); 
    // You can also use _alpha too
        // Fade in 
    var myTween:Tween = new Tween(who"_alpha"mx.transitions.easing.Regular.easeIn01003true); 
    // Fade Out
    var myTween:Tween = new Tween(who"_alpha"mx.transitions.easing.Regular.easeIn10003true); 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center