Check out Number.toString().  You can pass it a radix parameter of 16 
to convert the output to hex.

--- In [email protected], "Merrill, Jason" 
<[EMAIL PROTECTED]> wrote:
>
> I don't mean for this to be a cross-post, I sent it to Flashcoders
> accidentally.
> This must have been done many times before.  How can I translate the
> ColorPicker.selectedValue to a 6 digit hex number? i.e. if the color
> selected is, 000066, if I trace ColorPicker.selectedColor, traces 
102. I
> tried gooling for an Actionscript hex converter, but didn't come up 
with
> anything. This is in order to display the selected hex# to the user 
as
> #006699, not to manipulate the number.  
> 
> Thanks.
> 
>  
> 
> Jason Merrill
> Bank of America 
> Enterprise Technology & Global Risk L&LD
> Instructional Technology & Media 
> 
> Join the Bank of America Flash Platform Developer Community
> 
<blocked::http://sharepoint.bankofamerica.com/sites/tlc/flash/default.
as
> px>  
> 
> Are you a Bank of America associate interested in innovative 
learning
> ideas and technologies?
> Check out our internal  GT&O Innovative Learning Blog
> 
<blocked::http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/defaul
t.
> aspx>  & subscribe
> 
<blocked::http://sharepoint.bankofamerica.com/sites/ddc/rd/blog/_layou
ts
> /SubNew.aspx?List=\{41BD3FC9-BB07-4763-B3AB-A6C7C99C5B8D\}
&Source=http:/
> /sharepoint.bankofamerica.com/sites/ddc/rd/blog/Lists/Posts/Archive.
aspx
> > .
>


Reply via email to