Jump to content

Search the Community

Showing results for tags 'pause tween'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


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

Product Groups

  • Club GreenSock
  • TransformManager
  • Supercharge


There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Personal Website



Company Website



Found 2 results

  1. //this right here is a code inside a function which gets called multiple times and responsible to animate multiple objects from its initial position to targeted position(object and position changes after every iteration). //Also a progress bar is implemented which is responsible to show the progress of the animation. this.tween = new TimelineMax({ onUpdate: showProgress.bind(this)}); this.tween.to(from, { duration: 10, x: to.x, y: to.y, z: to.z ,}); this.tween.from(".red", this.tween.duration(), { scaleX: 0, transformOrigin: "0px 0px", ease: Linear.easeNone }, 0); function showProgress() { this.progress= new TweenLite.set(progress, { scaleX: this.tween.progress(), transformOrigin: "0px 0px" }); duration.innerHTML = "Progress:" + parseInt(this.tween.time() * 10) + "%"; } } //i want to create a function which gets all the animating objects(15) in the scene and apply pause to all of them //right now what happens is pause is being applied to only one object not all the objects. //please help pauseAnimation: function() { this.tween.pause() }
  2. Hello All I'm relatively new to Flash and Greensock and thank you in advance for your patience and assistance. The code below is for a slideshow. The movieclip slides and fades in and out and then goes to the next frame. I want the play and pause buttons to "pause/resume" the tween but it just goes to the next frame. Thank you import com.greensock.*;//imports greensock TweenEngine import com.greensock.easing.*; import com.greensock.plugins.TweenPlugin; import com.greensock.plugins.FramePlugin; stop(); //: Variables ========================= //adds images dynamically var intro_mc:g1_intro_mc = new g1_intro_mc(); addChild(intro_mc); intro_mc.x=-intro_mc.width; intro_mc.y=4; intro_mc.alpha=0; //: Functions ========================= var fadesIn_1:TweenLite = new TweenLite(intro_mc, 2, {delay:3,alpha:1, x:4, y:4,onComplete:fadesOut_1}); var fadesOut_1:TweenLite = new TweenLite(intro_mc, 2, {delay:11,alpha:0, x:stage.stageWidth, y:4, onComplete:nxt2, overwrite:false}); function nxt2():void {removeChild(intro_mc);gotoAndPlay("2");} //Button EventListeners pause_btn.addEventListener(MouseEvent.CLICK, navPause); play_btn.addEventListener(MouseEvent.CLICK, navPlay); //Button Functions function navPause(event:MouseEvent):void { fadesIn_1.pause(); trace(intro_mc);} function navPlay(event:MouseEvent):void { fadesOut_1.resume(); trace(intro_mc);}