how buttons inside a MC go backward?

Ask a Question related to Macromedia Flash Actionscript, Design and Development.

  1. #1

    Default how buttons inside a MC go backward?

    Hi there!

    I?m programing 10 buttons inside a MC, each button moves the timeline to a
    desired frame, where there's a similar set of buttons to move the timeline
    forward again. Now, the question is can I move backward if I change frame 10 to
    frame 1? And is it even possible to move backward? If yes, please help advise
    me on the actionscript.

    Currently, the successful script to move it forward is this:
    on (release) {
    gotoAndPlay("frame 10 of 30");
    }


    Thanks a lot
    :)


    scmk Guest

  2. Similar Questions and Discussions

    1. Radio Control Buttons Inside a Data Repeater.
      I know this is probably pretty trival. I am trying to put a radio button inside a repeater control. That will allow me to select each row one by...
    2. Radio buttons inside Accordion tab?
      So I upgraded to 1.6.1 and fixed my IE issues, but it broke my radio buttons. On my page (http://www.riverviewbiblecamp.com/menu.php) I've got radio...
    3. Buttons for links inside flash form
      Is it possible to place buttons inside a flash from and use these buttons to exit the form and go to another page? I assume using GetURL would be...
    4. Buttons inside Buttons Help Please
      Yo! Hoping someone can help me out - who isn't? Anyway, I've got an instance of a button... we'll call it "Producers". in the over state of...
    5. buttons inside MCs
      I have a movie clip as a rollover menu, which as 4 buttons within it. The movie clips has the following code attached to it, making the MC play...
  3. #2

    Default Re: how buttons inside a MC go backward?

    to play a timeline backwards you need to initiate a loop that contains a
    prevFrame() statement or its equivalent. for example:

    reverseI=setInterval(reverseF,80,lastframe); // lastframe is the number of
    the last frame to play
    function reverseF(lastF){
    prevFrame();
    if(_currentframe==lastF){
    clearInterval(reverseI);
    }
    }

    kglad Guest

  4. #3

    Default Re: how buttons inside a MC go backward?

    Hi there!
    Thanks for your help! I'm so sorry but I'm a newbie on actionscript so could
    you advise me further to complete the code? Like for example, where I need to
    put in what....like what you did for the last frame advice.....

    Thanks very much!
    :)
    Web designer

    scmk Guest

  5. #4

    Default Re: how buttons inside a MC go backward?

    the code for the function reverseF() can be attached to any frame on the
    timeline that contains your buttons that you want to initiate the reverse
    movieplay. the reverseI=setInterval() code should be attached to your
    button(s) that will initiate the reverse play.

    kglad Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139