Hi,
I can get everything working fine with the transitions tutorial as-is. However, I’m trying to do something a little different. Basically, instead of having the buttons as they are in the tut – sitting still on the main timeline – I’ve put together a SWF with the buttons internally, that animates the buttons, scrolling with the _xmouse variable. The idea is to get something like this working:
http://ideaspora.net/newgrey.html
So that, when you click on each button, the menu disappears and a subsection fades in to take its place.
I have basically set the main timeline up to be a placeholder with background graphics and the “container” movie clip. The menu of buttons is the equivelant of “section1” in the tutorial, it’s loaded automatically when the main timeline loads. Each subsection – or, each area that a button represents – will be the equivelant of “section2,” “section3,” and so on.
The code in the tutorial is broken by my setup because I’ve changed the path to the “container.” However, I can’t for the life of me seem to work out the proper, new path.
Here is the code as it appears in the tutorial:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "section2";
container.loadMovie("section2.swf");
} else if (_root.currMovie != "section2") {
if (container._currentframe>= container.midframe) {
_root.currMovie = "section2";
container.play();
}
}
}
Here is one example I’ve tried that doesn’t work:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "section2";
_root.container.loadMovie("section2.swf");
} else if (_root.currMovie != "section2") {
if (container._currentframe>= container.midframe) {
_root.currMovie = "section2";
container.play();
}
}
}
However, this “kinda” works:
on (release) {
_root.container.loadMovie("section2.swf");
}
It at least loads “section2.swf” into the “container” movie on the main timeline. But of course, it does so without the desired transition.
Any chance I could get some help on this would be greatly appreciated. I’ve asked here before and haven’t gotten a response – hopefully I haven’t broken any forum rules and I apologize if I did.
- jim