Hi, Try out the code below may it'll help you. I hope this logic helps you please reply
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init()"> <mx:Script> <![CDATA[ import mx.controls.textClasses.TextRange; private var textSelection:TextRange; private function init():void{ textSelection = new TextRange(btn,false,0,5); textSelection.fontStyle = "italic"; } ]]> </mx:Script> <mx:Button id="btn" label="eGreeting" mouseOver="init()" /> </mx:Application> Kalpesh Mahida On Tue, Mar 3, 2009 at 4:25 PM, dhileepen chakravarthy <[email protected]>wrote: > The same is displayed on context menu also required....- Show quoted text > - > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

