Copy link to clipboard
Copied
hi i want to have two text inputs and a submit button, and when i press the submit button after entering a number or text or both in the text input field that the other text input field replicates the text box and that the original resets to empty and the data entered is representative in the text field that replicated the text field used when entering information before pressing the submit button.
button is called by instance button, the text input field instance is called enter, and the resultant text field instance is called result1,
secondly i would like the text input field instance called result 1 to be duplicated for every time a number is or character is selected and submitted, and a new text input box to be put underneath text input instance result 1 duplicate called text input instance result 1a, perfectly and to change the information represented in text input instance called result1 but not in instance called result 1a, and those that are perfectly aligned underneath it called instance name : result 1b, result 1c, result 1 d, result 1e, and to follow the pattern nameing them, perhaps not a,b,c,d,e but rather 1,2,3,4,5... and so on.
please can someone help me with a code in AS 2.0, im using adobe 5.5
1.
button.onRelease=function(){
result1.text=enter.text;
enter.text="";
}
2. i don't understand what all you're trying to do, but you can use the movieclip method createTextField() to create a new textfield using as2.
Copy link to clipboard
Copied
what's the link?
Copy link to clipboard
Copied
kglad ,lol
Copy link to clipboard
Copied
i doubt anyone else will be reading this thread but just in case, for those that can read critically here's the relevant part from that adobe page link:
Disclosure: I received these products from Adobe:
a full cc subscription and
up to $100/year in amazon.com gift cards
for beta testing of flash pro (now animate cc) and helping moderate the adobe.com forums which make the adobe work about as profitable as a book i wrote:
Flash Game Development: In a Social, Mobile and 3D World (http://www.amazon.com/Flash-Game-Development-Social-Mobile/dp/1435460200/ref=sr_1_1?s=books&ie=UTF8&...)
and works out to about $0.10/hour. but i do feel good about answering questions on the forums because reading forum questions and answers is how i gained expertise.
Copy link to clipboard
Copied
hi kglad, an you help me with something please.
i took the code for textbox duplications, eg, a.text = b.text; b.text =b.text; "b " being where i enter the text;
in the same movie clip it works well, i tried seperating them into different movie clips but didnt work.
is it possible to have them in different movie clips ?
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more