2 Replies Latest reply on Sep 23, 2010 5:37 PM by Ned Murphy

    How can I make part of the text bold

    TheBrody

           TheProfileRoot.EngineeringText.text = "Level " + PlayerEngineerLevel + " Engineer - level up in " + PlayerReqEngineer + " xp";

      I want the "Level " + PlayerEngineerLevel to be bold. And the rest to be plain. How can I do this?

        • 1. Re: How can I make part of the text bold
          markerline Level 4

          I can't troubleshoot AS2.0 right now as my computer is undergoing a recovery, but from your post I can see a solution.  Assign variables to several text fields, some of them with the attributes of having bold text assigned in the Flash authoring platform, and some of them having default values.  I am sure there are attributes such as boldness that can be set using AS2.0 but again I can't troubleshoot and my reference material is not with me right now.  (Most of my reference material is for AS3.0 which I am in the process of learning)

          • 2. Re: How can I make part of the text bold
            Ned Murphy Adobe Community Professional & MVP

            You can try using html bold tags and assign it to the htmlTExt property of the textfield instread of the text property (with html enabled for the textfield)