Cant find flash answer

Out of context: Reply #2

  • Started
  • Last post
  • 5 Responses
  • PonyBoy0

    I'm curious if you could use the 'onComplete' and 'onCompleteParams' parameters w/Timelinemax (it's greensock... so I'm thinking yes)... use that function and set a variable after each image completes the fade?

    myTimelineImages.insert( TweenLite.to(clips[i], 2, {alpha:0}), i * 6 + 6, onComplete:setCurrentImgVar, onCompleteParams: [ i ] );

    function setCurrentImgVar ( ) {
    currentImage = i ;
    }

    ... something like that - you'll have to verify the parameter names (onComplete, onCompleteParams)...

    • function setCurrentImgVar ( i ) {
      currentImage = i ;
      }...forgot the parameter in the function :)
      PonyBoy

View thread