Jump to content

Search the Community

Showing results for tags 'gotoandstop'.

  • 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. TweenNano.to(mc,0.3,{alpha:0,onComplete:gotoAndStop,onCompleteParams:[1]}); Hi, I'm not having much luck with the above code. It is supposed to go to Frame 1 on the Main Timeline, but so far, only NextFrame and PrevFrame work. I cannot seem to get gotoAndStop to pass the parameters Thanks
  2. Greetings and thank you in advance for reading this, I built a two frame animation that works splendidly in the CS4 authoring environment (no error nor any output other than the "trace" returns), and when the SWF file is opened with a browser, but not when the authored HTML that references the SWF is opened by the browser. The problem is that once the animation of frame 1 completes, it goes back to frame 1's default set up. It's a two-frame because logically that made sense to me. I wanted to use SWFloader and noCache, and this was the way it laid itself out to me when I developed it. I'm familiar with "gotoAndPlay" using frame numbers/names in AS3, so I built an animation that runs when a button is clicked. Upon completion of the animation, we go to frame 2 and load the external SWF. Is there something in my code that might be killing the browser? Frame 1's AS3: stop(); import com.greensock.loading.*; import com.greensock.loading.display.*; import com.greensock.*; import com.greensock.events.LoaderEvent; import com.greensock.events.TweenEvent; var var_gotoAndPlay_timer:Number = 2; mc_gotoAndPlay.addEventListener(MouseEvent.CLICK, gotoAndPlayFuntion); function gotoAndPlayFuntion(e:MouseEvent):void{ trace("call the gotoAndPlayFunction function"); var tl_gotoAndPlay:TimelineMax = new TimelineMax({delay:1, onComplete:tweenOnComplete}); tl_gotoAndPlay.insert(TweenMax.to(mc_gotoAndPlay, var_gotoAndPlay_timer, {alpha:0, y:"-50"}) ); tl_gotoAndPlay.insert(TweenMax.to(mc_overlay, var_gotoAndPlay_timer, {alpha:0}) ); tl_gotoAndPlay.insert(TweenMax.from(mc_loadingTXT, var_gotoAndPlay_timer, {delay:1, alpha:0, y:"50"}) ); } //function tweenOnComplete(e:TweenEvent):void { function tweenOnComplete() { trace("call the tweenOnComplete function"); gotoAndPlay(2); } Frame 2's AS3: stop(); trace("we are on frame 2"); var video:SWFLoader = new SWFLoader("video-cache_buster-dev-03.swf", {container:mc_holder, noCache:true, width:480, height:320, onComplete:setupButtons}); video.load(); function playSWF(e:MouseEvent):void{ video.rawContent.play(); } function pauseSWF(e:MouseEvent):void{ video.rawContent.stop(); } function setupButtons(e:LoaderEvent){ play_btn.visible = true; pause_btn.visible = true; play_btn.addEventListener(MouseEvent.CLICK, playSWF); pause_btn.addEventListener(MouseEvent.CLICK, pauseSWF); } Most of the code I've used was gleaned from help other people got on these forums, so a "thank you" to the people who helped them out because you've helped me, too. Best regards, Steve