Flash Question ova here..
- Started
- Last post
- 6 Responses
- beav
Hey ya'll...
Tryin to make a menu that is similar to this:http://www.flashkit.com/movies/I…
My problem is.... I want the menu to scroll only when my mouse is over it. Not when it's just anywhere on the page. I need to some kind of coordinate restraints or something....but I'm no actionscript pro at all...
Any ideas?
- unknown0
I'm no AS guru either, but you should be able to find something in the code that sets the scrolling, and remove that and figure a way to make it scroll based on where the mouse is.
My suggestion is to find another example that does that, pick it apart, implement that in the one you've linked to and hopefully it would work.
A good learning experience to say the least.
- unfittoprint0
make a loop [setInterval] together with an hitTest, within the menu holding MC. Then you could make an invisible button around it that would stop the interval when 'RollOvered'...
- beav0
Hmm..then if there were buttons underneath that invisible button, would they still work?
- shant0
you had it right the first time buddy. if that whole menu is a clip, then use it's coordinates to set an if based on mouse location.
if (_root._xmouse>menu._x && _root._xmousemenu._y && _root._ymouse<(menu._y+menu._hei...
scroll code;
}that should do it.
looks fucked up, but copy and paste it and it'll be ok.
- shant0
crap it took out some of the greater than or less thans. i'll email you.
- ********0
unfit rocks the house, always listen to him.