Hi swapna, I hope it is useful for u. <?xml version="1.0" encoding="UTF-8"?>
<mx:Form xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:components=" components.*"> <mx:Script><![CDATA[ *import* flash.events.*; *import* flash.utils.*; *import* mx.binding.*; *import* mx.containers.*; *import* mx.controls.*; *import* mx.core.*; *import* mx.events.*; *import* mx.styles.*; *public* *static* *const* PROMPT:String = *"Enter Keyword ..."*; *public* *function* _focusHandler(event:FocusEvent) : *void * { *switch*(event.type) { *case* FocusEvent.FOCUS_IN: { *if* (textInput.text == PROMPT) { textInput.text = *""*; textInput.setStyle(*"color"*, *"0x000000"*); textInput.setStyle(*"fontStyle"*, *"none"*); textInput.setStyle(*"fontFamily"*, *"Arial"*); textInput.setStyle(*"fontSize"*, *"12"*); } defaultButton = btn_search; *break*; } *case* FocusEvent.FOCUS_OUT: { *if* (textInput.text == *""*) { textInput.text = PROMPT; textInput.setStyle(*"color"*, *"0xcccccc"*); textInput.setStyle(*"fontStyle"*, *"italic"*); textInput.setStyle(*"fontFamily"*, *"Verdana"*); textInput.setStyle(*"fontSize"*, *"10"*); } defaultButton = *null*; *break*; } *default*: { *break*; } } *return*; }*// end function * ]]></mx:Script> <mx:Canvas backgroundAlpha="0.85" backgroundColor="#00e8e8e8" borderColor=" 13421772" borderStyle="solid" cornerRadius="5" dropShadowColor="13421772" dropShadowEnabled="true" width="225"> <components:PromptingTextInput bottom="4" id="textInput" left="4" paddingRight="48" paddingTop="2" prompt="Enter Keyword ..." right="4" top="4 "/> <mx:LinkButton bottom="6" icon="{IconManager.search_small}" id="btn_search" right="6" top="6" width="22"/> </mx:Canvas> </mx:Form> thanks krishna On Sat, May 29, 2010 at 9:18 PM, swapna y <swapna....@gmail.com> wrote: > hello All > > i need help to create search engine in own website... > actually i have used google search engine.. but thats not acceptable for my > requirements.. > so any body please tell me how to create own search engine..if posible send > sample code to doing that................its urgent > if u know please let me know > > Thanks & Regards > Swapna > > -- > 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_in...@googlegroups.com. > To unsubscribe from this group, send email to > flex_india+unsubscr...@googlegroups.com<flex_india%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > -- 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_in...@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.