-
sending input text to dynamic text
Hi everybody,
this question should be very easy to be fix.
I have a page, that contains movieclip with a input textfield in it. And a other page with a movieclip with a dynamic textfield in it.
What i want is the text i type in the input, i want it to be shown, in the other page, in my dynamic textfield.
This works if they are on the same frame:
btn.onRelease = function()
{
DynamicField.text = InputField.text;
succes.text = "succes";
}
now i tried this:
btn.onRelease = function()
{
_root.show.DynamicField.text = InputField.text;
succes.text = "succes";
}
but it won't work!
does anyone have a advice?!
-
plus the thing i see now is, when i come back to frame,
my text is gone.
I want this to stay the same, until i change this again..
-
On the frame with the btn and input field.
Code:
if (_global.savedField == undefined) {
init();
}
function init() {
_global.savedField = "";
}
btn.onRelease = function() {
_global.savedField = InputField.text;
trace(_global.savedField);
};
On the frame with the dynamic text field.
Code:
DynamicField.text = _global.savedField;
-
Dude... i love you...!!!
thanks man!!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|