Solved

Flash Slide Show BACK Button

Posted on 2004-09-24
9
913 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
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
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
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…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The goal of the tutorial is to teach the user how to how to record live broadcast.

829 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