# The tab button

**URL:** https://forum.kirupa.com/t/the-tab-button/34253
**Category:** Uncategorized
**Created:** [October 30, 2003, 11:51am UTC](https://forum.kirupa.com/t/the-tab-button/34253 "2003-10-30T11:51:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Shrek](https://avatars.discourse-cdn.com/v4/letter/s/b487fb/32.png) [@Shrek](https://forum.kirupa.com/u/Shrek)
#### Post date: [October 30, 2003, 11:51am UTC](https://forum.kirupa.com/t/the-tab-button/34253/1 "2003-10-30T11:51:00Z")

</div>

when i press tab, it cycles through my mcs. how can i make it go to the next text box down in a mc?

also, how do i make variables so that in another mc they will be picked up? (ie making them global)?

---

<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: [October 30, 2003, 5:05pm UTC](https://forum.kirupa.com/t/the-tab-button/34253/2 "2003-10-30T17:05:59Z")

</div>

You can set the tab order of objects in a movie with the property

```auto
myInstance.tabIndex=value;//where value is a non negative integer 

```

It can be applied on movie clips, buttons or textfields. The objects are ordered following their tabIndex property, in ascending order.

---

<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: [October 31, 2003, 9:17am UTC](https://forum.kirupa.com/t/the-tab-button/34253/3 "2003-10-31T09:17:13Z")

</div>

hmm, not working on input text fields… this is my code:

name.tabIndex = 1;  
ad1.tabIndex = 2;  
ad2.tabIndex = 3;  
ad3.tabIndex = 4;  
post.tabIndex = 5;  
phone.tabIndex = 6;  
fib\_quant.tabIndex = 7;  
kar\_quant.tabIndex = 8;  
can\_quant.tabIndex = 9;  
jar\_quant.tabIndex = 10;  
bag\_quant.tabIndex = 11;

all the instance names are labelled correctly…

---

<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 17, 2004, 9:26am UTC](https://forum.kirupa.com/t/the-tab-button/34253/4 "2004-07-17T09:26:54Z")

</div>

> [@Shrek](#):
>
> hmm, not working on input text fields… this i
> 
> all the instance names are labelled correctly…

Hmm i have the same problem Shrek. Are your within an mc placed on \_root or are they just on \_root? I belive it is something to do with pathing…not sure but

Can someone help?
