A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: text bold & rotation

  1. #1
    Senior Member gordonart's Avatar
    Join Date
    Jun 2003
    Location
    Sweden
    Posts
    267

    text bold & rotation

    I am trying to make this imported text bold but it does not work:
    I also want to rotate the text but when I do the text could not be seen.

    Here the code I am working on:
    PHP Code:
    /////
    var my_fmt:TextFormat = new TextFormat();
    my_fmt.bold true;
    //////
    this.createTextField("my_txt"10101080100);
    my_txt.setNewTextFormat(new TextFormat("Arial",12,0xCC6600));
    my_txt.autoSize "left";
    my_txt.border false;
    my_txt.multiline true;
    my_txt.wordWrap true;
    my_txt._height 100;
    my_txt._rotation 0;
    my_txt.setTextFormat(my_fmt);

    var 
    lorem_lv:LoadVars = new LoadVars();
    lorem_lv.onData = function (src:String):Void {
        if (
    src != undefined) {
            
    my_txt.text src;
        } else {
            
    my_txt.text "Unable to load external file.";
        }
    }

    lorem_lv.load("skylt1.txt"); 
    Last edited by nunomira; 02-09-2010 at 11:38 AM. Reason: php tags added for code formating
    Mattias Gordon
    illustrator/ animator

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002
    Location
    portugal
    Posts
    7,003
    hi,

    In order to have Bold and rotate the font, you need to embed it, therefore it should be in the library.
    Here's an example.
    Attached Files Attached Files

  3. #3
    Senior Member gordonart's Avatar
    Join Date
    Jun 2003
    Location
    Sweden
    Posts
    267
    Thanks, now it works and I have learned this.
    Mattias Gordon
    illustrator/ animator

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