Search tutorials
Here's a method for creating buttons that use an array to simulate a navigation through a history array, without using frame labels, of html codes.
Code for" Back" button:
Enjoy.
Ash Sammy H.
_SignalStrong
_signal@signalstrong.com
_http://www.signalstrong.com
Code for" Back" button:
on (press) {
_root.fwdStack.push(_root._currentFrame);
if (_root.navStack.length>1) {
recentFrame = _root.navStack.pop();
previousFrame = _root.navStack.pop();
gotoAndStop(previousFrame);
}
}
Code for "Forward" buttons:
on (press) {
if (_root.fwdStack.length>0) {
recentFrame = _root.fwdStack.pop();
gotoAndStop(recentFrame);
}
}
On each frame:
_root.navStack.push(_root._currentFrame);On actions frame:
stop(); navStack = []; fwdStack = [];_
Enjoy.
Ash Sammy H.
_SignalStrong
_signal@signalstrong.com
_http://www.signalstrong.com
| » Level Advanced |
|
Added: 2004-03-07 Rating: 5 Votes: 17 |
| » Author |
| Founder of design studio SignalStrong. |
| » Download |
| Download the files used in this tutorial. |
| Download (7 kb) |
| » Forums |
| More help? Search our boards for quick answers! |
-
You must have javascript enabled in order to post comments.


Comments
There are no comments yet. Be the first to comment!