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.
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.
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 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.
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.
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.