hi,
i was looking for the tutorial that shows you how to make a button that you clicked go to a different frame while all the others are different (and once you click a different button, the other button goes back to ‘normal’ and the other button whose movie is loaded goes to the other frame)?
(sort of like the external .swf transitions im assuming but for buttons
:pirate3:
edit: also, if i have an external swf that i have buttons that load movies in my main .fla, how do i change the paths on the buttons? (heres the code)
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = “main”;
container.loadMovie(“main.swf”);
} else if (_root.currMovie != “main”) {
if (container._currentframe >= container.midframe) {
_root.currMovie = “main”;
container.play();
}
}
}
what do i put instead of “main” and “main.swf”?
i don’t get your Question 100% but this is what i understand:
The code
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = “main”;
container.loadMovie(“main.swf”);
} else if (_root.currMovie != “main”) {
if (container._currentframe >= container.midframe) {
_root.currMovie = “main”;
container.play();
}
}
}
is a code in a button placed in different swf?
I think this code only loads main.swf
//after button is pressed
on (release) {
// if no movie is loaded
if (_root.currMovie == undefined) {
//set the path of your movie to _root.main
_root.currMovie = “main”;
//Load main.swf to _root.main. (so it’s _root.main.main.swf)
container.loadMovie(“main.swf”);
// if _root.main is not _root.main
} else if (_root.currMovie != “main”) {
// if _root.container is something else and playing in the mid frame
if (container._currentframe >= container.midframe) {
// set _root. to _root.main
_root.currMovie = “main”;
// play main.swf
container.play();
}
}
}
If you just want to load movie with each button the code doesn’t need to be that complicated
EG.
//on button release
on (release) {
// load movie in mianswf, in a Movieclip with an instance name of main
loadMovie(“main.swf”, _root.main);
}
actually i thinks i got it now
that code is actually for the transitions anyway
but tahnks 