Want to give buttons a bit more life (wobble)

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?

…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.

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.

Cheers, i’ll try it in a sec…

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.

home now… hehhe.
I’ll give it a try right away!

Cool!

is this what you’re looking for?
I found it here on the forums a couple of weeks ago.
it’s a mx2004 file.

…poop

…I only have MX, no fancy MX2004. What now do you think? Could you convert it into an older version?

…beginnings of a nice looking site you have there, very wintery and sparkly…

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!

GROOVY.
Its not what I was looking for, but some fancy script anyway…
cheers mate!

anytime! :smiley:
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!