Creating a back button

Hey there.

I can’t seem to be able to figure out or find any sources on how to make a button in flash that simply goes back. I know the javascript command for this is history.back(), but how to implement that in Flash is another matter.

Any ideas?

Hi,
A lot depends on where you want it to go back to, if it is the previous frame the code is
[AS]
on(release){
prevFrame();
//this is stop action
}[/AS]

What is it you are trying to achieve ?

SteveD

Or if you mean the javascript method…

[AS]on (release){
getURL(“java**script:history.back();”, “_self”);
}[/AS]

Thanks a lot! The Javascript version works great!

Cool. Just remember that when calling a javascript function from within Flash with a getURL (sorta like the flash version of A HREF) you must always start it with…

javascript:

:slight_smile: