# Is there a straightforward, AS2-like way to change obect color in AS3?

**URL:** <https://forum.kirupa.com/t/is-there-a-straightforward-as2-like-way-to-change-obect-color-in-as3/295990>\
**Category:** Uncategorized\
**Created:** [September 8, 2009, 1:10pm UTC](https://forum.kirupa.com/t/is-there-a-straightforward-as2-like-way-to-change-obect-color-in-as3/295990 "2009-09-08T13:10:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![screeg](https://avatars.discourse-cdn.com/v4/letter/s/ccd318/32.png) [@screeg](https://forum.kirupa.com/u/screeg)\
**Post date:** [September 8, 2009, 1:10pm UTC](https://forum.kirupa.com/t/is-there-a-straightforward-as2-like-way-to-change-obect-color-in-as3/295990/1 "2009-09-08T13:10:23Z")

</div>

remember how dumb-a\*\* simple this way in AS2.0?  
[COLOR=Navy]block1Color = new Color(\_root.block1.block\_color); block1Color.setRGB(0x80caff);[/COLOR]

I want to change an mc’s color based on input from a .txt file, preferably a 6-digit hexadecimal designation, like “FFFFFF”. Is there a way to assign colors in AS3.0 using the old hexadecimal configuration?

Failing that, a workaround?
