4 Replies Latest reply on Nov 26, 2007 8:00 AM by Newsgroup_User

    Change font syles using lingo

    Mike Crisp Level 1
      Hi

      I am using the following with success

      on startMovie
      member("display").word[1..3].color = rgb(0,51,204) -- to turn the text blue
      end

      Can someone let me know how to make the same words BOLD using similar lingo.

      Thanks
        • 1. Re: Change font syles using lingo
          Level 7
          This is a multi-part message in MIME format.

          ------=_NextPart_000_009B_01C82FF3.D68778A0
          Content-Type: text/plain;
          charset="iso-8859-1"
          Content-Transfer-Encoding: quoted-printable

          member("display").word[1..3].fontStyle =3D [#bold]

          If you're using a rich text member. I know that the same won't work for =
          field members but that you need to express the style as a string. The =
          HELP is incorrect here. It states:

          This statement sets the fontStyle member property for the field cast =
          member Poem to bold italic:

          member("Poem").fontStyle =3D [#bold, #italic]But if you try that it =
          won't work. Even though I know you need to express the style for a =
          field as "bold"or "italic" that doesn't work with fontStyle either. The =
          property fontStyle is not recognized for a field member. I don't recall =
          the solution to this, I'm sorry but I hope you're using text members =
          rather than field members so my answer will apply.
          "Mike Crisp" <webforumsuser@macromedia.com> wrote in message =
          news:fie953$sf4$1@forums.macromedia.com...
          > Hi
          >=20
          > I am using the following with success
          >=20
          > on startMovie
          > member("display").word[1..3].color =3D rgb(0,51,204) -- to turn the =
          text blue
          > end
          >=20
          > Can someone let me know how to make the same words BOLD using =
          similar=20
          > lingo.
          >=20
          > Thanks
          >
          ------=_NextPart_000_009B_01C82FF3.D68778A0
          Content-Type: text/html;
          charset="iso-8859-1"
          Content-Transfer-Encoding: quoted-printable

          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
          <HTML><HEAD>
          <META http-equiv=3DContent-Type content=3D"text/html; =
          charset=3Diso-8859-1">
          <META content=3D"MSHTML 6.00.2900.3199" name=3DGENERATOR>
          <STYLE></STYLE>
          </HEAD>
          <BODY>
          <DIV><FONT face=3DArial size=3D2>member("display").word[1..3].fontStyle =
          =3D=20
          [#bold]</FONT></DIV>
          <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
          <DIV><FONT face=3DArial size=3D2>If you're using a rich text =
          member.  I know=20
          that the same won't work for field members but that you need to express =
          the=20
          style as a string.  The HELP is incorrect here.  It=20
          states:</FONT></DIV>
          <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
          <DIV>
          <P><FONT face=3DArial size=3D2>This statement sets the fontStyle member =
          property for=20
          the field cast member Poem to bold italic:</FONT></P><PRE><FONT =
          face=3DArial size=3D2>member("Poem").fontStyle =3D [#bold, =
          #italic]</FONT></PRE><PRE><FONT face=3DArial size=3D2>But if you try =
          that it won't work. Even though I know you need to express the style =
          for a field as "bold"</FONT></PRE><PRE><FONT face=3DArial size=3D2>or =
          "italic" that doesn't work with fontStyle either. The property =
          fontStyle is not recognized for a field member. I =
          </FONT></PRE><PRE><FONT face=3DArial size=3D2>don't recall the solution =
          to this, I'm sorry but I hope you're using text members rather than =
          field members so my </FONT></PRE><PRE><FONT face=3DArial size=3D2>answer =
          will apply.</FONT></PRE><PRE><FONT face=3DArial =
          size=3D2></FONT> </PRE></DIV>
          <DIV><FONT face=3DArial size=3D2></FONT> </DIV>
          <DIV><FONT face=3DArial size=3D2>"Mike Crisp" &lt;</FONT><A=20
          href=3D"mailto:webforumsuser@macromedia.com"><FONT face=3DArial=20
          size=3D2>webforumsuser@macromedia.com</FONT></A><FONT face=3DArial =
          size=3D2>&gt; wrote=20
          in message </FONT><A =
          href=3D"news:fie953$sf4$1@forums.macromedia.com"><FONT=20
          face=3DArial =
          size=3D2>news:fie953$sf4$1@forums.macromedia.com</FONT></A><FONT=20
          face=3DArial size=3D2>...</FONT></DIV><FONT face=3DArial size=3D2>&gt; =
          Hi<BR>&gt;=20
          <BR>&gt; I am using the following with success<BR>&gt; =
          <BR>&gt; on=20
          startMovie<BR>&gt;   member("display").word[1..3].color =3D=20
          rgb(0,51,204) -- to turn the text blue<BR>&gt; end<BR>&gt;=20
          <BR>&gt; Can someone let me know how to make the same words =
          BOLD=20
          using similar <BR>&gt; lingo.<BR>&gt;=20
          <BR>&gt; Thanks<BR>&gt;</FONT></BODY></HTML>

          ------=_NextPart_000_009B_01C82FF3.D68778A0--

          • 2. Re: Change font syles using lingo
            Level 7
            I just remembered. You must use the old verbose syntax for field membes.
            (one of those, "I just don't get why MM (Adobe) would leave something like
            this and not update it)

            Field member:
            the fontstyle of word 1 to 3 of member ("display") = "bold,italic"

            Text member:
            member("display").word[1..3].fontStyle = [#bold, #italic]

            I gave you an example where you might want to set multiple styles in one
            line. To reset you would use #plain or "plain" respectively.

            Craig

            "Mike Crisp" <webforumsuser@macromedia.com> wrote in message
            news:fie953$sf4$1@forums.macromedia.com...
            > Hi
            >
            > I am using the following with success
            >
            > on startMovie
            > member("display").word[1..3].color = rgb(0,51,204) -- to turn the text
            > blue
            > end
            >
            > Can someone let me know how to make the same words BOLD using
            > similar
            > lingo.
            >
            > Thanks
            >


            • 3. Re: Change font syles using lingo
              Chunick Level 3
              Here's the list of undocumented fontStyles for text members (for completeness):
              #Boxed
              #DoubleUnderline
              #WordUnderline
              #DottedUnderline
              #HiddenText
              #StrikeOut
              #SuperScript
              #SubScript
              #AllCaps
              #AllLower
              #SmallCaps
              #Overline

              on the mac you also have available: shadow, outline, extended and condensed (not sure if that's for text and/or field membres)
              • 4. Re: Change font syles using lingo
                Level 7
                Cool. Handy.


                "Chunick" <webforumsuser@macromedia.com> wrote in message
                news:fiejda$9od$1@forums.macromedia.com...
                > Here's the list of undocumented fontStyles for text members (for
                > completeness):
                > #Boxed
                > #DoubleUnderline
                > #WordUnderline
                > #DottedUnderline
                > #HiddenText
                > #StrikeOut
                > #SuperScript
                > #SubScript
                > #AllCaps
                > #AllLower
                > #SmallCaps
                > #Overline
                >
                > on the mac you also have available: shadow, outline, extended and
                > condensed
                > (not sure if that's for text and/or field membres)
                >