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.
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!
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)