simple, right ?
Here is a test code ...
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Script>
<![CDATA[
public function Focus():void
{
textField.setFocus();
textField.setSelection(0,0);
}
]]>
</mx:Script>
<mx:Panel x="28" y="25" width="250" height="200" layout="absolute">
<mx:TextInput x="10" y="19" focusEnabled="true" id="textField"
creationComplete="Focus();" text="test"/>
</mx:Panel>
</mx:Application>
Cristian
--- In [email protected], "jeremy lu" <[EMAIL PROTECTED]> wrote:
>
> how about textField.setSelection(0,0) ?
>
> On 5/19/06, Cristian Pop <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > I have some problem setting the focus in a PopUp to a TextInput
control.
> > I've tried calling setFocus on the textinput both in creationComplete
> > Evnet of the Parent and alos on the input itself but the only result
> > is that the focus marker appears on on input but I cannot type
> > anything in it.
> >
> > I've also tried using FocusManaget with the same.
> >
> > Thanks,
> >
> > Cristian
> >
> >
> >
> >
> >
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
>
--
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
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

