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
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:
//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!
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:
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?