# Scriptable mask locked on Y axis without mouse!

**URL:** <https://forum.kirupa.com/t/scriptable-mask-locked-on-y-axis-without-mouse/14361>\
**Category:** flash\
**Created:** [February 25, 2003, 3:40pm UTC](https://forum.kirupa.com/t/scriptable-mask-locked-on-y-axis-without-mouse/14361 "2003-02-25T15:40:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cyrus](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/cyrus/32/169_2.png) [@Cyrus](https://forum.kirupa.com/u/Cyrus)\
**Post date:** [February 25, 2003, 3:40pm UTC](https://forum.kirupa.com/t/scriptable-mask-locked-on-y-axis-without-mouse/14361/1 "2003-02-25T15:40:59Z")

</div>

Hello all,

I followed this very interesting tutorial:  
[Scriptable masks](http://www.kirupa.com/developer/actionscript/scriptable_masks.htm)

Now, I want to recreate the same effect (this has been done) but with a little twist, and I do not know how to code the mask with Action Script.

What I want to achieve is this:

1. Lock my mask on the Y axis;
2. When I mouse over it, the mask would move up and down;
3. The mouse cursor would disapear while being in the mask.

My flash file is almost complete. I just need the code to move the mask.

You can download it [here](http://www.baudesign.ca/temp/sig.fla)

Thanks a lot for any help!

---

<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:** [February 25, 2003, 9:51pm UTC](https://forum.kirupa.com/t/scriptable-mask-locked-on-y-axis-without-mouse/14361/2 "2003-02-25T21:51:01Z")

</div>

Hummm, almost a day a still no response!? Is this difficult?

Ho well, I tried different things, and this is what I came up to so far:

[Please download Sig\_2.fla](http://www.baudesign.ca/temp/sig_2.fla)

I am almost there. But I want to lock my mask on the Y axis… again. How do I do that?

And again, I want the cursor of the mouse to disapear. It is possible?

Thanks

:tie:

This is what it looks like so far:

[swf=“[http://www.baudesign.ca/temp/sig\_2.swf](http://www.baudesign.ca/temp/sig_2.swf) height=60 width=300”][/swf]

---

<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:** [February 26, 2003, 1:18pm UTC](https://forum.kirupa.com/t/scriptable-mask-locked-on-y-axis-without-mouse/14361/3 "2003-02-26T13:18:08Z")

</div>

Dunno if this is what u mean???

---

<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:** [February 26, 2003, 1:27pm UTC](https://forum.kirupa.com/t/scriptable-mask-locked-on-y-axis-without-mouse/14361/4 "2003-02-26T13:27:39Z")

</div>

YES!

Thanks Lunar\_4U, we are almost there pal!

Here is the result:

[swf=“[http://www.baudesign.ca/temp/sig\_snow.swf](http://www.baudesign.ca/temp/sig_snow.swf) height=60 width=300”][/swf]

Now if I could get rid of this mouse cursor…

Thanks again. I like the result, being from up north, with snow all around me, this little poetry is quite à-propos!

😏

---

<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:** [February 26, 2003, 1:30pm UTC](https://forum.kirupa.com/t/scriptable-mask-locked-on-y-axis-without-mouse/14361/5 "2003-02-26T13:30:07Z")

</div>

I am messing around with the mouse thing as i speak, i’ll post nething if i get it working, at the moment it dissapearing but then not coming back lol :crazy:

---

<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:** [February 26, 2003, 1:32pm UTC](https://forum.kirupa.com/t/scriptable-mask-locked-on-y-axis-without-mouse/14361/6 "2003-02-26T13:32:50Z")

</div>

Ok here we go i got kida of a working thing even though it aint really good method ☹

I put the code on the hole inside the camera movie clip

---

<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:** [February 26, 2003, 1:38pm UTC](https://forum.kirupa.com/t/scriptable-mask-locked-on-y-axis-without-mouse/14361/7 "2003-02-26T13:38:54Z")

</div>

Two thumbs up! I give Lunar\_4U the “tip of the day” award! Thanks a lot. The result is my new signature, but more, I learnt again today and this is invaluable!

---

<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:** [February 26, 2003, 1:42pm UTC](https://forum.kirupa.com/t/scriptable-mask-locked-on-y-axis-without-mouse/14361/8 "2003-02-26T13:42:41Z")

</div>

Hehe thanks :D, by the way how you get that nice snow effect???

---

<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:** [February 26, 2003, 1:45pm UTC](https://forum.kirupa.com/t/scriptable-mask-locked-on-y-axis-without-mouse/14361/9 "2003-02-26T13:45:26Z")

</div>

> \*Originally posted by Lunar\_4u \*  
> \*\*Hehe thanks :D, by the way how you get that nice snow effect??? \*\*

Thanks to Kirupa, here is the tutorial: [Follow this link](http://www.kirupa.com/developer/mx/snow.htm)

---

<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:** [February 26, 2003, 1:48pm UTC](https://forum.kirupa.com/t/scriptable-mask-locked-on-y-axis-without-mouse/14361/10 "2003-02-26T13:48:11Z")

</div>

cheers mate now i can learn sommet new to 😃
