How to persist TextInput text values?
can provide brief explanation of how persist text values?
description:
stuff written textinput field not persist when moving
to frame, , again.
example:
frame 1: put textinput component on stage.
frame 1: put "forward" button on stage.
frame 9: put "back" button on stage.
frame 1 actionscript:
this.btnforward.onrelease = function() {
gotoandstop(9);
}
frame 9 actionscript:
this.btnback.onrelease = function() {
gotoandstop(1);
}
play it.
write in textinput.
click forward button. (this takes frame 9)
click button. (this takes frame 1)
>> textinput field blank.
hoping can help,
thanks,
john
description:
stuff written textinput field not persist when moving
to frame, , again.
example:
frame 1: put textinput component on stage.
frame 1: put "forward" button on stage.
frame 9: put "back" button on stage.
frame 1 actionscript:
this.btnforward.onrelease = function() {
gotoandstop(9);
}
frame 9 actionscript:
this.btnback.onrelease = function() {
gotoandstop(1);
}
play it.
write in textinput.
click forward button. (this takes frame 9)
click button. (this takes frame 1)
>> textinput field blank.
hoping can help,
thanks,
john
just store value of textfields content in variable when moving away, , retrive when movin frame set textfields "text" property stored value.
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment