Public Voice Network
- guitar hero+bike riding 77
- google themes 1212
- Album of the Year 6161
- 10 Days 33
- Media Storage 33
- Gmail Themes 22
- Trigger Sue 11
- Logo Contest! 4444
- New XBox Live 4242
- blog 3007830078
- diego maradona 2828
- Politics 48224822
- opinion question 44
- ffffound invite swapshop 474474
- Hedge for Christmas
- SSD - Solid State Drives 1010
- www.itsinthemaking.com 22
- Chick of the Day 15871587
- so... i made a short film 6767
- New species 88
- drugs r awesome 7272
- Steampunk 2828
- skulls 4242
- Seeking botbot re: ffffou… 1616
Gradient mask in flash 99 Responses
Last post: 9 months, 4 weeks ago | Thread started: Jan 25, 08, 2:45 a.m.
- randalldon
If you're using Flash 8+ (as2) you can do as skt says (black mc with hole cut out). You can use this as a gradient mask by applying a blur to the mc (with as2 or on the timeline). If you want any animation on the mask this will need to be done within the mc.
Once you have the blur applied to the mc and any animation sorted give the mask an instance name eg "maskInstance" and give your mc an instance name eg "mcInstance". Then is the first frame actions on the main timeline put this code:
mcInstance.setMask(maskInstance…
The final stage is to make sure you have "use runtime bitmap caching" ticked in the symbol properties for both the mc & the mask.
You should be good to go from there.
Hope it helps!

- Dog-earJan 25, 08, 3:24 a.m. – Permalink
- randalldon
Apologies missed the closing bracket - first frame code should be:
mcInstance.setMask(maskInstance…


- Dog-earJan 25, 08, 3:25 a.m. – Permalink
- randalldon
I see QBN won't let me put the closing bracket in - the last part should be (maskInstance)


- Dog-earJan 25, 08, 3:27 a.m. – Permalink
- tbgd
There's some source to do it very easily here. http://www.whatdoiknow.org/archi…
Thanks to Todd Dominey.

- Dog-earJan 25, 08, 5:26 a.m. – Permalink
- Bullitt
Thanks for the advice guys!
Another question if you can help.
The idea behind this spotlight effect is for it to highlight areas of a graphic by using some buttons you rollover to navigate, either left or right. I'm shit with actionscript, can anyone direct me to a good tutorial that will allow me to scroll a graphic left or right.?What I got so far is a spotlight gradient effect, static. underneath is a movie clip which I will want to move either left of right ( areas of which will be highlighted underneath the spotlight gradient.)
Cheers,


- Dog-earJan 25, 08, 5:45 a.m. – Permalink

