# Imput text

**URL:** <https://forum.kirupa.com/t/imput-text/186222>\
**Category:** Uncategorized\
**Created:** [April 19, 2006, 9:18pm UTC](https://forum.kirupa.com/t/imput-text/186222 "2006-04-19T21:18:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anya](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@anya](https://forum.kirupa.com/u/anya)\
**Post date:** [April 19, 2006, 9:18pm UTC](https://forum.kirupa.com/t/imput-text/186222/1 "2006-04-19T21:18:07Z")

</div>

I am creating a TV remote in Flash MX 2004. I would like to be able to select the buttons, 0-9, and have it function like a normal remote. For instance, to dial 19…when 1 is selected, I would like a number 1 to appear, and then select number 9, and the display reads 19. Then the button loads the external swf file. Any ideas?

Or, it would work great if I used the number keys on the keyboard to select the buttons, and type in the appropriate number, and then displayed the channel, and once displayed, loaded the file.  
Thanks

---

<div class="post-metadata">

**Author:** ![cobrasniper555](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@cobrasniper555](https://forum.kirupa.com/u/cobrasniper555)\
**Post date:** [April 20, 2006, 2:02am UTC](https://forum.kirupa.com/t/imput-text/186222/2 "2006-04-20T02:02:22Z")

</div>

Well…say you have for example, the “1” button, with the instance name of “1”. And you want it so that when they press it, the button will load add 1 to the text file. Then you put this in:

```auto
//You have to have the text say something already, such as a space, or a 0, or the current channel you are on, otherwise this will show "undefined" and your number
on(release){//MovieClips can carry out button actions too, that's why I never use buttons, but just regular MovieClips
_root.txt += this._name;
};

```

This is for the text problem(I haven’t tested it, so tell me if you have problems), and you probably know how to do the loadMovie or loadMovieNum part. Hope I helped!

---

<div class="post-metadata">

**Author:** ![cobrasniper555](https://avatars.discourse-cdn.com/v4/letter/c/838e76/32.png) [@cobrasniper555](https://forum.kirupa.com/u/cobrasniper555)\
**Post date:** [April 20, 2006, 2:15am UTC](https://forum.kirupa.com/t/imput-text/186222/3 "2006-04-20T02:15:11Z")

</div>

Oh, and say if you don’t want them to keep on putting in numbers without the text stopping then(For example:If the player hits 5 non stop, he’ll end up with like 5,555,555 or something like that, and that can’t be a channel, and I am saying to limit that, so like if you only want 2 digit channels, then you put this), put this in:

```auto

on(release){
if (_root.txt+this._name<100) {
        _root.txt += this._name;
    } else {
        _root.txt = "";
        _root.txt += this._name;
    }
}

```

Hope I helped!

---

<div class="post-metadata">

**Author:** ![anya](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@anya](https://forum.kirupa.com/u/anya)\
**Post date:** [April 21, 2006, 2:03pm UTC](https://forum.kirupa.com/t/imput-text/186222/4 "2006-04-21T14:03:10Z")

</div>

Alright. I am having problems. Do I need an imput text box? Is that where I put this action script, or do I put it on each movie clip? When I export it out with it on the movie clip “0” for instance, and then type 0, nothing happens. Maybe I should just let them type it in an imput text box and forget about the button part. I haven’t used an imput text box before either. So, how would I do this if this would be a better option?
