How to Play a MovieClip Backward via a Button

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

  1. #1

    Default How to Play a MovieClip Backward via a Button

    Hi all.
    I have a movieclip that is a tween. It is a series of scrolling thumbnails
    across the bottom. The movie clip runs when I mousover a hidden button. I want
    to reverse that movieclip with another button. What is the best way to do that?

    Thanks......



    rmletc Guest

  2. Similar Questions and Discussions

    1. MovieClip wont play
      Hi everyone, After instanciating a MovieClip from the library I try to have it play by calling mc.gotoAndPlay(1) and it wont start. If I call...
    2. function that should play a movieClip
      Hello everybody, i'm new here, I tried to search in the NG for the answer but I didn't find nothing, so i'm going to ask it. I have a movieClip on...
    3. how to play a movieclip in reverse, help please
      hello. could someone please tell me how to play a movieclip in reverse from the last frame to the first. thankyou.
    4. button movieclip action
      Happy new year all, I have a newyear question. I have a movieclip on my main timline and a button which resides on the same timeline. When rolled...
    5. trying to get a button to work within a movieclip
      Hi There -- I am trying to do something that I do not think is that complex, but I am frustrated! So, let's see if anyone can help me here! I...
  3. #2

    Default How to Play a MovieClip Backward via a Button

    Hi all.
    I have a movieclip that is a tween. It is a series of scrolling thumbnails
    across the bottom. The movie clip runs when I mousover a hidden button. I want
    to reverse that movieclip with another button. What is the best way to do that?

    Thanks......



    rmletc Guest

  4. #3

    Default Re: How to Play a MovieClip Backward via a Button

    something like that :

    var OnRun = false;
    var Backward = false;

    onEnterFrame(){
    if ( OnRun ){ // check if the movie is stopped or not
    if ( Backward ){
    prevframe();
    }
    else
    {
    nextframe();
    }
    }
    }

    now on buttons

    PlayButton.on(press){
    OnRun = true;
    Backward = false;
    }
    PlayButton.on(release){
    OnRun = false;
    }
    BackButton.on(press){
    OnRun = true;
    Backward = true;
    }
    BackButton.on(release){
    OnRun = false;
    }

    --

    Pierre Alain

    [email]pie@lifnet.com[/email]


    "rmletc" <webforumsuser@macromedia.com> a écrit dans le message de
    news:c24hnl$prq$1@forums.macromedia.com...
    > Hi all.
    > I have a movieclip that is a tween. It is a series of scrolling
    thumbnails
    > across the bottom. The movie clip runs when I mousover a hidden button. I
    want
    > to reverse that movieclip with another button. What is the best way to do
    that?
    >
    > Thanks......
    >
    >
    >

    PierreAlain Guest

  5. #4

    Default Re: How to Play a MovieClip Backward via a Button

    [url]http://home.hccnet.nl/john.mulder/flash/playreverse.zip[/url]

    --
    ----------------------------------------------------------------------------
    -----------
    RESOURCES
    [url]http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash[/url]
    ----------------------------------------------------------------------------
    -----------
    TUTORIALS at
    [url]www.laiverd.com[/url]
    Flash & PHP Emailform
    Using textfiles in Flash


    Laiverd.COM Guest

  6. #5

    Default Re: How to Play a MovieClip Backward via a Button

    yourButton.onPress = function(){
    yourMC.onEnterFrame = function(){
    yourMC.prevFrame();
    }
    }

    yourButton.onRelease = function(){
    delete yourMC.onEnterFrame;
    }

    Otherwise place a mirror in front of the monitor and gaze into it ...

    HTH,

    -c.

    CesareRocchi 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