whats the command to get a mask to follow the mouse?
Someone help.
I sometimes use:
First Frame
difference = _xmouse - arrow._x;
arrow._x = arrow._x + (difference/delay);
menu._x = - arrow._x;
Second frame
prevFrame();
play();
Works for me
nice subject I still havent fully gotten through the book heh.
for a steady, exact with the mouse follow use:
mask_mc.onMouseMove = function(){
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
updateAfterEvent();
}
thanks! ill see if it works and get back to you…
Wait hold on…
My mask’s instance name is mask
My movie clip instance name is dancer.
Senocular… could you put those into the lines of code you gave me?
Im kind of stuck.
haha ok, without using a mask layer, have:
dancer.setMask(mask);
mask.onMouseMove = function(){
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
updateAfterEvent();
}
ok
let me try it
when i test the movie… it gives me an output menu saying:
Scene=Scene 1, Layer=man, Frame=1: Line 1: Statement must appear within on/onClipEvent handler
dancer.setMask(mask);
Scene=Scene 1, Layer=man, Frame=1: Line 2: Statement must appear within on/onClipEvent handler
mask.onMouseMove = function(){
whats wrong?
heres what i have so far… but i dont know why the crosshairs arent working on the mask…
here i fixed a part
added some text
a mask masks. You dont see a mask. Thats why the white cirlce goes away. it becomes the mask. You dont see the crosshairs because thats part of the mask. IF you want crosshairs, make them a seperate clip on the maintimeline and give them the same code as the mask so they follow the mouse.
a seperate movie clip for the crosshairs?
ok… ill try it and talk to you tommorow.
g2g
bye