I remember reading a tutorial somewhere along time ago, but I can’t seem to find it.
Suppose I made an invisable box 15x15 and name each side a variable…
top=_y-15;
bottom=_y+15;
left=_x-15;
right=_x+15;
How would I detect if the mouse is in those ranges? Would I have to do an if else for each 4?
system
August 7, 2003, 4:54pm
2
I think it’s better to use hitTest!
http://www.kirupa.com/developer/actionscript/hittest.htm
You have to make an empty movieclip and make it follow the mouse! Then detect if it collides with the box!
system
August 7, 2003, 4:57pm
3
Yea, the thing is I want to stat as far away from any object I can… I don’t want any invisable grayness brought in from Flash 5 (-:
system
August 8, 2003, 4:43pm
4
well only one if() is required!
[AS]
if(_xmouse>= left && _xmouse <= right && _ymouse >= top && _ymouse <= bottom) {
stuffffff
}[/AS]
system
August 8, 2003, 4:44pm
5
I dont quite get what you want :-
Can you give more details?
system
August 8, 2003, 4:53pm
6
Hey thanks Syko I’m trying that now…
I’m making reactions on mouse over certain parts of my movie.
When they go into this part, play this frame, that part, that frame… I’m just saying how do I create the invisible box, do what Syko said above?