# Advance to next frame of loaded swf: done, how would I reverse!?

**URL:** https://forum.kirupa.com/t/advance-to-next-frame-of-loaded-swf-done-how-would-i-reverse/290242
**Category:** Uncategorized
**Created:** [June 11, 2009, 4:49pm UTC](https://forum.kirupa.com/t/advance-to-next-frame-of-loaded-swf-done-how-would-i-reverse/290242 "2009-06-11T16:49:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bamaurer](https://avatars.discourse-cdn.com/v4/letter/b/8c91f0/32.png) [@bamaurer](https://forum.kirupa.com/u/bamaurer)
#### Post date: [June 11, 2009, 4:49pm UTC](https://forum.kirupa.com/t/advance-to-next-frame-of-loaded-swf-done-how-would-i-reverse/290242/1 "2009-06-11T16:49:24Z")

</div>

With the help of the adobe forums, I have figured out part of my problem, however – am in a stickier situation now, and hoping I can get some info here.

Pretty much, I have loaded an external slideshow with a forward, and a backward button. Each slide has an animation “in” as well. Using the following code, when I hit the next button, the show cycles through nicely:

var labels:Array = new Array(“zero”,“one”,“two”,“three”);  
function nextClick (e:MouseEvent):void{  
var mc:MovieClip = MovieClip(imageLoader.content);  
var nextLabel:String = labels[labels.indexOf(String(mc.currentLabel))+1];  
mc.gotoAndPlay (nextLabel);  
}

Now, I am trying to figure out a way that when I click my “back” button, the slide will go to the last frame of the previous animation, and play backwards to the previous label – is this doable, or rather – what would you suggest as the best way to do so?

Thanks.
