dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: sending input text to dynamic text

  1. #1
    Junior Member
    Join Date
    Nov 2010
    Posts
    6

    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?!

  2. #2
    Junior Member
    Join Date
    Nov 2010
    Posts
    6
    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..

  3. #3
    :
    Join Date
    Dec 2002
    Posts
    3,518
    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;

  4. #4
    Junior Member
    Join Date
    Nov 2010
    Posts
    6
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center