I think i have found sth useful

<code>

_root.createEmptyMovieClip("mascara", 3);

_root.createEmptyMovieClip("original", 2);
original.attachMovie("foto_original", "foto_original", 1);

_root.createEmptyMovieClip("desenfoke", 1);
desenfoke.attachMovie("foto_desenfoke", "foto_desenfoke", 1);

original.setMask(mascara);

mascara.onMouseMove = function() {
   if (dibujar) {
       datoX = mascara._xmouse;
       datoY = mascara._ymouse;
       mascara.lineStyle(0, 0x000000, 100);
       mascara.beginFill(0x000000);
       mascara.moveTo(datoX, datoY);
       mascara.lineTo(20+datoX, 0+datoY);
       mascara.lineTo(20+datoX, 20+datoY);
       mascara.lineTo(0+datoX, 20+datoY);
       mascara.lineTo(0+datoX, 0+datoY);
   }
};
mascara.onMouseDown = function() {
   dibujar = true;
   mascara.moveTo(mascara._xmouse, mascara._ymouse);
};
mascara.onMouseUp = function() {
   dibujar = false;
};

</code>
Pedro

2007/7/6, elibol <[EMAIL PROTECTED]>:

Call something like this after you do the swap:

targetMC.setMask(maskMC);

This will reset the mask. Masking is tricky business. You cannot mask more
than one thing. I mention this in case you are using swapDepths to try and
cover more movieclips with your mask - it will not work... I don't think
the
depth of the mask has any impact on how it works.

You might want to consider operating the masking mechanism
programmatically
to begin with.

My summer is alright, thank you. Hope this helps.

H

On 7/5/07, Paul V. <[EMAIL PROTECTED]> wrote:
>
> Hey guys, how is the summer treating you guys?  Quick question,  I am
> running swapDepths() on a movClip and it's Mask layer. The mask doesn't
work
> after the swap and it is going to one level above the movClip.
>
> So if anyone can direct me to how to fix this problem specifically that
> would be great !!
>
> Thanks,
>
> Vdst.
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to