Originally posted by: Newsgroup User
[quoted text, click to view] > you can use the MovieClip.setMask(mc) function to apply a mask to a
> dynamically created & loaded movieclip.
>
> basically mc can be a movieclip that was created at compile time and
> during
> runtime of your flash movie it can be applied to the dynamically created
> movieclip whenever you want.
>
> you could even take it a step further and dynamically create a movie clip
> for
> the mask and use the Movie Clip Drawing methods to draw the portions of
> the pic
> you currently have loaded and then set the mask using the
> MovieClip.setMask(mc)
> method.
>
> It all depends on how intricate you want this to be
Hi,
Using your suggestion here to RSegars, and Urami_'s suggestion to me on a
similar subject the other day, I have come up with this..., but it doesn't
work:
createEmptyMovieClip("wasabi_images", 0);
wasabi_images._x = 0;
wasabi_images._y = 0;
wasabi_images.loadMovie("wasabi_blader_01.jpg");
wasabi_images.setMask(wasabi_image_msk);
Where should this script go? I have it in the masking layer (layer 6) on
frame one (my swf only has one frame). It loads the JPG okay, but it is not
masked.
What am I doing wrong?
Thanks,
Bruce
If i'm not mistaken, the movieclip you are loading the clip into must be done
loading before you set the mask on it.
Try adding code to your fla to ensure that AFTER your clip has completed
loading the external file then it executes the setMask() call.