Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 260847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:22:56+00:00 2026-05-11T22:22:56+00:00

How can I make my strings and text attributes bold in my actionscript code?

  • 0

How can I make my strings and text attributes bold in my actionscript code?

I’m working with the code behind pattern so i have an mxml component with a text attribute. I then have my actionscript component where I concatenate three text attribute and set them as the text property on the mxml text component.

I want to be able be flexible with the styles of each text field I concatenate. I want the first text bold and the last bold however. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T22:22:56+00:00Added an answer on May 11, 2026 at 10:22 pm

    If you want to use different font weights for a text, you have no other choice than creating 2 text components (Label, Text, …).

    If you use external fonts, be sure to embed both normal and bold fonts :

    @font-face
    {
        src:                    url("calibri.ttf");
        fontFamily:             calibri;
        advanceAntiAliasing:                    true;
        fontWeight:             normal;
    }
    
    @font-face
    {
        src:            url("calibrib.ttf");
        fontFamily:     calibri;
        fontWeight:     bold;
    }
    

    and set some styles in your css like :

    .calibri16
    {
        font-size: 16;
        font-weight:normal;
        font-family:calibri;
        color: #666666;
    }
    
    .calibri16b
    {
        font-size: 16;
        font-weight:bold;
        font-family:calibri;
        color: #666666;
    }
    

    You can then set the styleName property of your text components :

    <HBox>
    <Label id="myLabel" styleName="calibri16b" text="This is bold" />
    <Label id="myLabel2" styleName="calibri16" text="and regular" />
    </HBox>
    

    In Action Script :

    myLabel.styleName = "calibri16b";
    myLabel2.styleName = "calibri16";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 535k
  • Answers 535k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Well yeah. onload is only called when a document is… May 17, 2026 at 1:13 am
  • Editorial Team
    Editorial Team added an answer I guess the interesting part of your question is how… May 17, 2026 at 1:13 am
  • Editorial Team
    Editorial Team added an answer Use Apache's Rewrite module. For example, in a virtual-hosts config,… May 17, 2026 at 1:13 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have the following CSS style code for my table: table { table-layout: fixed;
I'm building a conforming and validating XML parser in C++ and trying to make
I want a list of different (derived) object types working with the Default Modelbinder
I'm using the DataAnnotations attributes along with ASP.Net MVC 2 to provide model validation
I need to make a WHERE clause for my LinqDataSource which depends on the
I'm using Restlet to make a RESTful platform. I haven't used it before, but
I am writing a .NET application that can communicate with HID devices. I want
Currently i have some interfaces (stripped down for here): public interface IJobGroup { string
I'm trying to make a simple image browser for TinyMCE which I am using
I have a Service model with title:string description:string date:datetime. I would like to implement

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.