duplicate 2 attach 1 and mask attached?
My AS2 code (not working):
var btnX:Array=[gpat_btn0, gpat_btn1, gpat_btn2];
var attX:Array=["pat0","pat1","pat2"];
for(i=0;i<btnX.length;i++){
btnX.pvar=i;
btnX.onRelease = function(){
for(s=0;s<2;s++){
_root.movieC1.movieC2.C2.duplicateMovieClip(_root.movieC1.movieC2["clip"+s], _root.movieC1.movieC2.getNextHighestDepth());
}
_root.movieC1.movieC2.clip0.attachMovie(attX[this.pvar], attX[this.pvar], _root.movieC1.movieC2.C2.getNextHighestDepth());
_root.movieC1.movieC2.clip1.setMask(_root.movieC1.movieC2.clip0);
}
}
I want to create 2 duplicates of [ _root.movieC1.movieC2.C2 ] inside the same movieclip [ _root.movieC1.movieC2 ].
Attach a [ attX ] in one of the duplicates created.
Mask the above attached movieclip with the other duplicate.
