Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

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
0
Brian Lin
Asked:
Brian Lin
  • 3
  • 2
1 Solution
 
negatyveCommented:
1. area you using flash mx or flash mx 2004?
2. I'm not sure I clearly understand your question, especially in relation with your script..
0
 
Brian LinDesignerAuthor Commented:
sorry, need to re work on the question....
0
 
negatyveCommented:
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)
0
 
Brian LinDesignerAuthor Commented:
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
0
 
negatyveCommented:
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;
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now