Honestly, now I'm a little confused. The example below is for a TextInput control. Are you talking about a keyboard tab? If so, you can use setFocus(). myTextInput.tabEnabled = false, for the other controls, may work too. If that's what you're asking. :)
-TH --- In flexcoders@yahoogroups.com, "Tim Hoff" <timh...@...> wrote: > > > You could just disable the other tabs; until the user has saved the > data. > > -TH > > --- In flexcoders@yahoogroups.com, "b.kotireddy" koti_reddy972@ > wrote: > > > > Hi, > > > > The below code is my one of the TAB from 4 tabs. Before leaving this > > tab i need to evaluate the page, if user forgot to save his filled > > data i need to save that data. My Question is their any way can i keep > > the focus on the same TAB if he gets some error message or some Alert > > in the this TAB. > > > > <cpirMod:CpirModule xmlns:cpirMod="org.cpir.component.*" > > xmlns:mx="http://www.adobe.com/2006/mxml" > > layout="absolute" width="100%" height="100%" > > creationComplete="initData(event)" > > preinitialize="wireEvents(event)" hide="focusoutHandler(event)"> > > <mx:Script> > > <![CDATA[ > > private function focusoutHandler(event:Event):void { > > Alert.show("Going Out of this tab from cities"); > > } > > ]]> > > </mx:Script> > > <mx:Canvas width="100%" height="100%" id="cityCanvas" > > > <mx:HBox width="100%" height="12%"> > > <mx:TextInput id="search" change="searchData()" /> > > </mx:HBox> > > </Canvas> > > </cpirMod:CpirModule> > > > > > > > > Thanks in advance > > koti > > >