Title: quote
Claus -

Thanks!

Claus Wahlers said the following:


> I'm having a brain f*rt. In 1.5 you could do a
> Selection.setFous(<textInput id>) from a show attribute for the
> container where the TextInput component resided. This would place the
> cursor inside the TextInput field
>
> How is this done in Flex 2.0?

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
override protected function childrenCreated():void {
input.setFocus();
}
]]>
</mx:Script>
<mx:TextInput x="27" y="147" id="input"/>
</mx:Application>

Cheers,
Claus.

--
claus wahlers
côdeazur brasil
http://codeazur.com.br


--
Whether you think that you can, or that you can't, you are usually right.
 - Henry Ford
__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to