Play a movieclip in reverse

I'm creating a movieclip that shows some photo samples with
two arrows at the bottom. I want it so that if the user presses on
the right arrow, the movie clip plays forward and goes toward the
end to "shuffle" through the image samples. But I would also like
them to be able to press on the left arrow and be able to play the
movieclip backwards to "shuffle" back toward the beginning of the
images.
The closest thing I can think of that would be similar to
this would be the way you can shuffle through album images in
iTunes.
I just need to know the Actionscript 2.0 code to play the
movieclip in reverse.
Thanks.

I settled on a solution, maybe not the best one, but it
works.
I made a movieclip which goes to frame 2 on rollOver:
on(rollOver){
gotoAndStop(2);
_global.backward = 1;
on(rollOut){
gotoAndStop(1);
_global.backward = 0;
_parent.stop();
On the second frame of that movielcip I placed another
movieclip outside of the stage and put the following code on it:
onClipEvent(enterFrame){
_parent._parent.gotoAndStop(_parent._parent._currentframe -
1);
if(_parent._parent.tn1._currentframe != 1 &&
_parent._parent._currentframe == 1) {
_parent._parent.gotoAndStop(33);
The extra code about going to frame 33 is to get the main
movieclip with the picture thumbnails to loop and the check to make
sure tn1 isn't on frame 1 is just to make it stop going backward
once it's at the very beginning of the photos. The _global.backward
variable it just to make sure the pictures cycle properly.
Instead of having a really long movieclip with numerous
photos scrolling from offscreen I just made one movieclip and put
each photo thumbnail on a seperate frame within it. Then, I just
put six instances of that movieclip on the screen at one time and
once the first one has gotten offscreen I just have some code cycle
all of them so it looks like one continuous scroll.
The only problem I'm still having is that when it loops in
reverse (meaning it jumps from frame 1 to frame 33) there is a
slight jerking of all the thumbnails. I'm not sure why this is
happening because when playing forward, they look perfectly smooth
even when the movieclip loops.
If anyone has a suggestion, let me know.
Thanks.

Similar Messages

  • How do I get my ipod to play a playlist from reverse order? (Start with recently added song instead of first added)

    How do I get my ipod to play a playlist from reverse order? (Start with recently added song instead of first added)
    So I'm adding new songs to a very old playlist? Is there anyway that when I add them, they automatically go to top of playlist? How about getting one song to the top of a playlist.  That drag to arrange function is very annoying because it is slow and the playlist does not scroll up very well on a PC.

    Make a new playlist by pressing the little plus button at the very lower left corner of iTunes. An new playlist will appear in the Source pane called "untitled playlist". While the name is highlighted, you can change it to whatever you want. Drag all of the tracks from all the albums that comprise a single book to that playlist. Sync that playlist to your iPod.

  • My I-Pod plays all podcast in reverse order such as 3.2.1 no matter how I arrange them in I-Tunes.  How do I get my I-Pod to play in the proper 1,2,3 sequence?

    My 3rd gen I-Pod plays all podcast in reverse order, even if I manually try to load it.  I will only automatically play in 3,2,1 order.  Even brought it to the Apple Store and they couldn't figure it out either.  Even bought another I-Pod and still plays in reverse order.  Any ideas out there?
    Thanks in advance for any help, Ty

    They did not order the podcasts correctly in the playlist then.  Several people, including myself, have been able to play podcasts in sequential order. 
    When viewing the playlist in iTunes, look to the far left of each episode. There should be a number next to it.  This is the ordering of the playlist.  Sort the playlist in sequential order and view the numbering along the leftmost column and see if the ordering matches up as desired. If they don't, you'll need to drag and drop tracks until they are.
    Once the ordering is as desired, right->click on the playlist and choose Copy to Play Order. Then resync the playlist over to your iPod.
    B-rock

  • Playing a Movie in Reverse

    Hello,
    I have a .mov file which is basically a building that was rendered by one of designers here. I have inserted into a Keynote Presentation however I would like to be able to play the .mov in reverse after i have played it moving forward. I have searched around in Quicktime Pro help but do not see any answers to this question. Any ideas?
    Thanks in Advance!

    With the video in keynote:
    Rewind movie (by frame if paused) J (hold down)
    Pause or play movie K
    Fast-forward movie (by frame if paused) L (hold down)
    Jump to beginning of movie I
    Jump to end of movie O
    Look under the help menu/keyboard shortcuts in keynote for more shortcuts...
    Also in keynote if you hold the cursor over the video...the video controls will appear (set this in keynote's preferences).

  • Export animation to SWF and plays as MovieClip

    Hi to EveryBody.
    We are evaluating the Rome AIR  applicaction in order to create presetations and swf animations.
    We  have made an animation, the Anim Clips Animation,  without anything  more.
    We have exported to SWF (Flash Player Compatible)  and everything went ok.
    We have a special player made  in flex that plays de SWFs Casting it as a MovieClip and when the object  is Casted the result is a null object.
    We have had  this problems  with SWFs compiled with flash player in AS2 but if it was  compiled in AS3 it works.
    Any idea or solutions.
    Thanks
    The player Code for Flash Builder 4: When you  click the button de conversión is realized and the movie variable is  null.
    <?xml version="1.0"?>
    <!-- controls\swfloader\SWFLoaderSimple.mxml-->
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:mx="library://ns.adobe.com/flex/mx">
         <fx:Script>
             <![CDATA[
                 function convert():void{
                     var movie:MovieClip = player.content as MovieClip;               
                     movie.gotoAndPlay(1);
             ]]>
         </fx:Script>
         <s:VGroup>
             <mx:SWFLoader source="Rome.swf" id="player"/>
             <s:Button label="Convert" click="convert()"/>
         </s:VGroup>
    </s:Application>

    Fixed Layout EPUB files support most of the animation you can do in InDesign.
    https://indesignsecrets.com/lynda-com-course-creating-fixed-layout-epubs-indesign-cc.php

  • How can I play an animation in reverse only if the symbol that contains the animation is visible? if the symbol is not visible have the trigger no longer target that symbol?

    Hi
    I have a button the does two functions at the same time. it plays a symbol's animation in reverse (in order to hide it) and it slides an element. the symbols animation is triggered by another button (which is not relevant) . So my problem is that if the animation has been triggered first than when the button is pushed the animation plays in reverse, the symbol hides and everything is fine, but if a push the button before that the animation will flash in reverse. SO how can I tell it to only play in reverse when the symbol's animation has run. I know it's an if / else statement but i have no idea how to do it.
    thx

    Here is a case close to your issue:
    if ( sym.getSymbol("Symbol1").$("Text").is(":visible") ) { sym.getSymbol("Symbol1").playReverse(); }
    else { sym.getSymbol("Symbol1").play(); }
    Demo files ==> isVisible.zip - Box

  • AS3 plays all Movieclips in timeline before a given frame?!?

    Ok, I am going to try to explain this problem as best I can,
    but it is kind of hard to put into words... It seems like a bug to
    me, but I could be wrong, maybe this is the way AS 3 supposed to
    work.
    I have 4 movieClips in my library named
    "MC1","MC2,"MC3","MC4" Each with 2 layers and 2 frames, on Layer 2
    is just a textfield that says what movieclip it is, Like "MC1"
    which spans 2 frames, on layer 1 I have trace commands...
    On frame 1
    trace("MC1 Start") //this obviously changes to MC2
    Start...etc with whatever movieclip i am in
    on Frame 2
    trace("MC1 Stop")
    On the Stage timeline here is what I have
    Frames 1-4 -- Blank
    Frames 5-10 -- MC1
    Frames 10-14 -- MC2
    Frames 15-19 -- MC3
    Frames 20-24 -- MC4
    If in frame one I say--
    gotoAndStop(15)
    which is where MC3 resides, here's what I get in the output
    window:
    MC1 Play Start
    MC2 Play Start
    MC3 Play Start
    MC3 Play Stop
    If I put:
    gotoAndStop(20)
    Which is where MC4 resides, heres what output says:
    MC1 Play Start
    MC2 Play Start
    MC3 Play Start
    MC4 Play Start
    MC4 Play Stop
    So in AS3 if you go to a frame number each and every
    movieclip before that given frame is loaded into memory and the
    first frame plays?!? Is this how it is supposed to work?
    The reason I even started examining this, is because if you
    have an embedded sound in any of those movieclips and you go to
    frame 20, all embeded sounds before that clip will play as well. Am
    I missing something here, or is this a bug? Please let me know. If
    there are any questions about the problem, I will be happy to
    provide an .fla.
    Thanks

    Thanks for the reply, but this makes no difference. The
    results are still the same.

  • Play multiple MovieClips videos in sequence

    Hi,
    I've multiple videos stored as MovieClip objects and would like to merge them into a single MovieClip video object in order to play all of them in sequence (so that a user thinks it's a single longer video). Is it possible?
    Thanks a lot!

                   yes very possible.
    there are a few ways to do this, but this is the route i would go.
    if you are good with OOP let me know and i will create the class's for you otherwise, also is there sound involved?
    var index:int=0
    var getTo:int=0
    var currentClipInPlay:MovieClip
    var clipsToPlay[LoaderA,LoaderB,LoaderC,LoaderD]   //assuming these are your loaders of the movieCLips
    function beginPlaying(start:,finish:int){
         var startPlayingMovie:MovieClip=turnInToMc(start)
                            index=start
                             getTo=endValue
                            assumePlay( startPlayingMovie)
    protected function assumePlay(starting:MovieClip){
              if(index<getTo){
                   addChild(starting)
                   resume()
              }else{
                   pause()
    function turnInToMc(index):MovieCLip{
    Loader(clipsToPlay[index]).content as MovieClip
    function pause(){
    mc:MovieCLip= turnInToMc(index).stop()
        removeEventListener(Event.ENTER_FRAME,onFrame)
    currentClipInPlay=null
    function resume(){
    currentClipInPlay=turnInToMc(index)
    if(!hasEventListener(Event.ENTER_FRAME)){
         addEventListener(Event.ENTER_FRAME,onFrame)
    function onFrame(e:Event){
      var tFrames=currentClipInPlay.totalFrames
          if((currentClipInPlay.currentFrames==tFrames){
                   stopAndPlayNext(currentClipInPlay)
         }else{
              currentClipInPlay.nextFrame()
    function stopAndPlayNext(mc:MovieClip){
    pause()  
    index++
    assumePlay(turnInToMc(index))
    removeChild(mc)
    mc.gotoAndStop(0)
    I'll explain when i get to work what this is

  • Play a movieclip once, then go to the next frame on the main timeline

    Hello, I'm sorry for the long topic's title.
    I have an animation I'd like to use as an INTRO in my flash
    movie. I will joint it inside a movieclip, giving it the istance
    name "INTRO". And I position it in the first frame of the main
    timeline.
    How can I make possible that played once my intro (my
    movieclip) the player jumps to the second frame of the timeline,
    named by the istance "HOME".
    Is it possible?
    Thankyou very much for your help,
    and great things.
    Stebianchi

    on intro's first frame place:
    if(!this.played){
    _level0.gotoAndStop(2);
    and on its last frame place:
    this.stop();
    this.played=true;
    _level0.gotoAndStop(2);
    // or this.removeMovieClip(), if this is no longer ever used.
    and if you use this, you don't need the frame 1 code.

  • Remove attached movieclip in reverse order of placement

    Is it possible in AS2 to remove an attached movieclip instance in reverse order? I want to give the user the ability to click an erase button and remove the most recent instance of an attached movie. I have tried .swapDepths and getting inconsistent results. Here is what I have:
    this.onMouseDown = function(){
    var drawdot:MovieClip;
    drawdot = this.attachMovie("dot", "dot_mc", this.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
    var nextdepth = this.getNextHighestDepth();
    trace (nextdepth);
    clear_btn.onPress = function() {
    dot_mc.swapDepths(100000)
    removeMovieClip(dot_mc);
    Thanks for your time.

    Perhaps using an array to store the movie clips names that are attached would work. Then you could use the array.pop() method to get the last element entered and remove it from the array at the same time.
    I bolded the lines I changed/added in your code.
    var i:Number = 0;
    var dotArrays = new Array();
    this.onMouseDown = function(){
    var drawdot:MovieClip;
    drawdot = this.attachMovie("dot", "dot_mc" + i, this.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
    dotArrays.push(this["dot_mc" + i]._name);
    var nextdepth = this.getNextHighestDepth();
    trace (nextdepth);
    clear_btn.onPress = function() {
    var delete_mc = dotArrays.pop();
    removeMovieClip(delete_mc);
    Let me know if this works ok.

  • Playing a clip in reverse

    I have a sports clip in my movie that I want to be shown regular at first, then backwards. How do you make a clip play in reverse. I would appreciate any help. Thanks.

    Right click the clip>in the popdown menu select Speed>enter-100 value or check the reverse box.

  • Click button to play and click to reverse

    I have a test button i would like to have play a movie where a graphic expands. Once stopped, I would like to be able to click that same button and have the graphic go backwards. I would prefer to have timeline reverse, rather than lengthen the timeline of the mc because then i have to line up the start and end, and if one changes, i have to remember to change the other.
    I have:
    btn_test.onRelease = function(){
        if (_root.adinstance._currentframe != 1) {
            while(_root.adinstance._currentframe != 1) {
                _root.adinstance.prevFrame();
        else {   
            _root.adinstance.play();
    I get the expand, but when when it hits the while loop, it just disappears the adinstance mc.
    Any ideas?

    You rarely want to use any kind of coded loop to animate something, especially a while loop (they can be especially ornery).  Try something more along the lines of....
    btn_test.onRelease = function(){
        if (_root.adinstance._currentframe != 1) {
            _root.adinstance.onEnterFrame = function(){
                 if(_root.adinstance._currentframe != 1){
                       _root.adinstance.prevFrame();
                 } else {
                       delete _root.adinstance.onEnterFrame;
        else {   
            _root.adinstance.play();

  • Playing one movieclip after another in as3

    In as2 I am using:
    _parent.gotoAndPlay(_parent._currentframe + 1);
    to have one movieclip play and then when it finishes the next
    movieclip plays. How do I do this is as3?

    Thank you for posting your discovery! I was looking for quite
    some time looking for a solution but asking the wrong questions to
    the search engines. MovieClip(parent).nextFrame(); works for the
    project I'm on but for the future is there away to determine from
    the stage if an added Child is finished. I've been able to add a
    listener for a sound clip and then execute a function:
    drumSC.addEventListener(Event.SOUND_COMPLETE, drumsFinished);
    but is there a way to listen for when a movieclip is
    complete(hint Event.COMPLETE doesn't work)?
    Thank you

  • Playing random movieclips via timeline

    I have a project that is eight frames long on my main timeline. On each frame is a different movieclip with nested animation that play for varying lenghts. I want to play the animation on the first frame. Then, once a button is clicked, randomly load one of the movieclips on frames 1-7. Please see the following screenshot for a view of my main timeline.
    On that first frame I have writtent he actionscript command stop(); I have also told each movieclip to stop on the last frame of the nested animation and return to frame 1 of the main timeline so the process can start all over again.
    Within the first movieclip is the following actionscript to define how the button behaves and load the random animation:
    boxButton.addEventListener(MouseEvent.CLICK, onBoxButtonClick);
    var randNum:Number=Math.floor(Math.random()*8)+2;
    function onBoxButtonClick(event:MouseEvent):void {
                        MovieClip(root).gotoAndStop(randNum);
    Everything works perfectly, exactly how I want, EXCEPT, once the button is pressed, my movieclips seem to play at varying speeds. Sometimes they play perfectly, other times they go by in the blink of an eye. Any idea why this is happenning and how to control it? I want everything to play at 24fps.

    La velocidad a la que corre un Movie Clip se debe principalmente a la memoria disponible que tiene la maquina, y los elementos usados por la pelicula.
    frames 1-7
    I don't think it has to do with the memory on my machine- I tried it on a couple different computers.

  • Playing a movieClip in a certain x position

    I want to play video clip when it is dragged into the timeline I created. I handled the timeline and drag/drop part but I need that clip to play when button is clicked on. So I need to make my function determine the x position of the movieClip and play it if it is on the certain x value.
    Is this possible?

    No, let me explain. I am creating a timeline for draggable short videos. When they are dragged and snapped into my timeline, and the user clicks on the button, they should start play. I need a function to play the videos according to their x position. But I can't do that because I don't know if it is possible.

Maybe you are looking for

  • Help!  -Can't figure out how to Reinstall OS X on my iMac!!

    Hello all, Had a quick question that I can't seem to find a proper answer to.. I'm wanting to place my OS X Install Discs on my External HD as backups. Turns out I have another computer (iMac Tangerine) that does not have a DVD-ROM drive, just an OLD

  • IPhoto 09 MobileMe Gallery Sync

    Friends, I apologize if this has already been asked. I have searched and searched and searched and just cannot find an answer. Here's what I am trying to figure out. I have a decent sized photo library being managed by iPhoto 09. I have diligently or

  • HT4623 Why can't I download iOS 6 it gets to end then says error

    Everytime I try to download the new iOS 6 software it comes close but then tells me it failed, how can this be resolved?

  • SQL to group by specified period

    Hello all, I am trying to write a query that selects the records which are not within a 90-day period of each other begining with the first date. That is only those records are selected which are more than 90 day apart from each other. So for the fol

  • Shortcut for the new zoom icon in Finder

    The new feature in Snow Leopard that allows to zoom icons directly on the window is useful, but I can't find a shortcut for that. Does anybody know if it is possible to assign a shortcut for that? Other question: is it possible to assign "two fingers