• home
  • forum
  • my
  • kt
  • download
  • Creating smooth, alpha capable, dynamic texts

    Author: 2007-06-12 14:16:15 From:

    1. Open a new Flash Document.

    2. Open the library Panel, and create a new Font...(click on the button on the right upper corner on the library Panel).

    3. Choose the font that you like to use, and name it whatever you like.

    4. Now, choose the font symbol, right click, and choose linkage.

    5. Enter an identifier for the font (You will need it later...) and choose "Export for ActionScript".

    6. At the first frame "Layer 1", press F9 for ActionScript panel, and insert this code:

    _root.createTextField("my_txt", 0, 50, 50, 450, 100);
    my_txt.text = "Smooth alpha capable dynamic text";
    my_txt._quality("BEST")
    my_txt.multiline = true;
    my_txt.selectable = false; // as your wish...
    my_txt.wordWrap = true;
    my_txt.embedFonts=true;
    // We need a TextFormat object to set format to our textfield
    my_fmt = new TextFormat();
    //Now we choose the font, using the identifier name of the font symbol
    my_fmt.font = "myFont";
    my_fmt.size = 28;
    my_fmt.color = "0x999999";
    //now we apply the format...
    my_txt.setTextFormat(my_fmt);
    my_txt._alpha = "100"; // whatever you want...
    

    Now... just free your mind! :D

    » Level Basic

    Added: : 2004-05-10
    Rating: 5.04 Votes: 71
    Hits: 1288
    » Author
    Just another Flasher...from Argentina
    » Download
    Download the files used in this tutorial.
    Download (0 kb)

    discuss this topic to forum

    relation tutorial

    No relevant information

    Category

      3D (20)
      Math Physics (14)
      3rd Party (5)
      Navigation (60)
      Actionscripting (26)
      Optimization (16)
      Animation (32)
      Projector (9)
      Audio (46)
      Special Effects (112)
      Backend (25)
      Text Effects (65)
      Drawing (18)
      Tips and Techniques (41)
      Dynamic Content (25)
      Tricks (6)
      Games (66)
      Utilities (19)
      Getting Started (71)
      Video (10)
      Interactivity (21)
      Web Design (22)

    New

    Hot