Link to home
Start Free TrialLog in
Avatar of Brian Lin
Brian LinFlag for United States of America

asked on

input text question

Hi, Experts
If I use on screen buttons ( which I created ) to input some text in an input textfield ( var name Name ), I wonder how to keep the same text show on this text field after change timeframe. For example, I have two layers, one is all the buttons and textfield. Top layer is scripting. There are 10 time frames. I input name on time frame 1 and click on a button ( confirmation button instance name enter_btn ) and jump to time frame 5 with a pop up window ( instance name image7 ) confirm the input, then click an ok button on this pop window which lead to time frame 10. How to keep the input text until to the time frame 10 ? because it is gone after I click ok on the pop up window. Also, on this pop up window, I want to show the input text on it , how to write the script ( I guess I should put a dynamic text field on this pop up window to show the text I input at time frame 1) . thanks

-------Input text buttons script -------

Name = "";

function addText(character){   <-- add text to text field ( var is Name )
      Name = Name+character;
}
a.onPress = function(){  <--- button A
   addText("A");
}
b.onPress = function(){  <--- button B
   addText("B");
}
...........until Z
ASKER CERTIFIED SOLUTION
Avatar of negatyve
negatyve

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Brian Lin

ASKER

sorry, need to re work on the question....
Avatar of negatyve
negatyve

Well, I didn't solved your question, untill then those points are yours.. :)
(If you are not going on, you should ask for points refund)
ok...i think I will only need to ask.....I type text into input text field at frame 1. Click on a confirm button and go to frame 2. at frame 2, there is a movie clip instance name pop_up_win. I wonder how to show the same text I type at frame 1 in this movie clip at frame 2 ? I am using Flash MX 2004
If "Name" is the variable associated to the input textfield (not the instance name), then it's not lost when moving to frame 2, it's still there. When you are on frame 2, use a script like this to move your variable to the textfield inside the movieclip

// actions snippet for frame 2
movieclip_instance_name.innerTextFieldvariable = Name;