Tengo una página de portada con un botón "continuar", código: gotoAndPlay(2)
Cuando voy al frame 2, tengo varios input text
input1, input2... y así. Los lleno.
En el frame 2 tengo un botón "volver", código: gotoAndPlay(1)
Si vuelvo a la portada y reingreso al frame 2, resulta que se borran todos los input text... cómo puedo hacer para que los valores intresados permanezcan y no se borren al moverme entre frames?
Intenté creando un textfield que "guarde" el valor del input text y lo carge al iniciar el frame:
ifFrameLoaded (2) {
if (_root.CopyInput1.text == "undefined") {
_root.Input1.text = 0;
} else {
_root.Input1.text = _root.CopyInput1.text;
}
}
_root.Input1.onChanged = function(changedField:TextField) {
_root.createTextField("CopyInput1", _root.getNextHighestDepth(), 0,0, 50, 20);
_root.CopyInput1.text = _root.Input1.text
... funciona bien, pero es muy engorroso (tengo como 20 input text)... talvez pensando en alguna función "for"... pero igual debe haber una forma más fácil, no?
Muchas gracias por compartir.
Saludos desde Uruguay!!!
Pancho