9 Replies Latest reply on May 30, 2006 9:29 AM by Newsgroup_User

    Text Fields.

    Level 7

      Im triying to use embed fonts that i inluded on the library* . Any one knows
      what to write on the code to make it work?

      I have this.

      myTextFormat = new TextFormat();
      myTextFormat.bold = true;
      myTextFormat.font = "Font_RusellSquare"; //It show on my font explorer as :
      Font_RusellSquare* // I used both and it doesnt work.
      myTextFormat.embedFonts = true;

      texto_intro_txt.text=Enter.t_text;


      texto_intro_txt.setTextFormat(myTextFormat);

      Anyone knows?

      Thanks!




        • 1. Re: Text Fields.
          Level 7
          Have you tagged the fonts in your library for export for action script and
          given them a linkage ID?

          --
          -------------------------------
          Remove '_spamkiller_' to mail
          -------------------------------


          • 2. Re: Text Fields.
            Level 7
            Humm...

            I just did now, but it doesnt work.

            I exported for it actionscript.and i set the ID.

            And now Im using it like this??

            myTextFormat.font = Century_Gothic;

            or

            myTextFormat.font = "Century_Gothic";


            but still doesnt work. what do i do?

            Thanks



            Do iselect export for actionscript and then
            "Peter Blumenthal" <mmgroups@_spamkiller_PhageInteractive.com> wrote in
            message news:e5he41$7mt$1@forums.macromedia.com...
            > Have you tagged the fonts in your library for export for action script and
            > given them a linkage ID?
            >
            > --
            > -------------------------------
            > Remove '_spamkiller_' to mail
            > -------------------------------
            >
            >


            • 3. Re: Text Fields.
              Level 7
              The one with the quotes:

              > myTextFormat.font = "Century_Gothic";

              Is correct. So, Century_Gothic is the linkage ID you gave the font right?
              Can you perhaps zip and upload the FLA, and provide a link? I'll download
              and take a look. Specify also which version of Flash you are authoring in...

              --
              -------------------------------
              Remove '_spamkiller_' to mail
              -------------------------------



              • 4. Re: Text Fields.
                Level 7
                I would have to upload de xml and a lot of stuff. So im gonna try more just
                in case and then if i cant i can send that to you.

                Cheers!


                "Peter Blumenthal" <mmgroups@_spamkiller_PhageInteractive.com> wrote in
                message news:e5hhp7$c6p$1@forums.macromedia.com...
                > The one with the quotes:
                >
                >> myTextFormat.font = "Century_Gothic";
                >
                > Is correct. So, Century_Gothic is the linkage ID you gave the font right?
                > Can you perhaps zip and upload the FLA, and provide a link? I'll download
                > and take a look. Specify also which version of Flash you are authoring
                > in...
                >
                > --
                > -------------------------------
                > Remove '_spamkiller_' to mail
                > -------------------------------
                >
                >
                >


                • 5. Re: Text Fields.
                  Level 7
                  Sure. Or build a 'bare bones' demo where you simply create a text field,
                  assign an embedded font and set some text. This is a great way to get to the
                  bottom of your problem anyway, as it drastically reduces the number of
                  things it *could* be...

                  --
                  -------------------------------
                  Remove '_spamkiller_' to mail
                  -------------------------------


                  • 6. Re: Text Fields.
                    Level 7
                    I cant make it work...



                    do you have any fla using that? i could see you code and fix my thing...

                    cheers.

                    "Peter Blumenthal" <mmgroups@_spamkiller_PhageInteractive.com> wrote in
                    message news:e5hjf1$ebm$1@forums.macromedia.com...
                    > Sure. Or build a 'bare bones' demo where you simply create a text field,
                    > assign an embedded font and set some text. This is a great way to get to
                    > the
                    > bottom of your problem anyway, as it drastically reduces the number of
                    > things it *could* be...
                    >
                    > --
                    > -------------------------------
                    > Remove '_spamkiller_' to mail
                    > -------------------------------
                    >
                    >


                    • 7. Re: Text Fields.
                      Level 7
                      Sure, here you go:

                      http://www.phageinteractive.com/Temp/simpleText.zip

                      Let me know how it goes...

                      --
                      -------------------------------
                      Remove '_spamkiller_' to mail
                      -------------------------------


                      • 8. Re: Text Fields.
                        Level 7
                        Thanks man!

                        It works i wasnt using create text box.

                        Now i went further and now i can use any embed font.

                        I have to create a text box somewhere of the screen and embed the font and
                        use the font i did import before.

                        So everything works now.

                        Cheers


                        "Peter Blumenthal" <mmgroups@_spamkiller_PhageInteractive.com> wrote in
                        message news:e5hok6$l09$1@forums.macromedia.com...
                        > Sure, here you go:
                        >
                        > http://www.phageinteractive.com/Temp/simpleText.zip
                        >
                        > Let me know how it goes...
                        >
                        > --
                        > -------------------------------
                        > Remove '_spamkiller_' to mail
                        > -------------------------------
                        >
                        >


                        • 9. Re: Text Fields.
                          Level 7
                          Cool - you're welcome

                          --
                          -------------------------------
                          Remove '_spamkiller_' to mail
                          -------------------------------