A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Flash Hex Colors

  1. #1
    Junior Member
    Join Date
    Mar 2010
    Posts
    8

    Flash Hex Colors

    Hey all!

    I'm probably overlooking something pretty simple, but apparently, when utilizing flash, you cannot use common hex colors like #ffffff, instead you have to use 0x0123456 (as an example).

    Does anyone know of a resource where I can convert traditional hex to this style, so I may use it with my caurina transitions?

  2. #2
    Junior Member
    Join Date
    Mar 2010
    Posts
    8
    Never mind, folks.

    It's truly AMAZING what actually SEARCHING for the answer will yield!

    Sorry for the interruption, folks!

  3. #3
    Will moderate for beer
    Join Date
    Apr 2007
    Location
    Austin, TX
    Posts
    6,801
    For anyone finding this thread in search, the difference is only in the way the values are written. HTML uses '#' to denote a hex number, while as3 (as well as many other languages) uses a "0x" prefix. The actual values are still given in hexadecimal. The value consists of pairs of hexadecimal digits for possible values between 0 and 256 for each channel. For RGB, there are 3 channels: Red, Green, and Blue. Flash uses this format as well as ARGB, which is Alpha, Red, Green, and Blue.

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