Skip to main content
Participant
August 3, 2006
Question

Mask multiple MovieClip

  • August 3, 2006
  • 2 replies
  • 271 views
Hi !
Is it possible to mask more than one movieclip in action script.
I see that's possible in the gaphical author environment.


_root.attachMovie("mask_mc","mask_mc",10);
_root.attachMovie("a_mc","a_mc",0);
_root.attachMovie("another_mc","another_mc",1);
_root.a_mc.setMask(_root.mask_mc);
_root.another_mc.setMask(_root.mask_mc);

This simple code don't work...

Thanks a lot.
Tivins.
This topic has been closed for replies.

2 replies

tivinsAuthor
Participant
August 3, 2006
Thanks a lot.
Inspiring
August 3, 2006
Tivins,

> Is it possible to mask more than one movieclip in
> action script. I see that's possible in the gaphical
> author environment.

Yes. Make sure to include all the movie clips you want to mask inside
of a single movie clip, then mask that "container" movie clip.


David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."