PDA

View Full Version : Masking "i" depth movies



tobijas20
November 2nd, 2005, 03:06 PM
Do you know these "duplicateMovie/random" animations? Like:

i = 0;
onEnterFrame = function () {
i++;
duplicateMovieClip(_root.mymovie, "mymovie_"+i, i);
if (i>1000) {
i = 0;
}
};

How to mask them? Each movie has a higher depth.

Dauntless
November 2nd, 2005, 03:27 PM
Just use this["mymovie_"+i].setMask(MovieClipToMask); ?

tobijas20
November 2nd, 2005, 03:46 PM
Nope, I've already tried such things like "setMask".
Here is an example (fla).

Dauntless
November 2nd, 2005, 03:53 PM
And what do you want to mask with what ?

tobijas20
November 2nd, 2005, 04:02 PM
The width of this animation is set by the number of duplicated movies (1000). I want to make animations like this running just in areas defined with mask.

stringy
November 2nd, 2005, 04:57 PM
The width of this animation is set by the number of duplicated movies (1000). I want to make animations like this running just in areas defined with mask.
i don`t really understand what you are trying to do either. Here is a way of masking each clip seperately.
If you want to mask them all together,just stick them in one mc and mask that.

tobijas20
November 3rd, 2005, 02:11 AM
Ha ha, thanx guys. That was so obvious, stick them together in one MC! Never work too late ;)