Flash Q: Gradient Masks and Loaded Movies
- Started
- Last post
- 5 Responses
- CyBrain
Is it possible to use gradient masks with a loaded movie as the movie clip being masked?
I am using Runtime Bitmap Caching for the mask movie clip and loaded movie, and I'm using setMask().
- skelly_b0
I think you could just mask an empty MC then load that external movie into...
- PonyBoy0
this is old flash MX stuff... seems to do what you want... - Not sure what's changed in the last versions of Flash though - but cacheAsBitmap appears to be your friend. :)
- PonyBoy0
yeah... it's early... you got that far already...
...
... um... like skelly said... then add use the onLoadComplete (or whatever it's called) listener... once it's loaded... cache it... i think that's how i got it to go (did this once a long time ago... am looking for it now...)
- Fariska0
Ponyboy is correct:
- Load the movie
- cache it as a bitmap when loaded
- cache as bitmap also the mask if it wasn't so before
- dynamically set the mask.
- CyBrain0
Thanks to all.
I also had to put the setMask function in the onLoadInit function.I feel like I should be paying you guys sometimes.