can anyone tell why this wouldn’t work?
These functions do not properly pass the parameters I need them too.
Starts at btn.onRelease :::
[AS]
function buttonPress(btnName, sectionName) {
if (_root.section != sectionName) {
_root.section = sectionName;
_root.transitionContent.gotoAndPlay(“closing”);
moveFollower(btnName);
}
};
function moveFollower(clip) {
_root.follower._y = clip._y;
};
btnHome.onRelease = buttonPress(“btnHome”, “content_Home.swf”);
btnAboutUs.onRelease = buttonPress(“btnAboutUs”, “content_AboutUs.swf”);
[/AS]
Note:
btnHome = instance name of a button
btnAboutUs = instance name of a button
follower = instance name of static mc
Thanks :+)