Solved

Flash Slide Show BACK Button

Posted on 2004-09-24
9
919 Views
Last Modified: 2008-01-09
This should be easy .. but I cant figure it out (vary new to flash and actionscript).

I need to implement a BACK button on a slide show BUT not one that goes back one slide.

The functionality should be to for the button to goto the last viewed slide (like a interent browser back button that goes to the last viewed page).

I am truly confused !!! - have searched all the net and found a zillion examples of a back btn to previous but not to last viewed.

tks
Aris
0
Comment
Question by:aris_ioakimides
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
9 Comments
 
LVL 8

Expert Comment

by:Cerf
ID: 12151739
Well Aris,
Usually a slide show goes linear, 1,2,3,4... but if you're doing something with thubnails or alike, I guess you can set a variable with a code or name of the last viewed and when the user clicks on the "back" button then it will search for it. However I need a little more information on what are you doing and how in order to help you better.

Cheers,

Cërf.
0
 
LVL 1

Accepted Solution

by:
jblayney earned 63 total points
ID: 12157325
ok, u use         _global.current_selection

each time a MC apprears, put this code on the timeline in that frame it appears in

        _global.current_selection = "photo1";

every photo will have its own unique name (eg, photo2, photo3, ect....)

then on your back buttons

on (release) {
                  _root.gotAndPlay(_global.current_selection);
}

let me know how it works
0
 
LVL 1

Expert Comment

by:jblayney
ID: 12157331
Oh, one more thing, in each frame that you add the _global.current_selection = "photo1"; and the image appears, put a flag with named "photo1", photo2, ect...
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:aris_ioakimides
ID: 12158369
Do i declare "current_selection" as a variable in some frame of the SLIDE1 of the presentation and then assign to it the value within each slide that the user "visits"?

pls advise.
tks for the help
0
 
LVL 1

Expert Comment

by:jblayney
ID: 12159776
You know what, their is a bug in my code, i just tried to build it, let me work on it and get back to u..
0
 
LVL 7

Assisted Solution

by:fixitben
fixitben earned 62 total points
ID: 12171491
Ok Think I have a soulution Try this
Add this to each button that goes to a certian slide.
on(release){
_global.lastVisited = _root._currentframe;
gotoAndStop(Whateverframenumber);
}
This Way it will assign the current frame number of that slide to _global.lastVisited then goto the slide selected. But make sure the _global.lastVisited = _root._currentframe;  is before the goto part.

Then on the back button have this
on(release)
{gotoAndStop(_global.lastVisted);
}

hope this helps
Fixitben

0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to record live broadcast.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question