Jump to content
Search Community

mrkantz

Members
  • Posts

    3
  • Joined

  • Last visited

mrkantz's Achievements

0

Reputation

  1. Notice how your first example was using 'alpha' while the second example used '_alpha'. That was probably the reason it wasn't working. I would suggest just doing this: TweenLite.to (mc, 2, {_alpha:100, yoyo:true, repeat:1});
  2. Sorry, just realized the code is a little messy right now. I'm going to have multiple balls hovering, so that's why it's passing itself into the funciton for no apparent reason right now
  3. Hi, I'm currently trying to yoyo a movieclip to give the effect of hovering. However, I'm getting a strange stutter with the looping animation. If you watch the loop it will eventually jump down, almost like its resetting. Here is an example: http://dl.dropbox.com/u/1345489/Ball_Hover.html I'm using CS5 - AS2 and FP8 There is a single movieclip on the stage with the instance name 'ball1'. The ball is a simple circle drawn in flash. Here is the code: import com.greensock.*; import com.greensock.plugins.*; import com.greensock.easing.*; TweenMax.to (ball1, 1.5, {_y:125, ease:Back.easeOut, onComplete:hover, onCompleteParams:[ball1]}); function hover (clip:MovieClip):Void { TweenMax.to (ball1, .9, {_y:ball1._y - 8, ease:Sine.easeInOut, yoyo:true, repeat:20}); } I've been using TweenMax for a couple years now and haven't run into this before so I'm not sure if I'm doing something wrong. Any help would be greatly appreciated. Thanks!
×
×
  • Create New...