PDA

View Full Version : Swing in menu hyperlinks



jazbecar
January 20th, 2007, 06:21 PM
I created a swing in menu with five buttons. After "swinging in" these buttons change color on mouse rollover from black to orange. Now I have a problem with setting hyperlinks.
I use

onClipEvent (enterFrame) {
_x = _root.button3._x
}

script and after that with

on (release) { getURL

Hyperlink works, but the button does not change color anymore..
Has someone please a solution for this problem ? Can I use an other function to maintain the color change ?
Thanks

bcline
January 20th, 2007, 09:12 PM
are you using a
on(rollOver) function?

jazbecar
January 20th, 2007, 09:49 PM
are you using a ActionScript Code:

on(rollOver)



function?
No, I have slide like a movie clip, it does not allow me to script on (rollOver)

bcline
January 20th, 2007, 10:07 PM
mind posting the rest of the code?

jazbecar
January 21st, 2007, 06:18 AM
mind posting the rest of the code?

stop();
goto = 70;
backto = -80;
function bounce(please) {
if (please == "right") {
go += (goto-button1._x);
go *= .20;
}
if (please == "left") {
go -= (backto-button1._x);
go *= .20;
}
return go;
}
function move() {

if (_xmouse<=20) {
button1._x = button1._x+bounce("right");
}
if (_xmouse>=110) {
button1._x = button1._x-bounce("left");
}
}
setInterval(move, 5);

Thats the code of the menu, when I click on the 3rd "button(which is animated clip) I have

onClipEvent (enterFrame) {
_x = _root.button2._x
}