dcsimg
A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Component Text Change

  1. #1
    Senior Member
    Join Date
    Jun 2001
    Posts
    343

    Component Text Change

    I have some components in my movie and I want to change the font to Arial. I've gone through the component skins in the library but I can't find a place to change it. Any ideas?

  2. #2
    Senior Member
    Join Date
    Sep 2000
    Location
    Copenhagen, Denmark
    Posts
    228
    In Flash MX you could try something like, which will work on MM 'official' components:

    globalStyleFormat.embedFonts = true;
    globalStyleFormat.textFont = "Arial";
    globalStyleFormat.applyChanges();

    Assuming you have embedded the Arial font in your movie it should work.

    In MX2004 I would experiment with something like this which will work on the MX2004 components.
    _global.style.setStyle("fontFamily","Arial");
    Not too sure about caveats in this approach, though...

    I hope it makes sense :-)
    idi

  3. #3
    Senior Member
    Join Date
    Jun 2001
    Posts
    343
    Thanks...that worked. I was going about it all wrong.

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