Hi,
I would like a bit of script that I could attach to some buttons so it looks like they are wobbling slighty on roll over.
The atached jpeg shows the basic design of them - opaque with shadows.
I would like the movement to be random, i can programme it already to move up and down or whatever, but not so its a differnt movement every time.
Can you help?
system
February 4, 2004, 12:21am
2
…no, not really…
I guess i’m after a hovering effect, like the hover skate board in back to the future. When you put your cursor over the square it would move slightly downwards and in the direction of the mouse approach.
system
February 4, 2004, 7:45am
3
ok, how about this in the buttons actions:
[AS]
onClipEvent (enterFrame) {
xdist = _x-_root._xmouse;
ydist = _y-_root._ymouse;
xdist < 50 && xdist > 0 ? _x += 10 : null;
xdist < 0 && xdist > -50 ? _x -= 10 : null;
ydist < 50 && ydist > 0 ? _y += 10 : null;
ydist < 0 && ydist > -50 ? _y -= 10 : null;
}
[/AS]
this might cause errors or something, I haven’t tested it 'cause I’m in school.
system
February 4, 2004, 10:36am
4
Cheers, i’ll try it in a sec…
system
February 4, 2004, 10:51am
5
hmm, i tried and nothing seems to be happening - i’ll keep on trying though… Perhaps when school is over you can have a little play with the code, see if you can get any further.
system
February 4, 2004, 6:47pm
6
home now… hehhe.
I’ll give it a try right away!
system
February 4, 2004, 7:03pm
8
is this what you’re looking for?
I found it here on the forums a couple of weeks ago.
it’s a mx2004 file.
system
February 4, 2004, 7:08pm
9
…poop
…I only have MX, no fancy MX2004. What now do you think? Could you convert it into an older version?
system
February 4, 2004, 7:10pm
10
…beginnings of a nice looking site you have there, very wintery and sparkly…
system
February 4, 2004, 7:13pm
11
sure, here’s the mx version!
my site… hehe, it’s very basic. I don’t have the energy to do anything with it…
anyway, here ya go!
system
February 4, 2004, 8:26pm
12
GROOVY.
Its not what I was looking for, but some fancy script anyway…
cheers mate!
system
February 4, 2004, 8:53pm
13
anytime!
I found it here on the forums a week ago, but van’t remember who posted the original script to it. creds to that person anyway!