Flashmx Slideshow {back Btn}

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

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!

I’ll check it out.

Tks.

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

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.

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.

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

tks