I saw a topic about loading movies with transtions. This is the link:
http://www.kirupaforum.com/forums/showthread.php?t=39101&page=1&pp=15
For myself I used loop to identify my buttons. Like this:
for (var i in this){
if (this*._name.substr(0, 4) == "btn"){
setButton (this*._name);
}
}
And the setButon function like this:
function setButton (clip){
var clip = eval(clip);
clip.onRollOver = function(){
// Rollover stuff here
};
clip.onRollOut = function(){
// RollOut stuf here
};
}
And than I integrated the code from the other topic in the onRelease like this:
[font=Courier New]clip.onRelease = function() {
if (_root.currMovie == undefined) {
_root.currMovie = this._name;
this._parent.container.loadMovie(this._name+".swf");
} else if (_root.currMovie != this._name) {
if (this._parent.container._currentframe>=this._parent.container.midframe) {
_root.currMovie = this._name;
this._parent.container.play();
}
}[/font]
[font=Courier New]};[/font]
But now when I press lets say btn_home the movie wants to load btn_home.swf while it should load home.swf
What am I doing wrong :h:
Thank you in advance