At 1/6/03 08:24 PM, IamGod666 wrote:
At 1/6/03 08:16 PM, evilshark27 wrote:
Damn that script is pretty useful, thanks for doin that for everyone, including yourself.
ure welcome, glad it worked.
Nice one dude, thats some fucking good scripting. You are better then me by far. Now I'm gonna post some script.......
This is quite cool, play a movie in reverse or forward
onClipEvent (load) {
// Set to true to loop forward playback.
loopForward = false;
// Set to true to loop reverse playback.
loopReverse = false;
// Set to true to play clip in reverse.
rewind = false;
}
onClipEvent (enterFrame) {
if (rewind) {
if (_currentframe == 1 && loopReverse) {
gotoAndStop(_totalframes);
} else {
prevFrame();
}
} else {
if (_currentframe == _totalframes && loopForward) {
gotoAndStop(1);
} else {
nextFrame();
}
}
}
Place it on the movie clip.......
This one is a menu, but with a history (like IE u can press back and it takes u back to the last thing u where on) YOU WILL NEED TO CHANGE LABELS, because this is just for show, copy and paste if u want, but remember it will not work unless u have the same frame labels as here, or u change them.
stop();
// Create an array to store navigation history.
var siteHistory = new Array();
function goto(theLabel) {
// If the destination is not the same as the current
// location...
if (theLabel != siteHistory[siteHistory.length - 1]) {
// ...add the destination to the navigation history
siteHistory.push(theLabel);
// send the playhead to the destination.
gotoAndStop(siteHistory[siteHistory.length - 1]);
}
trace(siteHistory);
}
function goBack() {
// Remove the last location from the navigation history.
siteHistory.pop();
// If we're not all the way back home...
if (siteHistory.length > 0) {
// display the previous location
gotoAndStop(siteHistory[siteHistory.length - 1]);
} else {
// otherwise, display the home page.
gotoAndStop("home");
}
trace(siteHistory);
}
~tit