[Flashcoders] Can't tint AND add GlowFilter?

2006-04-25 Thread Mendelsohn, Michael
Hi list...

The code below tints a MC on the stage and then I'm trying to put a
black glow around it, but the glow turns out to be the same tint as the
ColorTransform.  Is there a way to make sure the glow is a different
color?

Thanks,
- Michael M.


var clr:ColorTransform = new ColorTransform();
clr.rgb = Number(String(0x + fmColors[whichColor][0].toString(16) +
fmColors[whichColor][1].toString(16) +
fmColors[whichColor][2].toString(16)));
trans.colorTransform = clr;
var fltr:Array = [new GlowFilter(0x00, 1, 5, 5, 1000, 2)];
newClip.filters = fltr;


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Can't tint AND add GlowFilter?

2006-04-25 Thread Michael Bedar

You will need to make a seperate MC to add the glow to...

ie

MainMC.GlowMC
MainMC.TintMC

OR, you can apply the filters to a bitmap, instead of applying them  
directly to the MC.




On Apr 25, 2006, at 3:39 PM, Mendelsohn, Michael wrote:


Hi list...

The code below tints a MC on the stage and then I'm trying to put a
black glow around it, but the glow turns out to be the same tint as  
the

ColorTransform.  Is there a way to make sure the glow is a different
color?

Thanks,
- Michael M.


var clr:ColorTransform = new ColorTransform();
clr.rgb = Number(String(0x + fmColors[whichColor][0].toString(16) +
fmColors[whichColor][1].toString(16) +
fmColors[whichColor][2].toString(16)));
trans.colorTransform = clr;
var fltr:Array = [new GlowFilter(0x00, 1, 5, 5, 1000, 2)];
newClip.filters = fltr;


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com