| |
 |
June 21st, 10:59 pm |
 |
Warning: fopen(userdata.php): failed to open stream: Permission denied in C:\Inetpub\vhosts\mikemania.kawanda.net\httpdocs\users.php on line 19
Warning: fwrite(): supplied argument is not a valid stream resource in C:\Inetpub\vhosts\mikemania.kawanda.net\httpdocs\users.php on line 20
Warning: fwrite(): supplied argument is not a valid stream resource in C:\Inetpub\vhosts\mikemania.kawanda.net\httpdocs\users.php on line 25
Warning: fwrite(): supplied argument is not a valid stream resource in C:\Inetpub\vhosts\mikemania.kawanda.net\httpdocs\users.php on line 32
Warning: fclose(): supplied argument is not a valid stream resource in C:\Inetpub\vhosts\mikemania.kawanda.net\httpdocs\users.php on line 33
Total users online : 1 |
 |
 |
|
|
| Flash Back Button |
For this tutorial, you will need to know how to create a button in Flash. It doesn't matter what this button looks like, all we will be doing is adding an ActionScript command to it.
We need the button to take the user back to the page he was on before. This is very identical to the javascript:history.back() attribute used in HTML documents.
Double click the button object and press F9 on the keyboard. This will bring up the ActionScript window. Before we proceed, make sure you are in the expert view, so we can manually add in commands.
Now in the window, copy and paste this into the text box:
| Code
\\ |
on(press,
release){
getURL("javascript:history.go(-1)");
} |
The code is telling the button that onPress, it will go back (-1) into the browser's history, therefore, the user ends up at the page he was at before.
You can also edit the "-1" to "+1" to make a forward button. However, this does not always work very well, but its a nice addition to have on your document.
|
Written
by MikeMania on October 7 2005 |
|
 |
|
|
|