Gradient or Mask stage background?
by lparisek » Thu, 12 Mar 2009 22:02:59 GMT
Hello all,
I was wondering if there is a way to apply a gradient or mask to the stage
background. Essentially making part of the flash movie transparent to the
content / page behind it. I am relatively new to Flash and I am using CS4 with
AS3.
Thanx
Les
Re: Gradient or Mask stage background?
by David Stiller » Thu, 12 Mar 2009 22:13:21 GMT
Les,
This isn't possible directly, but the workaround is easy. Create a new
layer and drag it to the bottom of whatever layers you may already have in
the Timeline panel. Doing so puts your new layer beneath all other content.
In the new layer, use the Rectangle tool to draw a rectangle to the same
dimensions as the Stage. Use the Free Transform tool or the Align panel to
get your rectangle to the exact dimensions. Use the Color panel to give the
rectangle a gradient fill.
Aha. Then you'll have to use something called WMODE in the HTML itself.
This *does* work in most browsers nowadays, but it's potentially buggy in
some cases. You can read details on this page:
http://www.**--****.com/
David Stiller
Co-author, ActionScript 3.0 Quick Reference Guide
http://www.**--****.com/
"Luck is the residue of good design."
Re: Gradient or Mask stage background?
by lparisek » Fri, 13 Mar 2009 05:25:16 GMT
That was exactly what I needed.
Thanx
Les
Similar Threads:
1.Gradient Mask using JPEG as mask
Hi there. I am trying to find a way to use loaded greyscale JPEGs to form
gradient masks in Flash. Basically I want to be able to create an opacity mask
just like you do in Illustrator or Photoshop, where it's the darkness of each
pixel that determines opacity, rather than the alpha value.
It seems that in Flash the only way to create a gradient mask is to use a mask
that has varying alpha values. I suppose that means I could use PNG files to
form my mask instead, but I really need to be able to do it with JPEGs.
Perhaps there is a BitmapData filter that can convert shades of grey to
degrees of alpha?
Thanks :)
Lara.
2.Putting gradient mask movieclip inside a scrollpane makes mask and maskee vanish
Hello all, I hope someone can help with this!:
I have got an SWF which preloads a dynamic JPG, waits until the JPG has
completely loaded, then reveals the JPG using a gradient mask:
this.image_holder.cacheAsBitmap = true;
this.mask_clip.cacheAsBitmap = true;
this.image_holder.setMask(this.mask_clip);
this.mask_clip.gotoAndPlay("on");
This works, until I use the SWF as the content in a scrollpane, or load it
into a UI Scrollbar-controlled HTML textfield as the source for an <IMG>
tag.
If I do this, the gradient mask does not show at all. The masked clip
flickers or vanishes altogether until i click somewhere inside the
scrollpane, scroll the content, or the dynamic mask is removed.
Has anyone experienced this? I'm still using version 6 components, but I
get the same problems if I use version 8 components.
If anyone can help please let me know!
Thanks,
Gareth Jones
3.how to apply gradient color to stage BG
How do you apply a gradient color BG to the stage in FLASH 8 Prof? I've made a
dark blue to light blue gradient in the color mixer, tried to use the paint
bucket but it won't work...what do I do?
Thanks
KB
4.can you make gradient masks?
i want to make a mask in gradient to slowly reveal stuff
is it possible ? if yes how and if no , any better ideas ?
5.GRADIENT MASK
I am trying to make a gradient mask in Flash 8. Is this possible?
Thanks,
smiller
6. need help with gradient mask over XML images
7. gradient opacity mask
8. Gradient mask?