Hello Kirupians,
Trying to set my main buttons, which work sort of.
The prob is: “this.id” is interpreted as that and flash is trying to load this.id.swf.?
If I substitute the “this.id” before the container.play(); with fe. “gal2”, it loads
gal2.swf.??
Anyone knows how to load the appropriate swf to the correlating but?
It seems my brain died in the process of trying to figure this out :h:
Thanks in advance for any suggestions.
butArray = new Array();
butArray = ["gal1", "gal2", "gal3", "gal4", "gal5"];
function mainButtons() {
for (var i = 0; i<butArray.length; i++) {
var but = this[butArray*];
but.id= i;
but.onRelease = function() {
disButtons(this.id);
if (_root.currMovie == undefined) {
_root.currMovie = "this.id";
container.loadMovie(this.id+".swf");
} else if (_root.currMovie != "this.id") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "this.id";
container.play();
}
but.onRollOver = function() {
this.gotoAndStop(2);
}
but.onRollOut = function() {
this.gotoAndStop(1);
}
}
}
}
};