Loading:


    TextFormat align [AS 2]

    Klasa: TextFormat

    Kompatybilność: ActionScript 1.0, Flash 6+

     

    Ciąg znaków, określający wyrównanie paragrafu.

     

    Możesz nadać tą właściwość na statyczne oraz dynamiczne pola tekstowe. Dostępne wartości to:

     

    • "left"--Paragraf jest wyrównany do lewej strony.
    • "center"--Paragraf jest wyrównany do środka
    • "right"--Paragraf jest wyrównany do prawej strony.
    • "justify"--Paragraf jest wyjustowany. (Wartość dodana w Flash Player 8.)

     

    Domyślna wartość to NULL, która określa, że właściwość nie jest zdefiniowana.



    Napisz Artyku³

    Listing

    var format:TextFormat = new TextFormat();
    format.align = "justify";

    var txtField:TextField = this.createTextField("txtField", this.getNextHighestDepth(), 100, 100, 300, 100);
    txtField.multiline = true;
    txtField.wordWrap = true;
    txtField.border = true;
    txtField.text = "When this text is justified, it will be "
        + "spread out to more cleanly fill the horizontal "
        + "space for each line. This can be considered an "
        + "improvement over regular left-aligned text that "
        + "will simply wrap and do no more.";
    txtField.setTextFormat(format);
     




    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