# Masking a slider image?

**URL:** <https://forum.kirupa.com/t/masking-a-slider-image/3720>\
**Category:** programming\
**Created:** [October 16, 2001, 8:02pm UTC](https://forum.kirupa.com/t/masking-a-slider-image/3720 "2001-10-16T20:02:00Z")\
**Posts on this page:** 12\
**Page:** 1

<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:** [October 16, 2001, 8:02pm UTC](https://forum.kirupa.com/t/masking-a-slider-image/3720/1 "2001-10-16T20:02:00Z")

</div>

I am trying to figure out why my mask is not working. I have an panaramic image and have put it in a flash with a draggy action script, with a rectangle mask (acting as a window) to show only part of the image. What I want to do is to allow the user to control the direction and speed of the image as it passes in front of the window. When I publish it the mask is not there but the image does move correctly.

any answers would be great and sugestions are equally valuable.

thanks Matt

---

<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:** [October 16, 2001, 8:10pm UTC](https://forum.kirupa.com/t/masking-a-slider-image/3720/2 "2001-10-16T20:10:16Z")

</div>

This is the file that I published check it out if you want.

[www.hatchmueller.com/hidden-lake.html](http://www.hatchmueller.com/hidden-lake.html)

Thanks again

matt

---

<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:** [October 16, 2001, 8:36pm UTC](https://forum.kirupa.com/t/masking-a-slider-image/3720/3 "2001-10-16T20:36:55Z")

</div>

i dont think you can mask pictures.

am i right or am i wrong??

what you could do is trace your picture so its in vecotrs the try is. but the file size will rise.

---

<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:** [October 16, 2001, 8:54pm UTC](https://forum.kirupa.com/t/masking-a-slider-image/3720/4 "2001-10-16T20:54:14Z")

</div>

I can mask the image if I do a motion tween and that works, but I want the user to control what he sees.

---

<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:** [October 16, 2001, 9:56pm UTC](https://forum.kirupa.com/t/masking-a-slider-image/3720/5 "2001-10-16T21:56:44Z")

</div>

you can mask anything you darn well please (except quicktime movies).

are you trying to move the mask, or the picture behind it?

unfortunately, a movie on a mask layer cannot be targeted, but movies beneath the mask should behave normally.

any more info you can give to help me understand your problem?

---

<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:** [October 16, 2001, 10:21pm UTC](https://forum.kirupa.com/t/masking-a-slider-image/3720/6 "2001-10-16T22:21:56Z")

</div>

I think i know what you mean. What you do is create a new layer ontop of the mas and in that layers draw out what you want your window to look like, make sure its the same size as your mask. Thats how i achieved the effect in my footer.

---

<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:** [October 17, 2001, 1:42pm UTC](https://forum.kirupa.com/t/masking-a-slider-image/3720/7 "2001-10-17T13:42:07Z")

</div>

Lets try this.

On my main timeline I have four layers an action layer, graphics layer, mask layer, and slider layer(going top to bottom)

Actions layer has a stop action  
graphics layer has some graphics  
mask layer is the mask  
slider layer has the startDrag action(I took a sliding menu and added an image instead of buttons)

[the fla file is here](http://www.hatchmueller.com/hidden-lake2.fla) it is about a 200k file. If you want to look at what I have done there it is.

I am not sure what else to do I think I will experiment with the post about the navigation bar in action script forum.

Thanks again  
Matt

---

<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:** [October 17, 2001, 5:19pm UTC](https://forum.kirupa.com/t/masking-a-slider-image/3720/8 "2001-10-17T17:19:44Z")

</div>

the mask is not working because the duplicated clips are appearing over top of it.

to mask duplicated clips, put the clip you’re duplicating in a movie and mask that movie. that way, the duplicated clips are all inside the masked movie and stay underneath the mask.

good luck!

---

<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:** [October 17, 2001, 6:24pm UTC](https://forum.kirupa.com/t/masking-a-slider-image/3720/9 "2001-10-17T18:24:55Z")

</div>

Ok, thanks, but maybe I did something wrong?

I did what you said,by making a movie (F:cool: out of the slider.  
Now the mask is working but the drag is not. It has become a static image.

any other hints?

Thanks  
Matt

---

<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:** [October 17, 2001, 6:37pm UTC](https://forum.kirupa.com/t/masking-a-slider-image/3720/10 "2001-10-17T18:37:26Z")

</div>

that smilee face was suposed to be f8, the shortcut key to make a symbol, what hapened?

Matt

---

<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:** [October 17, 2001, 7:37pm UTC](https://forum.kirupa.com/t/masking-a-slider-image/3720/11 "2001-10-17T19:37:59Z")

</div>

disable emoticons (inposting options below) to rid yourself of the smiley face menace. ; )

look in the “draggy” movie. all those commands are assuming that the movies are in \_root. now that you’ve moved them, you’ll need to scope those commands accordingly.

say you named your movie of duplicates “duplicates”, you could change all the references to read /duplicates/… , or you could surround the setproperty actions with a with block:

with(\_root.duplicates){  
setPro…(etc, etc)  
}

now it’s assuming that everything in the curlies is done with \_root.duplicates. if it doesn’t find the variable in question it will look in the calling movie, and then in \_root before giving up. that’s why the references to “speed” will still work inside the curlies.

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:** [October 18, 2001, 2:04pm UTC](https://forum.kirupa.com/t/masking-a-slider-image/3720/12 "2001-10-18T14:04:53Z")

</div>

Thanks supra!

I only updated the change of address on the main timeline. In the controller movie I needed to point them to the right place.

Thanks again  
matt

p.s. what I’m working on is my first flash site, and I’m very greatful for all the support that I have recieved.
