Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

Search the Community

Showing results for tags 'timelinemax zero duration'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GreenSock Forums
    • GSAP
    • Banner Animation
    • Jobs & Freelance
  • Flash / ActionScript Archive
    • GSAP (Flash)
    • Loading (Flash)
    • TransformManager (Flash)

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Personal Website


Twitter


CodePen


Company Website


Location


Interests

Found 1 result

  1. Hi everyone, I'm trying to do a simple thing: -Create a timelinemax instance which will play later a the end of the code -Insert some tweens (just one for the exemple here), these tweens can be zero duration ones! -Do some operations relative to my project -Then playstart the timelinemax instance and listen to the COMPLETE event import com.greensock.TweenMax; import com.greensock.events.TweenEvent; import com.greensock.TimelineMax; import flash.display.Sprite; var round:Sprite=new Sprite(); round.graphics.lineStyle(0.1); round.graphics.drawCircle(0,0,25); addChild(round); var timeLine:TimelineMax = new TimelineMax({paused:true}); timeLine.insert(new TweenMax(round, 2, {x:stage.stageWidth,y:stage.stageHeight})); // //Do some stuffs related to my project... // timeLine.play(); timeLine.addEventListener(TweenEvent.COMPLETE, completeHandler); function completeHandler(evt:TweenEvent) { trace("complete"); } With the code above, no problems, everything works fine But with a zero duration tween... import com.greensock.TweenMax; import com.greensock.events.TweenEvent; import com.greensock.TimelineMax; import flash.display.Sprite; var round:Sprite=new Sprite(); round.graphics.lineStyle(0.1); round.graphics.drawCircle(0,0,25); addChild(round); var timeLine:TimelineMax = new TimelineMax({paused:true}); timeLine.insert(new TweenMax(round, 0, {x:stage.stageWidth,y:stage.stageHeight})); // //Do some stuffs related to my project // timeLine.play(); timeLine.addEventListener(TweenEvent.COMPLETE, completeHandler); function completeHandler(evt:TweenEvent) { trace("complete"); } With this code the round is reaching its destination but no event is catched, I can't enter in the completeHandler function I read around here about the immediateRender property, but when I specify it false on my tween, that one just never starts, even if I use the play() method on the timelinemax instance... How can I do?
×