How to creative text field using dynamic text
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How to creative text field using dynamic text

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    15

    How to creative text field using dynamic text

    Hi,

    I want to create a text field but not trough the "components" since i don't know how to change the Css of the default design.
    Can i make it with Dynamic text?

    Thanks in advance

  2. #2
    Designer, Programmer, Musician angelhdz's Avatar
    Join Date
    Mar 2010
    Posts
    951
    this.createTextField("t1", 0, 200, 200, 400, 50);

    t1.multiline = true; //true/false
    t1.wordWrap = true; //true/false
    t1.type = "dynamyc"; //"dynamic", "input"
    t1.border = true; //true/false
    t1.embedFonts = false; //embed the font, true/false
    t1.html = false; //treat the text box as html text, true/false
    t1.selectable = true; //can be selected true/false
    t1.mouseWheelEnabled = true; //can use the mouse wheel to scroll the text, true/false
    t1.maxChars = null; //if type is input, password, then how many characters can be typed in, number from 0 and up
    var format:TextFormat = new TextFormat();
    format.color = 0x000000; //hexagesimal color number
    t1.setTextFormat(format); //apply the format to the textbox

    t1.text = "Hello, this is my text."; //add text

    createTextField's parameters are:

    createTextField(instance name(with quotes, String), depth(number), _x(number), _y(number), _width(number), _height(number));
    Last edited by angelhdz; 02-28-2014 at 01:19 AM. Reason: Misspelling
    Hi Object, Listen, i wish to return you something, but only if what you are saying is true, else, forget it, ROLL_OVER the floor, i will check for someone else at the stage, while eating a no.visible cookie.

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

Poll by Flashkit.com