# Enable TABing in texfieldS?

**URL:** https://forum.kirupa.com/t/enable-tabing-in-texfields/18481
**Category:** Uncategorized
**Created:** [April 17, 2003, 2:26am UTC](https://forum.kirupa.com/t/enable-tabing-in-texfields/18481 "2003-04-17T02:26:05Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![mindfriction](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/mindfriction/32/172_2.png) [@mindfriction](https://forum.kirupa.com/u/mindfriction)
#### Post date: [April 17, 2003, 2:26am UTC](https://forum.kirupa.com/t/enable-tabing-in-texfields/18481/1 "2003-04-17T02:26:05Z")

</div>

Hi guys,

I have created a input textfield via createTextField(). I want to have it so that the user can actaully ‘tab’ when their typing in the textfield, but all pressing tab does, is select other elemts in the animation.

Any solution!!???

---

<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: [April 17, 2003, 2:34am UTC](https://forum.kirupa.com/t/enable-tabing-in-texfields/18481/2 "2003-04-17T02:34:19Z")

</div>

search the forums for tabIndex()

---

<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: [April 17, 2003, 4:04am UTC](https://forum.kirupa.com/t/enable-tabing-in-texfields/18481/3 "2003-04-17T04:04:02Z")

</div>

i did already look in the forums Jubba .  
tabIndex is referreing to the tabbing selection between objects in the movie, what I am talking about is the tab within the very textfiled. Like when your in a text editor and you tab to indent to write code.

Do you know how I can do this?

---

<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: [April 17, 2003, 4:05am UTC](https://forum.kirupa.com/t/enable-tabing-in-texfields/18481/4 "2003-04-17T04:05:49Z")

</div>

```auto
myTextfield1.tabEnabled = true
myTextfield1.tabIndex = 1

myTextfield2.tabEnabled = true
myTextfield2.tabIndex = 2

myTextfield3.tabEnabled = true
myTextfield3.tabIndex = 3

myTextfield4.tabEnabled = true
myTextfield4.tabIndex = 4

```

this should do it… im not sure if you’ll need **myTextfield4.tabEnabled = true** … i think its set as true by default

\*\*\*\*\*\* edit

> \*\*TextField.tabEnabled

Availability

Flash Player 6.

Usage

TextField.tabEnabled

Description

Property; may be set on an instance of the MovieClip, Button, or TextField objects. It is undefined by default.

If the tabEnabled property is undefined or has a value of true, then the object is included in automatic tab ordering, and the object is included in custom tab ordering if the tabIndex property is also set to a value. If tabEnabled is false, then the object is not included in automatic tab ordering. For a movie clip, if tabEnabled is false, the movie clip’s children may still be included in automatic tab ordering, unless the tabChildren property is also set to false.

If tabEnabled is undefined or true, then the object is included in custom tab ordering if the tabIndex property is set. If tabEnabled is false, then the object is not included in custom tab ordering, even if the tabIndex property is set. If tabEnabled is set to false in a movie clip, the movie clip’s children can still be included in custom tab ordering.

\*\*

i think youre fine without them 😉

---

<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: [April 17, 2003, 4:28am UTC](https://forum.kirupa.com/t/enable-tabing-in-texfields/18481/5 "2003-04-17T04:28:22Z")

</div>

ok i understand what you mean, and no you can’t do that. well you could make a function that when the tab button is pressed your textfield adds 4 or 5 spaces to the dynamic textbox…

---

<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: [April 17, 2003, 4:39am UTC](https://forum.kirupa.com/t/enable-tabing-in-texfields/18481/6 "2003-04-17T04:39:46Z")

</div>

oops… ignore my post :sigh:  
i’ll leave it though, as it might be useful to other users 🙂

---

<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: [April 17, 2003, 4:42am UTC](https://forum.kirupa.com/t/enable-tabing-in-texfields/18481/7 "2003-04-17T04:42:38Z")

</div>

disable tabEnabled and use this code

```auto
onEnterFrame = function() {
	if(Key.isDown(Key.TAB)) {
		myVar +=" "
	}
}

```

kind of buggy though ☹  
well not really buggy, but it highlights all the text (which i believe can be somehow fixed… )

---

<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: [April 17, 2003, 5:54am UTC](https://forum.kirupa.com/t/enable-tabing-in-texfields/18481/8 "2003-04-17T05:54:57Z")

</div>

Thanks guys. Seems like a tab function is a good idea. Will give that a shot

---

<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: [April 17, 2003, 6:02am UTC](https://forum.kirupa.com/t/enable-tabing-in-texfields/18481/9 "2003-04-17T06:02:34Z")

</div>

good luck. let us know how ti works out.
