dana
February 14, 2003, 9:03am
1
hello,
i saw a graet menu at www.bukwild.com .
when i done this i used this script, but didn’t work the same! PLS help!
onClipEvent (load) {
inertia = 0.6;
k = 0.1;
}
onClipEvent (enterFrame) {
x = -this._x+_root._xmouse;
xp = xpinertia+x k;
_x += xp;
}
pls have a look at www.bukwild.com and tell me how you think that it is done! The buttons go after each other but not above each other.
thanks!
system
February 14, 2003, 11:50am
2
Well, I think those are just rollOvers… I don’t quite see where you could put that code :-\
system
February 14, 2003, 3:13pm
3
the buttons follow the mouse, but they don’t just follow the mouse. there is a differt of space between them.
So it can’t be just a rollover!
but thanks anyway.
system
February 15, 2003, 12:25am
4
Oups sorry, I didn’t see that. It’s just easing with different easing speeds. Read the tute about easing and everything should be clear. [SIZE=1]Otherwise, just :trout: Lost[/SIZE]
system
February 18, 2003, 8:54am
5
Thank you! it workt!
But know i have a nother problem whit it; when i put a nother button on the stage whit the same action script, the 2 buttons are on the same place.
On the site www.bukwild.com they not on the same place and they not go above each other. How can i fix this?
Can you or some one else please help me?
greetz dana
system
February 19, 2003, 2:57am
7
I know I have a lot of fun playing with Robert Penners Easing Equations (A bit advanced, but fun none-the-less)
http://www.robertpenner.com/scripts/easing_equations.txt
system
February 19, 2003, 8:34am
8
They are definitely advanced, but the good is: you don’t have to worry about that. All you need is to call the function with the right parameters and voilà :love:
Robert Penner is scary… :o
system
February 19, 2003, 8:37am
9
You know me with my easing Ilyas… I have a natural love for Robert Penner for creating these!
And why is Penner scary?
system
February 19, 2003, 8:39am
10
Because he’s so ■■■■ good :crazy: I don’t think I’ve ever opened one of his files and actually understood how it worked :-\
system
February 19, 2003, 8:43am
11
I understand some of the easing equations, but yes, he is too ■■■■ good. People like that make me feel bad at Flash…
system
February 19, 2003, 9:30am
12
thanks for your advice, But i didn’t understant the link of robert.
I write my script down maybe so i can explain it moore.
I have 3 MC and in each MC i have a button.
MC1 has this scrip:
onClipEvent (load) {
_x = 0;
speed = 5/1;
}
onClipEvent (enterFrame) {
endX = _root._xmouse-50;
_x += (endX-_x)/speed;
}
system
February 19, 2003, 9:32am
13
MC2:
onClipEvent (load) {
_x = 0;
speed = 5/2;
}
onClipEvent (enterFrame) {
endX = _root._xmouse-30;
_x += (endX-_x)/speed;
}
system
February 19, 2003, 9:33am
14
MC3:
onClipEvent (load) {
_x = 0;
speed = 5/3;
}
onClipEvent (enterFrame) {
endX = _root._xmouse-10;
_x += (endX-_x)/speed;
}
system
February 19, 2003, 9:34am
15
It work but only to the right. When you go to the left, he pic the button on the right first. I preciat that you will help me, thanks for that!
system
February 19, 2003, 10:54am
16
Sorry? What happens when you click on the left? :q:
system
February 19, 2003, 10:57am
17
maybe i have to include some frame actions.
Something like:
stop ();
if (_root._xmouse>0) {
gotoAndStop (2);
}
system
February 19, 2003, 10:58am
18
when you slide whit your mouse to the left, the first button that goes that way is the button on the right.
system
February 19, 2003, 10:59am
19
i’m sorry if mine english is not to good. i’m from holland!
system
February 19, 2003, 11:03am
20
No prob I just wanted to make sure of the problem (I don’t speak that well either, I’m a poor Frenchman :trout: )
Anyway, what you could do is change the speed depending on the direction the clips are moving. Something like this:
onClipEvent (load) {
_x = 0;
speed = 5/3;
}
onClipEvent (enterFrame) {
endX = _root._xmouse-10;
if (endX > 0) speed=5/3;
else speed=5/1;
_x += (endX-_x)/speed;
}
Or something like this.
pom