PDA

View Full Version : input text


MrMook
05-13-2003, 12:25 AM
I have an input text box.
My only problem is...i dont know how to input text.
Im sure its something to do with the variable, right?

Billy T
05-13-2003, 12:37 AM
just click it in and type...

RVK
05-13-2003, 12:44 AM
What exactly is it that you're trying to do with the input text box? We'll need a little more info in order to offer better advice.

thanks! :)

-R

MrMook
05-13-2003, 12:58 AM
well, if i understand the capabilities of input text, i can alter the content of the text box during the movie....say, by clicking on different buttons. If i click on a button for english, the content will be in english, and if i click on a spanish button, the text would be replaced with spanish text.
would i have to load this stuff from a separate text file? if so, i need to know how to do that too. I dont think i can just have the text in the scripting (even though they will be very short passages).

if i still sound vague, let me know.

Billy T
05-13-2003, 01:01 AM
I think you are actually after dynamic text

does user have to be able to 'input' their own info into the text field?

as for making it multilingual, check out the flash localization tute at macromedia.com (not an easy thing to do)

cheers

MrMook
05-13-2003, 01:20 AM
ok, maybe im looking for dynamic text.
im not trying to do the multi-lingual thing...maybe that was a bad example. basically im doing a step by step thing for class, so when i click on the button for step 1, i want the text box to say the stuff for step 1. when i click on the button for step 2, i want it to load up the step 2 text. the texts are only about 1 sentence each.
what im trying to avoid is 10 different static text boxes, which would become visible, or invisible depending on which button is pushed. If i can just change the content of one text box, the alignment would be perfect, and it would eliminate unneccecary items that make the movie run slow.

sorry, i have a tendency to be vague, but i hope im being more clear.

Billy T
05-13-2003, 01:27 AM
ok make a dynamic text box on the stage and give it an instance name of

whatever_txt

then for your buttons have

button1_btn.onRelease=function(){
whatever_txt.text="blah blah";
}

if you want to put it in an external text file then check out the tute in the tutorials section on loadvars

cheers