3 Replies Latest reply on Jan 5, 2007 11:03 AM by Newsgroup_User

    then?

    helpLaura Level 1
      I have this code below,

      mc_gatepadriver.onPress = function() {
      if (_root.mc_lockwater._currentframe == 15)
      {
      mc_lockwater.gotoAndPlay(40);
      mc_gatepadriver.play(2);
      }
      }

      What i want to do is after it has played frame 40 of mc_lockwater i then want it to go on to play another frame from this movie.

      Is there a function such as "then" that can be used to make this happen?
        • 1. Re: then?
          Level 7
          Simple answer, put a gotoAndPlay on frame 40.

          --

          Dan Mode
          --> Adobe Community Expert
          *Flash Helps* http://www.smithmediafusion.com/blog/?cat=11
          *THE online Radio* http://www.tornadostream.com
          *Must Read* http://www.smithmediafusion.com/blog


          "helpLaura" <webforumsuser@macromedia.com> wrote in message
          news:enm06h$aqp$1@forums.macromedia.com...
          >I have this code below,
          >
          > mc_gatepadriver.onPress = function() {
          > if (_root.mc_lockwater._currentframe == 15)
          > {
          > mc_lockwater.gotoAndPlay(40);
          > mc_gatepadriver.play(2);
          > }
          > }
          >
          > What i want to do is after it has played frame 40 of mc_lockwater i then
          > want
          > it to go on to play another frame from this movie.
          >
          > Is there a function such as "then" that can be used to make this happen?
          >


          • 2. Re: then?
            helpLaura Level 1
            But on other occassions, i need it to stop at this point so can't put on the actual movie clip frame its self.

            any other ways i can do it?

            quote:

            Originally posted by: Newsgroup User
            Simple answer, put a gotoAndPlay on frame 40.

            --

            Dan Mode
            --> Adobe Community Expert
            *Flash Helps* http://www.smithmediafusion.com/blog/?cat=11
            *THE online Radio* http://www.tornadostream.com
            *Must Read* http://www.smithmediafusion.com/blog


            "helpLaura" <webforumsuser@macromedia.com> wrote in message
            news:enm06h$aqp$1@forums.macromedia.com...
            >I have this code below,
            >
            > mc_gatepadriver.onPress = function() {
            > if (_root.mc_lockwater._currentframe == 15)
            > {
            > mc_lockwater.gotoAndPlay(40);
            > mc_gatepadriver.play(2);
            > }
            > }
            >
            > What i want to do is after it has played frame 40 of mc_lockwater i then
            > want
            > it to go on to play another frame from this movie.
            >
            > Is there a function such as "then" that can be used to make this happen?
            >





            • 3. Re: then?
              Level 7
              OK, then at the end of that clip you insert on frame 40, tell the main
              timeline to play.


              --

              Dan Mode
              --> Adobe Community Expert
              *Flash Helps* http://www.smithmediafusion.com/blog/?cat=11
              *THE online Radio* http://www.tornadostream.com
              *Must Read* http://www.smithmediafusion.com/blog


              "helpLaura" <webforumsuser@macromedia.com> wrote in message
              news:enm4cb$fr2$1@forums.macromedia.com...
              > But on other occassions, i need it to stop at this point so can't put on
              > the
              > actual movie clip frame its self.
              >
              > any other ways i can do it?
              >
              >
              quote:

              Originally posted by: Newsgroup User
              > Simple answer, put a gotoAndPlay on frame 40.
              >
              > --
              >
              > Dan Mode
              > --> Adobe Community Expert
              > *Flash Helps* http://www.smithmediafusion.com/blog/?cat=11
              > *THE online Radio* http://www.tornadostream.com
              > *Must Read* http://www.smithmediafusion.com/blog
              >
              >
              > "helpLaura" <webforumsuser@macromedia.com> wrote in message
              > news:enm06h$aqp$1@forums.macromedia.com...
              > >I have this code below,
              > >
              > > mc_gatepadriver.onPress = function() {
              > > if (_root.mc_lockwater._currentframe == 15)
              > > {
              > > mc_lockwater.gotoAndPlay(40);
              > > mc_gatepadriver.play(2);
              > > }
              > > }
              > >
              > > What i want to do is after it has played frame 40 of mc_lockwater i then
              > > want
              > > it to go on to play another frame from this movie.
              > >
              > > Is there a function such as "then" that can be used to make this happen?
              > >
              >
              >
              >

              >
              >
              >