Loading:


    TextField textHeight [AS 2]

    Klasa: TextField

    Kompatybilność: ActionScript 1.0, Flash 6+

     

    Określa wysokość pola tekstowego, podaną w pikselach.



    Napisz Artyku³

    Listing

    this.createTextField("moj_txt", 99, 10, 10, 100, 300);
    moj_txt.text = "Sample text";
    trace("textHeight: "+moj_txt.textHeight+", textWidth: "+moj_txt.textWidth);
    trace("_height: "+moj_txt._height+", _width: "+moj_txt._width+"\n");
    moj_txt.autoSize = true;
    trace("after moj_txt.autoSize = true;");
    trace("_height: "+moj_txt._height+", _width: "+moj_txt._width);

    //zwróci:

    textHeight: 15, textWidth: 56
    _height: 300, _width: 100

    po moj_txt.autoSize = true;
    _height: 19, _width: 60




    Dodano przez: divix
    Ranga: Administrator serwisu Punktów: 0
    Komentarze użytkowników
      • Tre¶æ komentarza
        Kod do komentarza (opcjonalnie)
        PHP JavaScript MySQL Smarty SQL HTML CSS ActionScript
        Autor
        Token
        token

         

         








    funkcje.net
    Wszelkie prawa zastrzeżone©. | Funkcje.net 2008-2025 v.1.5 | design: diviXdesign & rainbowcolors