Professional Web Applications Themes

Background Color change on a SINGLE line of text. - Macromedia Director Lingo

Thanks, but that won't work for what I'm doing. I'm creating a user populatable multi-select field. If there are a large number of options both added and selected an insertion or overlay option could get real hary real quick....

  1. #1

    Default Re:Background Color change on a SINGLE line of text.

    Thanks, but that won't work for what I'm doing. I'm creating a user populatable multi-select field. If there are a large number of options both added and selected an insertion or overlay option could get real hary real quick.


    Délon webforumsuser@macromedia.com Guest

  2. #2

    Default Re: Background Color change on a SINGLE line of text.

    Dot syntax does not work consistently with text and field members, it's been
    discussed and doented quite a bit in this NG. So you have to use verbose
    syntax when dealing with these member types. Regarding your hilighting
    issue, I don't think there is an easy way to do it...I'm sure someone will
    correct me if I am wrong. What I would suggest is to use a vector shape
    that you can lay either over or under your text block (whichever works) that
    can change it's color and transparency to achieve the effect you desire. If
    you are not very lingo savvy then you could just use several vector shapes
    and turn them on or off depending on the line that needs hilighting (will
    still require some lingo). Or if you are pretty good with lingo then you
    can try placing the vector member on the fly.

    hth,
    Doug
    "Délon" <webforumsusermacromedia.com> wrote in message
    news:bfpstj$hjs$1forums.macromedia.com...
    > I am trying to change only the background color of only a single line in a
    block of text.
    > (though the entire line, not just the worded portion)
    > Ex.
    > | Line 1 |
    > | Line 2 |
    > | Line 3 |
    > | Line 4 |
    >
    > However I want to have control over the background color, which I havn't
    found with the
    > "hilite()"option...and that only hilites text, and ot the entire line
    anyway.
    >
    > While:
    > member("MyTextMember").bgcolor=rgb( 255, 0, 0 )
    > member("MyTextMember").backcolor=7
    > member("MyTextField").bgcolor=rgb( 0, 255, 255 )
    > member("MyTextField").backcolor=9
    >
    > ...all work for changing the background of the ENTIRE cast member...that's
    not what I'm after.
    >
    > However, while this works:
    member("MyTextMember").line[1].forecolor=8
    > the logical extention does not:
    member("MyTextMember").line[1].backcolor=8
    >
    > Can anyone give me a hand?
    >
    >

    Doug Golenski Guest

Similar Threads

  1. Can't change background color
    By Daniel_Todd@adobeforums.com in forum Adobe Photoshop Mac CS, CS2 & CS3
    Replies: 12
    Last Post: September 18th, 09:19 PM
  2. How to change the color of the LinkBar background.
    By Shelady in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: April 22nd, 09:49 PM
  3. dynamically change of the background color
    By olac in forum Macromedia Flash Sitedesign
    Replies: 4
    Last Post: February 28th, 02:41 PM
  4. change background color with script?
    By breed webforumsuser@macromedia.com in forum Macromedia Flash Sitedesign
    Replies: 4
    Last Post: September 24th, 05:00 PM
  5. Line drawing bleeding color into background
    By Becky Cleland in forum Adobe Photoshop 7, CS, CS2 & CS3
    Replies: 3
    Last Post: July 14th, 05:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139