|
|
 |
Re: FN-FORUM: ActionScript LoadMovie, then SetMask to Perform Gradient Mask technique
date posted 14th June 2007 11:12
Ive not used dynamic masks before, I would suggest looking on the
actionscript.org forum, they usually have a bunch of solutions to problems
like that.
Good luck
Steve Wilson
> Hey guys,
>
> Id thought I'd pick someone's brains about this problem that I have.
>
> For all you people that are trained in the art of the ActionScript!!!
>
>
> I am trying to perform a gradient mask effect, which I have successfully
> done as the following.
>
> mc.cacheasBitmap = true;
> mask.cacheAsBitmap = true;
> mc.setMask( mask );
> This works fine in hardcoding, but as we all know, no client should get
> anything hardcoded, so I have made it dynamic by loading an external jpg
> using loadmovie like this.
>
> mc.loadMovie("pic.jpg");
> mc.cacheasBitmap = true;
> mask.cacheAsBitmap = true;
> mc.setMask( mask );
>
> When I execute the latter piece of code, it just shows the graphic above
> the picture and no masking effect happens. Could someone please give any
> advice.
>
> Thankx.
>
> Daniel Grant
> www.danielgrant.co.uk
|
 |
|