# Autofocus?

**URL:** <https://forum.kirupa.com/t/autofocus/25820>\
**Category:** Uncategorized\
**Created:** [July 16, 2003, 8:01pm UTC](https://forum.kirupa.com/t/autofocus/25820 "2003-07-16T20:01:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![emeX](https://avatars.discourse-cdn.com/v4/letter/e/a4c791/32.png) [@emeX](https://forum.kirupa.com/u/emeX)\
**Post date:** [July 16, 2003, 8:01pm UTC](https://forum.kirupa.com/t/autofocus/25820/1 "2003-07-16T20:01:15Z")

</div>

Is there an autofocus for a input text field box…like when u load the swf its already focused???

Also is there like a autoscroll like when a Dynamic text Field gets too full it just shifts down???

thnx

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 16, 2003, 8:33pm UTC](https://forum.kirupa.com/t/autofocus/25820/2 "2003-07-16T20:33:51Z")

</div>

You can use this code in the first frame of your movie

Selection.setFocus(name of text box);

For example if I have a text box on the root time line named theField I would use this code

Selection.setFocus(\_root.theField);

Hope that helps!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 16, 2003, 8:47pm UTC](https://forum.kirupa.com/t/autofocus/25820/3 "2003-07-16T20:47:24Z")

</div>

As for you second question… this thread should help, I think. =)

[http://www.kirupaforum.com/forums/showthread.php?s=&threadid=21077](http://www.kirupaforum.com/forums/showthread.php?s=&threadid=21077)
