all groups > flash (macromedia) > october 2003 >
You're in the

flash (macromedia)

group:

Problem with sliding buttons


Problem with sliding buttons ReaperTK
10/28/2003 11:16:44 PM
flash (macromedia):
I have made a button that I want to slide to the right when I mouse over and slide back to the left when I move the mouse off. I can get it to slide over on the mouse over but I can't figure out how to make the buttons slide back. Any help would be appreciated.


Re: Problem with sliding buttons urami_
10/29/2003 9:06:31 AM

[quoted text, click to view]

you could use X/Y mouse coordinates , if mouse is within that particular area slide out
and if mouse get out of that area slide it back in ....

example

this.onEnterFrame = function() {
var positionx = _xmouse;
if ((positionx>0) && (positionx<200)) {
trace("between");
// do action to open meni
} else {
trace("outside");
// do action to close it
}
};


You could even use Dummy movie clip and HitTest to detect precisely when mouse is
in the particular area and when the mouse is living .
There is lots of ways ot achieve that .



Regards

urami_*



<lsym>

There's no place like 127.0.0.1

Re: Problem with sliding buttons ReaperTK
10/30/2003 2:11:50 PM
Is there any other way to do it. I tried the mouse coordinate thing but I don't know enough about action scripting to get it to work right. I figured there would be a much simpler way with very little coding involved.

Re: Problem with sliding buttons urami_
10/30/2003 10:11:55 PM

[quoted text, click to view]

do you have sample online ?
if I can see how the menu looks , we could suggest some most suitable
and easiest solution .




Regards

urami_*



<lsym>

There's no place like 127.0.0.1

AddThis Social Bookmark Button