Ok, I read the request backwards.

Any DisplayObject can have 0 or 1 mask
Any DisplayObject can be a mask for 0 to n other display objects.

-jonathan



On Sun, Apr 12, 2009 at 11:38 AM, Cor <c...@chello.nl> wrote:

> No, you can use the same mask on multiple objects
>
>        var sqr:SquareMC = new SquareMC();
>        var sqr2:SquareMC = new SquareMC();
>        var msk:MaskerMC = new MaskerMC();
>        sqr.mask = msk;
>        sqr2.mask = msk;
>
>
>
> -----Original Message-----
> From: flashcoders-boun...@chattyfig.figleaf.com
> [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of jonathan
> howe
> Sent: zondag 12 april 2009 17:32
> To: Flash Coders List
> Subject: Re: [Flashcoders] multiple masked mcs
>
> Hi, Fabio,
>
> I believe it is only possible to mask with a single clip at any one time
> using the DisplayObject.mask property (note that this accepts only type
> DisplayObject and therefore does not accept Arrays, etc.). There is nothing
> stopping you from making a composite sprite that contains all the clips you
> want to make be a mask, though... except if you have other dependencies on
> the visual tree not changing.
>
> public function set
> mask(value:DisplayObject<
> http://livedocs.adobe.com/flash/9.0/ActionScriptLan
> gRefV3/flash/display/DisplayObject.html>
> ):void<
> http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/specialType
> s.html#void>
>
> -jonathan
>
>
>
> On Sun, Apr 12, 2009 at 8:52 AM, Fabio Pinatti <fpina...@gmail.com> wrote:
>
> > Hello list,
> >
> > straight and forward, sorry if the question is stupid: In flash timeline,
> I
> > can mask any elements as I wish, with just a single mask. isn't it
> possible
> > with actionscript? I know, I can add everything to a holder movieclip and
> > mask it, but there's nothing like setup a mask property to several
> > movieclips, right?
> >
> > Thanks!
> >
> > --
> > Fabio Pinatti
> > :: web.developer
> > :::: www.pinatti.com.br
> > :::::: 19. 9184.3745 / 3342.1130
> > _______________________________________________
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
>
> --
> -jonathan howe
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.287 / Virus Database: 270.11.53/2054 - Release Date: 04/11/09
> 10:51:00
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
-jonathan howe
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to