Skip to main content
Known Participant
January 7, 2011
Question

setMask, using a gradient mc to a Loaded image, possible?

  • January 7, 2011
  • 1 reply
  • 553 views

I've tried to be very descriptive on title, cause i have found around loads of "setmask does not work on dynamicly created mcs'. My case quite differs. =x

I've got 2 mcs, one holds an gradient and the other is the loader. The image is loaded using the loadmovieclip class.

First I've tried to set the code in the mc that holds both. Failed. Also tried setting on parents, and onLoadInit. All failed.


Is what I'm trying to achieve possible?


Thanks

Ps: Surelly I've done double testing for each time I've tried. Firstly I would try placin an image inside the loader mc, to be sure the code was working without the load, and only then check with loading.

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
January 7, 2011

yes.  enable the cacheAsBitmap property of the masked and masking movieclips and assign your mask after loading is

complete.


vb_kAuthor
Known Participant
January 7, 2011

Hi!

Thanks for the reply once again =). You're a very helpfull user!

Got it working! =)

kglad
Community Expert
Community Expert
January 7, 2011

you're welcome.