Public Voice Network
- is there a box available … 2727
- gold men's volleyball 22
- Freehand "Punch"… 44
- IOUSAthemovie.com 11
- I smoked a cigar 66
- working in Canada 1111
- Art or Shite? 3939
- girlfriend and design wor… 3232
- blogul + hugle 1313
- QTVR 77
- Translated Logos 22
- Things to check out in Sa… 1616
- Help my business? 1313
- EC: The Stone Twins 1010
- flash brainfart 33
- Beerbeer reach 100 post 33
- R.I.P John Challis 1818
- McCain 3737
- Logo Crit 3333
- Critical Mass 33
- Best Home Inkjet 1616
- You play guitar? 2424
- external hard drive 88
- Your Favourite Song 4949
Gradient mask in flash 99 Responses
Last post: 6 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

