×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Dreamweaver & Flash

HTML colors look different than SWF colors by raymondbirch
Posted: 20 Aug 01

If you set a SWF's background color to the same background color as an HTML page, the colors may not always match on all machines.

In particular, you're more likely to see a slight difference on 16-bit monitors, set to display at "thousands of colors". That's because a 16-bit monitor can't display as many colors as other monitors, and different renderers may round colors in different ways.

Reason:
It sounds paradoxical, but monitors set to "hundreds of colors" have a wider range than those set to "thousands". Although a 16-bit display can show more simultaneous colors, the palletized image can choose from a wider range of colors.

The math shows why:
32-bit monitors and 8-bit palettes both use a full byte of information for the red, green, and blue channels. That's 256 possible values for each of three colors. But a 16-bit monitor has only two bytes of info per pixel, and it gives about five bits to each channel. This means it can only display 32 different red values, 32 different green values, 32 different blue values. Each channel can display only one-eighth of the colors seen on other displays.

When a color is shown on a 16-bit display, most of the time it will have to be rounded to the nearest permitted color. Different renderers in a browser can round colors in different ways. That's why a SWF color and HTML color may have exactly the same definition, but look different from each other on different machines.

Possible solutions:
* Try making designs that don't require absolute color fidelity across all machines.  
* Use "herringbone" and other patterns to help hide edges.
* Consider putting more of the page's content inside the SWF.
* On Windows versions of Internet Explorer, you can set the "wmode" attribute to hide an unused SWF background.

For more info.....
http://www.macromedia.com/support/dreamweaver/ts/documents/html_color_shift.htm


Back to Adobe FAQ Index
Back to Adobe Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close