I’m using the below code from the tutorial but yet when the movie is loaded in externally into another movie file when I click on each link only the aboutme.swf is playing for all links, I can’t understand why? I know its an AS problem but I can’t see where I went wrong.
All AS is in a frame.
[AS]_root.currMovie = “aboutme”; //loading about me swf
container.loadMovie(_root.currMovie+".swf");//tells flash to add .swf to the currMovie
this.about_mc.about_butt.onRelease = function(){//begins actions for the about me button
if (_root.currMovie == undefined) {
_root.currMovie = “aboutme”;
container.loadMovie(“aboutme.swf”);
} else if (_root.currMovie != “aboutme”) {
if (container._currentframe >= container.midframe) {
_root.currMovie = “aboutme”;
container.play();
}
}
};
this.about_mc.about_butt.onRollOver = function(){
this._parent.gotoAndPlay(“rollover”);
}
this.about_mc.about_butt.onRollOut = function(){
this._parent.gotoAndPlay(“rollout”);
}
this.skills_mc.skills_butt.onRelease = function(){ //begins actions for the skills button
if (_root.currMovie == undefined) {
_root.currMovie = “skills”;
container.loadMovie(“skills.swf”);
} else if (_root.currMovie != “skills;”) {
if (container._currentframe >= container.midframe) {
_root.currMovie = “skills”;
container.play();
}
}
};
this.skills_mc.skills_butt.onRollOver = function(){
this._parent.gotoAndPlay(“rollover”);
}
this.skills_mc.skills_butt.onRollOut = function(){
this._parent.gotoAndPlay(“rollout”);
}
this.goals_mc.goals_butt.onRelease = function(){//begins actions for goals buttton
if (_root.currMovie == undefined) {
_root.currMovie = “goals”;
container.loadMovie(“goals.swf”);
} else if (_root.currMovie != “goals”) {
if (container._currentframe >= container.midframe) {
_root.currMovie = “goals”;
container.play();
}
}
};
this.goals_mc.goals_butt.onRollOver = function(){
this._parent.gotoAndPlay(“rollover”);
}
this.goals_mc.goals_butt.onRollOut = function(){
this._parent.gotoAndPlay(“rollout”);
}
stop();[/AS]
thank you for your time.