|
|
 |
FN-FORUM: ActionScript LoadMovie, then SetMask to Perform Gradient Mask technique
date posted 14th June 2007 10:25
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
|
 |
|