Hi, Call the setFocus() method on the image when we click on the Button. And add the {unglowImage} effect when the focusInEffect.
I have modified your code for your perusal. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="top" horizontalAlign="center" backgroundGradientColors="[ > > 0x000000,0x323232]" paddingTop="0" > viewSourceURL="srcview/index.html"> > <mx:Script> > <![CDATA[ > public function cleareff():void > { > flex.setFocus(); > } > ]]> > </mx:Script> > <mx:Glow id="glowImage" duration="10" alphaFrom="1.0" > alphaTo="0.3" blurXFrom="0.0" blurXTo="50.0" blurYFrom="0.0" > blurYTo="50.0" color="0x22A050"/> > > <mx:Glow id="unglowImage" duration="1000" alphaFrom="0.3" > alphaTo="1.0" blurXFrom="50.0" blurXTo="0.0" blurYFrom="50.0" > blurYTo="0.0" color="0x3380DD"/> > > <mx:Panel title="Glow Effect" layout="vertical" color="0xffffff" > borderAlpha="0.15" width="500" > paddingTop="10" paddingRight="10" paddingBottom="10" > paddingLeft="10" horizontalAlign="center"> > > <mx:Text width="100%" color="0x323232" textAlign="center" > paddingBottom="10" > text="Click and hold the mouse on the image to see > glowImage effect. Release the mouse to see unglowImage effect."/> > > <mx:Image id="flex" source="@Embed('001.jpg')" > mouseDownEffect="{glowImage}" focusInEffect="{unglowImage}"/> > <mx:Button label="cleareff" click="cleareff()" /> > </mx:Panel> > > </mx:Application> Hope this will help you. On Mon, May 25, 2009 at 9:41 PM, hari <harikrishna.f...@gmail.com> wrote: > > hello > > iam applying effect when mousedown ..... > > but i need click clear button i want remove the applied effect .... > > help me out anyone > > thank you > yugi > > > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="vertical" verticalAlign="top" > horizontalAlign="center" > backgroundGradientColors="[0x000000,0x323232]" paddingTop="0" > viewSourceURL="srcview/index.html"> > <mx:Script> > <![CDATA[ > public function cleareff():void > { > flex.setStyle('mouseDownEffect',""); > } > ]]> > </mx:Script> > <mx:Glow id="glowImage" duration="10" alphaFrom="1.0" > alphaTo="0.3" blurXFrom="0.0" blurXTo="50.0" blurYFrom="0.0" > blurYTo="50.0" color="0x22A050"/> > > <mx:Glow id="unglowImage" duration="1000" alphaFrom="0.3" > alphaTo="1.0" blurXFrom="50.0" blurXTo="0.0" blurYFrom="50.0" > blurYTo="0.0" color="0x3380DD"/> > > <mx:Panel title="Glow Effect" layout="vertical" color="0xffffff" > borderAlpha="0.15" width="500" > paddingTop="10" paddingRight="10" paddingBottom="10" > paddingLeft="10" horizontalAlign="center"> > > <mx:Text width="100%" color="0x323232" textAlign="center" > paddingBottom="10" > text="Click and hold the mouse on the image to see > glowImage effect. Release the mouse to see unglowImage effect."/> > > <mx:Image id="flex" source="@Embed('001.jpg')" > mouseDownEffect="{glowImage}"/> > <mx:Button label="cleareff" click="cleareff()" /> > </mx:Panel> > > </mx:Application> > > > > > -- Thanks, Ganga "Start by doing what is necessary, then what is possible, and suddenly you are doing the impossible." --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_india@googlegroups.com To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---