Any idea why this might not be working? this is my first attempt at one of those dynamic menus… but for some reason its a little funky. I can’t get the links to return to their original locations… any suggestions?
site so far
var aboutEnd = 230;
var aboutStart = -5;
var link2End = 170;
var link2Start = -135;
function btnAction(linkName, linkEnd){
if (linkName._y != linkEnd){
linkName._y = Math.ceil((linkName._y - linkEnd/5)/1.3);
}
if(circle._y != linkEnd){
circle._y = Math.ceil((circle._y - linkEnd/5)/1.3);
}
}
function btnReturn(linkN, linkS){
if (linkN._y != linkStart){
linkN._y = Math.ceil((linkN._y - linkS/5)/1.3);
}
}
link1.onRelease = function(){
gotoAndPlay(2);
this.onEnterFrame = function(){
btnAction(link1, aboutEnd);
btnReturn(link2, link2Start);
}
}