ColorMatrixFilter is the right track. Have a look at this: http://www.ifbin.com/news/2005/09/flash-8-flashfilterscolormatrixfilter.\ html <http://www.ifbin.com/news/2005/09/flash-8-flashfilterscolormatrixfilter\ .html>
Setting the RGB lists to [0.2, 0.2, 0.2, 0.2, 0] for each gives a nice greyed-out appearance, and then you can adjust the alpha to suit. --- In flexcoders@yahoogroups.com, "Lincoln Mitchell" <[EMAIL PROTECTED]> wrote: > > There doesn't appear to be a grayscale filter. However, BlendMode and > ColorMatrixFilter sound promising. I am I on the right track? > > > > Linc > > > > _____ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Petro Bochan > Sent: Thursday, 17 May 2007 5:29 PM > To: flexcoders@yahoogroups.com > Subject: RE: [flexcoders] How do you generate inactive icon states > > > > <?xml version="1.0" encoding="utf-8"?> > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > creationComplete="init();" layout="absolute"> > > <mx:Script> > > <![CDATA[ > > private var pLoader:Loader; > > private var pUrl:URLRequest; > > > > private function init():void { > > pLoader = new Loader(); > > pUrl = new URLRequest(); > > > > pUrl.url = > "http://rols.ramesys.com/images/Ramesys/Adobe/Adobe-Logo.jpg"; > > > pLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoadComplete); > > pLoader.load(pUrl); > > } > > > > private function > onLoadComplete(anEvet:Event):void { > > var > vDropShadowFilter:DropShadowFilter = new DropShadowFilter(); > > > > pLoader.alpha = .5; > > pLoader.filters = > [vDropShadowFilter]; > > > > theStage.addChild(pLoader); > > } > > ]]> > > </mx:Script> > > > > <mx:SWFLoader id="theStage" height="100%" width="100%"/> > > </mx:Application> > > > > _____ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of Lincoln Mitchell > Sent: Thursday, May 17, 2007 11:43 AM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] How do you generate inactive icon states > > > > I am trying to generate an inactive icon state from an original color png > file. It needs to be 50% alpha="0.5" and grey scale. > > Can this be done in code, if so how? > > TIA > > Linc >