dcsimg
A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Text Color

  1. #1
    Junior Member
    Join Date
    Jul 2001
    Posts
    8

    Text Color

    I have created a series of Edit boxes, and when I mouse over the boxes, I want to reset the color of the text in the box, which I initialized in the box when I created it. When I leave the box, I want the color of the text to return to the original color. It seems like a simple item, but I haave not been able to figure out a way to do this.

    Thanks for any help with this problem

  2. #2
    Senior Member lopez1_de's Avatar
    Join Date
    Oct 2001
    Location
    Germany
    Posts
    299
    I think this is not possible.

    anybody else know something about text colors of edit boxes?

  3. #3
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Well you could do it but not directly, What you could do is use transparent editboxes and make your own background using the drawing tools and redraw it to change the color, or hide several color rectangles and HIDE/SHOW them to simulate it.

    This works for the BACKGROUND color only as in this example

    Example with downloadable source
    Last edited by blanius; 01-19-2004 at 11:09 PM.

  4. #4
    Junior Member
    Join Date
    Jul 2001
    Posts
    8
    Thanks, but this is not exactly what I am looking for. Your example requires you to select the box before the color changes. I just want to mouseover the box to have the color change. Can I create two boxes in the same location and have the second one use a different color.

  5. #5
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Originally posted by EDiCicco
    Thanks, but this is not exactly what I am looking for. Your example requires you to select the box before the color changes. I just want to mouseover the box to have the color change. Can I create two boxes in the same location and have the second one use a different color.
    I could do that the same way.. Just hotspot over the editbox
    (hotspot=blank button with hotspot)

  6. #6
    Senior Member lopez1_de's Avatar
    Join Date
    Oct 2001
    Location
    Germany
    Posts
    299
    nice trick bret

  7. #7
    Junior Member
    Join Date
    Nov 2003
    Location
    Australia
    Posts
    24

    Maybe....

    If you wanted to, you could use a button. The mouseover can display a text box with a different font colour. You could then link the text boxes to the same variable.

    Perhaps I am a longway offtrack, but it may help.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center