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:
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
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|