# Flashmx Slideshow {back Btn}

**URL:** <https://forum.kirupa.com/t/flashmx-slideshow-back-btn/65640>\
**Category:** flash\
**Created:** [September 28, 2004, 11:05am UTC](https://forum.kirupa.com/t/flashmx-slideshow-back-btn/65640 "2004-09-28T11:05:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_atkins\_gm](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@john\_atkins\_gm](https://forum.kirupa.com/u/john_atkins_gm)\
**Post date:** [September 28, 2004, 11:05am UTC](https://forum.kirupa.com/t/flashmx-slideshow-back-btn/65640/1 "2004-09-28T11:05:42Z")

</div>

I have a flash SLIDE show presentation and need to implement a BACK btn.  
BUT, i need it to go to the **previously viewed** slide and not the previous of the slide sequence.

As the presentation is interactive the user may have chosen to go to various slides and not necesseraly in order, so the BACK functionality must be like a internet browser functionality. - ie “go to previous viewed”.

I am very new to Actioscript but with good programming background.

Need feedback…

tks  
John

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 29, 2004, 11:03am UTC](https://forum.kirupa.com/t/flashmx-slideshow-back-btn/65640/2 "2004-09-29T11:03:27Z")

</div>

I am also quite new to Flash, but I have done some experimenting with Slides a few weeks ago. You can create functions who go to certain slides. (instead of just adding a behavior to a button)  
If you store a number indicating the previous visited slide in a variable, you could then, when the Back button is pressed, initiate the appropriate function.

I have tried this out in Flash, and there should be an attachment with this reply containing the .fla. The functions to change slides are created with “behavior” and afterwards I cut-paste it in [font=Courier New]GoSlide[/font].

I have put these functions in the timeline of the Presentation slide, because this is de Parent of all the other slides. From a slide these functions now should be called with [font=Courier New]\_parent.FunctionName[/font].  
Because the relative path to the slide has altered, I have removed [font=Courier New]“this.\_parent.\_parent.”[/font] from the behavior code.

Take a look at the .fla, I hope you can do something with it!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 29, 2004, 12:10pm UTC](https://forum.kirupa.com/t/flashmx-slideshow-back-btn/65640/3 "2004-09-29T12:10:56Z")

</div>

I’ll check it out.

Tks.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 29, 2004, 12:15pm UTC](https://forum.kirupa.com/t/flashmx-slideshow-back-btn/65640/4 "2004-09-29T12:15:18Z")

</div>

hi,  
the best way to do that is by building an array. Check the tutorial found in macromedia site…

[http://www.macromedia.com/support/flash/ts/documents/swf\_back\_button.htm](http://www.macromedia.com/support/flash/ts/documents/swf_back_button.htm)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 29, 2004, 12:28pm UTC](https://forum.kirupa.com/t/flashmx-slideshow-back-btn/65640/5 "2004-09-29T12:28:52Z")

</div>

Dampsean : Tks, the example seems to be for frames . Do you think it would work for screen names ?

Jan : The problem which would have to be solved to make the solution workable is that the GOTOSLIDE function would have to use a parameter if the code was to be workable… Otherwise we would create a massive amount of duplicate code for this. Must get a funtion like : GOTOSLIDE (slidenumber)

tks both for the help.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 29, 2004, 1:15pm UTC](https://forum.kirupa.com/t/flashmx-slideshow-back-btn/65640/6 "2004-09-29T13:15:20Z")

</div>

well, most of the behavior code is code is (i think) for catching exceptions anyway,

with me, this also works:

[font=Courier New]var screen = null;  
var target = this;  
screen = target;[/font]

[font=Courier New]screen.gotoSlide(slide1);[/font]

you could then perhaps put this in a switch  
[font=Courier New]switch(lastslide)  
case 1:  
screen.gotoSlide(slide1);  
break;  
case[/font]… Etc.

and perhaps you could use an array then for making things recursive.

But, putting different slides on different frames and then shift the timeline would also be a good (and faster) solution.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [September 29, 2004, 1:19pm UTC](https://forum.kirupa.com/t/flashmx-slideshow-back-btn/65640/7 "2004-09-29T13:19:11Z")

</div>

Yes I know - But, this is a presentation and needs to be structured both by SLIDE and TIMEFRAME.

tks
