Hi,
I know this sounds simple, using the MovieClip.setMask(maskClip) syntax - but I just can't get it to work!
I have one movieclip (which loads an image, this is the Maskee) and a second movieclip which loads an instance of an object (a filled shape). I then want to mask the image.
Code:
On Combobox Change
on(change) {
if(this.selectedItem.data != "-1") {
_root.design.mcForeground.loadMovie(_root.sFgColour);
_root.design.mcForeground._xscale = 50;
_root.design.mcForeground._yscale = 40;
_root.design.mcMask.attachMovie(this.selectedItem.data,"design_"+_root.dCount,mcDesign.mcMask.getNextHighestDepth());
_root.design.mcForeground.setMask(_root.design.mcMask);
}
}
No syntax errors are found - the only symptom is that the shape (in this case a lovely bunny) doesn't mask the background (a picture of a carpet).
I was playing around with the .setMask method earlier and it worked perfectly. I'm not sure what I'm missing, and would really love any advice! Apologies if I'm being rather stupid!
The Results:
Thanks,
Dave.