Jump to content
Search Community

Search the Community

Showing results for tags 'Resuming Tween'.

  • 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. 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);}
×
×
  • Create New...