October 8, 2013 asvignesh 10Comment

All the modern browser or mobile apps support a placeholder for the text input field. once you click on it the focus move to the beginning of the text and the placeholder remain until you start typing. To achieve this using Flex , Actionscript <mx:Script><![CDATA[ private var sampleText_text:String = “Enter Name”;   protected function sampleText_initializeHandler(event:FlexEvent):void   {   //For Place Holder for sampleText   sampleText.addEventListener(FocusEvent.FOCUS_IN , focusin);   sampleText.addEventListener(FocusEvent.FOCUS_OUT,focusout);     }   //fire when click to edit   public function focusin( event:Event ) : void   {   if(sampleText.text == sampleText_text)   {   sampleText.text = “”;   }   }   //fire when you clicked out   public function focusout(event:Event):void   {   if(sampleText.text == “”)…

Software developer experience in building storage management and Data protection software for the Private and public cloud.

Disclaimer :

This is a personal weblog. The opinions expressed here represent my own and not those of my employer. my thoughts and opinions change from time to time… This weblog is intended to provide a semi-permanent point in time snapshot and manifestation of the various memes running around my brain, and as such any thoughts and opinions expressed within out-of-date posts may not the same, nor even similar, to those I may hold today.