Hello,
I’m creating my portfolio using the “Transition between External SWFs” tutorial and hit a major snag: the buttons don’t work.
My problem is similar to this one, posted a while ago. I created my buttons using the “Complex Rollover/out” tutorial, so my buttons are actually movie clips.
The code that calls the external SWF automatically once the page loads works just fine. My test SWF loads, no problem. But when I click on my buttons, nothing happens.
At first I thought what I had to do was put the button code inside the movieclip, at the end of the roll-over actionscript like so:
stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
}
};
this.onRollOver = function() {
rewind = false;
play();
};
this.onRollOut = function() {
rewind = true;
};
this.onRelease = function() {
if (_root.currMovie == undefined) {
_root.currMovie = "test";
_root.container.loadMovie("test.swf");
} else if (_root.currMovie != "test") {
if (_root.container._currentframe>=_root.container.midframe) {
_root.currMovie = "test";
_root.container.play();
}
}
};
But there was no change (with or without the “_root” in front of “container”). So then, I placed the code on a different actionscript layer and frame on the main timeline, and added
button_1.onRelease = function() {
to the top (without the _root). No go.
For kicks, I decided to download the source file from the tutorial and paste one of the buttons from that into my own SWF to see if it’d work, and hopefully confirm that my buttons were the problem. Unfortunatly, that button didn’t work either. :-/
So, I figure there’s something else in my main SWF that is conflicting with the buttons’ code, but I have no idea what it could be, since it’s just a bunch of masks and tweens that form an intro for the navigation.
Here is a zip file containing the FLAs - click
Any help would be greatly appreciated.