Solved

Flash Slide Show BACK Button

Posted on 2004-09-24
9
907 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

by:aris_ioakimides
Comment Utility
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
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

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…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now