# Mouse and masks

**URL:** <https://forum.kirupa.com/t/mouse-and-masks/20204>\
**Category:** Uncategorized\
**Created:** [May 6, 2003, 12:48pm UTC](https://forum.kirupa.com/t/mouse-and-masks/20204 "2003-05-06T12:48:38Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![molotov](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@molotov](https://forum.kirupa.com/u/molotov)\
**Post date:** [May 6, 2003, 12:48pm UTC](https://forum.kirupa.com/t/mouse-and-masks/20204/1 "2003-05-06T12:48:38Z")

</div>

i’m trying to have a mask the shows a colored version of an image over a black and white one for a menu. as the mouse rolls over parts of the image the mask(rectangle) follows the cursor and shows the color, foudn tutorial and have been trying for hours to get it to work, and i know its some problem with my actionscript placement, tutorial got confusing a bit when it came to that part. [heres the tutorial](http://www.flashkit.com/tutorials/Actionscripting/Flash_5_-Pure_Mor-588/index.php)

any help would be great, even a link to a better tutorial.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 1:15pm UTC](https://forum.kirupa.com/t/mouse-and-masks/20204/2 "2003-05-06T13:15:27Z")

</div>

the tutorial is for flash 5 and i’m using flash mx, tried saving it as flash 5 file to see if that made a diff, it didn’t.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 1:16pm UTC](https://forum.kirupa.com/t/mouse-and-masks/20204/3 "2003-05-06T13:16:50Z")

</div>

That tutorial SUCKS, use the one on this site: [HERE](http://www.kirupa.com/developer/mx/followease.htm)  
When you could remove the \_y value, and use it as a mask! 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 1:24pm UTC](https://forum.kirupa.com/t/mouse-and-masks/20204/4 "2003-05-06T13:24:03Z")

</div>

yeah i looked at that tutorial but all i see in the preview is a grey background, doesn’t change on mouse over either, at least not for me. i like the effect of the other one.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 1:25pm UTC](https://forum.kirupa.com/t/mouse-and-masks/20204/5 "2003-05-06T13:25:13Z")

</div>

Could you post your .fla?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 1:27pm UTC](https://forum.kirupa.com/t/mouse-and-masks/20204/6 "2003-05-06T13:27:32Z")

</div>

yeah, one sec

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 1:31pm UTC](https://forum.kirupa.com/t/mouse-and-masks/20204/7 "2003-05-06T13:31:48Z")

</div>

ok, heres [my fla](http://molotovfx.com/menu01.fla)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 1:37pm UTC](https://forum.kirupa.com/t/mouse-and-masks/20204/8 "2003-05-06T13:37:51Z")

</div>

Take a look at this:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 1:41pm UTC](https://forum.kirupa.com/t/mouse-and-masks/20204/9 "2003-05-06T13:41:52Z")

</div>

nice, thanks, i’m gonna check out the specifics now, but if i might ask,what did u change?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 1:46pm UTC](https://forum.kirupa.com/t/mouse-and-masks/20204/10 "2003-05-06T13:46:31Z")

</div>

Well, I just did it my way - did’nt look that much at your file! It’s actually very simple, you where messing around with the worng code!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 1:48pm UTC](https://forum.kirupa.com/t/mouse-and-masks/20204/11 "2003-05-06T13:48:03Z")

</div>

yeah i was checking out your actionscript, thanks for the quick reply and fix, that was really frustrating me.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 1:48pm UTC](https://forum.kirupa.com/t/mouse-and-masks/20204/12 "2003-05-06T13:48:51Z")

</div>

Just glad I could help 😉

cheers

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 1:49pm UTC](https://forum.kirupa.com/t/mouse-and-masks/20204/13 "2003-05-06T13:49:48Z")

</div>

one question - i did a test movie and at the begining of the image it seems a little offset with the mouse over, why is that? or is it just a test movie flaw?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 1:56pm UTC](https://forum.kirupa.com/t/mouse-and-masks/20204/14 "2003-05-06T13:56:10Z")

</div>

Flash has a bad habbit when it comes to bitmaps (images) - try to convert them into symbols or use another format - gif or png perhaps!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 1:59pm UTC](https://forum.kirupa.com/t/mouse-and-masks/20204/15 "2003-05-06T13:59:31Z")

</div>

will do, thanks again.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [May 6, 2003, 2:01pm UTC](https://forum.kirupa.com/t/mouse-and-masks/20204/16 "2003-05-06T14:01:04Z")

</div>

converting to symbol worked in case anyone else is reading.

cancel that, just moved offset to middle
