A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Duplicate Text Field?

  1. #1
    Member
    Join Date
    May 2003
    Posts
    38

    Duplicate Text Field?

    What is the text field equivalent of MovieClip.duplicateMovieClip?

    Is there even one? I can't find it.

  2. #2
    flashdevil
    Join Date
    Jun 2001
    Location
    The Netherlands
    Posts
    665
    no there isnt, but you can do it via this way:

    Example
    The following example creates a text field with a width of 300, a height of 100, an x coordinate of 100, a y coordinate of 100, no border, red, and underlined text.


    _root.createTextField("mytext",1,100,100,300,100);
    mytext.multiline = true;
    mytext.wordWrap = true;
    mytext.border = false;

    myformat = new TextFormat();
    myformat.color = 0xff0000;
    myformat.bullet = false;
    myformat.underline = true;

    mytext.text = var-name-of-other-textfield
    mytext.setTextFormat(myformat);
    fifkikker.com
    fresh flash developer, with style.

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