PDA

View Full Version : Button-problems...



maw_webdesign
February 10th, 2003, 11:16 AM
Hi there again...

I found the elastic code I was looking for.

But...

When I'm on a button and move the mouse to the bottom (The mouse has left the .swf) my button hangs...

Can anyone help me solve this problem?

http://www.flyersonline.nl/menu-test.html



Thanx...

This is the code I use:

====================
onClipEvent (load) {
this._y = 101;
closedy = 101;
openy = 52;
movey = 0;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
movey += (openy-this._y)/3;
movey *= 0.8;
this._y += movey;
} else {
movey += (closedy-this._y)/1;
movey *= 0.2;
this._y += movey;
}
}

pom
February 10th, 2003, 12:03 PM
Welcome.
http://www.kirupaforum.com/showthread.php?s=&threadid=7457