PDA

View Full Version : Buttons


kcire
01-12-2003, 07:41 PM
Well hello!
I have got a problem with buttons I would like to use.
They have a RollOver FX but I do not seem to get a onPress
command into it...It now looks like this:

on (rollOver) {
this.gotoAndPlay(2);
_root.button1.Xpos = -150;
}

This will bring a vertical slider from the right side of the screen
to the button on which the mousepointer is rested. Oke...

Now I want it to be possible also to press the button so it
is really a button...

What do I have to do ?
Thanks!

sandman9
01-13-2003, 02:45 AM
this was curtisy of SFA (thx again man) ...... on the slider put:

onClipEvent(load){
_root.pos = _ymouse;
}

onClipEvent(enterFrame){
_y += (_root.pos - _y)/20;
}

Then on the button put:

on (rollOver) {
_root.pos = _ymouse;
}

This will make your slider slide up and down with your mouse from button to button ..... if you want it sliding horizontally then change the y's to x's

Sandman9