-
Hi,
have been trying to search for some script that will allow a button to shake when you hover over it.....i'm sure i've seen something like this done in actionscript, but i have no idea, any help would be great..
ta.
Cam.
-
Hi..
The following is placed on an MC. You could place a button in the MC for the desired effect:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse,_root._ymouse,true)) {
this._x+=Math.random()*2;
this._y-=Math.random()*2;
this._x-=Math.random()*2;
this._y+=Math.random()*2;
} else {
this._x=250;
this._y=150;
}
}
I'm sure there are better scripts out there but this is one that sprung to mind.
Hope this helps.
-
nice one...
excellent, cheers.....
cam.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|