changing text foreColor through Lingo

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default changing text foreColor through Lingo

    Ideally using a "on mouseOver me" command.

    This is what I've got so far with no results:

    on mouseOver me
    sprite(5).forecolor = #FFFFFF
    end

    What am I missing? Thanks
    -jasonhunter-


    Jason Hunter Guest

  2. Similar Questions and Discussions

    1. Changing text without changing frames.
      I have a small flash movie that is basically a color chooser. Rather than changing the color of an item by putting the color in a frame I change...
    2. Lingo checking cuepoints, changing members
      If I'm reading this correctly, you want to have a sprite display a member based on where the play head is in a digital video file. If that's what...
    3. changing a text members text content with lingo
      Is there a way of setting the content of a text member through lingo, specifying where there should be Carriage Return. I have a director movie...
    4. prepare new forecolor
      Hey there, I am attempting to setup a small animation as part of a much larger interactive, but I have run into a problem involving assigning...
    5. Changing the Font of a text char w/ lingo
      change Wingding to Wingdings missing s is causing problems otherwise your just fine ;) hope this helps gabriel
  3. #2

    Default Re: changing text foreColor through Lingo

    Hi Jason,

    If this is a text member's sprite then:

    on mouseEnter me
    sprite(5).member.foreColor = #FFFFFF
    end

    if this is a field member's sprite then:

    on mouseEnter me
    the foreColor of the member of sprite 5 = #FFFFFF
    end

    FIrst, there is no built in mouseOver function. So if you are in fact
    trying to use a function called mouseOver, you'll need to define it.

    Each sprite carries a foreColor and a backColor property. These
    properties hold values based on the current color depth of the frame in
    use. Text and field members also use foreColor and backColor
    properties. These member properties are used to set the color for the
    text and the background of that member. While each charactor in a field
    or text member may have a unique foreColor, the whole member can have
    only one backColor.

    --
    Rob
    _______
    Rob Dillon
    Team Macromedia
    [url]http://www.ddg-designs.com[/url]
    412-243-9119

    [url]http://www.macromedia.com/software/trial/[/url]
    Rob Dillon Guest

Posting Permissions

  • You may not post new threads
  • You may 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