-
I want to focus a light unto the mouse whenever the mouse goes over the button or presses down on the button.
For example, if I were to have a button that said "Sign Up," how would I make a light follow the mouse whenever the pointer went over the button. I have the light saved as a movie clip.
-
My PitBull Bites Me!
you would need to mask it.
not sure how but i know it has something to do with mask
-
Flashkit Jedi
Hi,
Put this code into your button's actions (assuming that you have named the light MC "light" in the instance panel):
on(rollOver){
startDrag(light, true);
}
on(rollOut){
stopDrag();
}
This will keep the light MC over the button but stop dragging it. If you want it to dissapear when the mouse rolls out of the button put this code under the stopDrag() function:
light._y = -500;
XFM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|