PDA

View Full Version : ?? Eye following (looking at) mouse cursor ??



DeclineD
November 29th, 2003, 08:39 PM
Hello!

I can't seem to solve this one at all:
I've made an image with an eye in photoshop which I'd like to use as an "enter page" on my band's website.
It would be pretty cool if the eye would look at the mouse cursor all the time, so it should follow the direction when you move the mouse.
I was thinking that using two image layers could be the base of animating this: one layer for the eyeball itself which can move behind the "skin" in the larger image. If i move the eyeball layer behind the skin layer in photoshop, it looks ok.

The problem is that I don't have a clue about how to do this in Flash (I use Flash 5) Could anyone help me out about this?

PS: can I save the skin layer as a file with transparency that can be used in Flash? I guess this is essential to be able to see the lower eyeball layer...

THANX!

Marz
November 29th, 2003, 11:14 PM
Might want to throw this in Flash MX next time.. or 5.. Sorry.,... But basically.. I think this was discussed somewhere in that.. I use too many MX functions now that I forget all the 5 functions.. Sorry :)

ratbaggy
November 29th, 2003, 11:21 PM
http://www.flashkit.com/tutorials/Math-Physics/Creating-Andrew_S-738/index.php

HTH

:)

Voetsjoeba
November 30th, 2003, 04:07 AM
Have a look at the "FLA's" section on Senocular's site too :)

DeclineD
November 30th, 2003, 12:16 PM
Thanks, Ratbaggy :thumb: the tutorial on your link comes pretty close to what I want to do.
I could use those actionscripts but there should be a slight change in the last part:
the eyes in the tutorial are small images that rotate in the direction of the cursor, but I want a bitmap graphic (jpg or something) to move within the eye. So instead of a "rotate" actionsccript I need a "move" actionscript, that reacts to the position of the cursor.

I'm getting closer (I think) but I'm not really there yet,
but thanks already!