# Changing the value of a gradient fill

**URL:** <https://forum.kirupa.com/t/changing-the-value-of-a-gradient-fill/96419>\
**Category:** Uncategorized\
**Created:** [December 9, 2003, 6:27am UTC](https://forum.kirupa.com/t/changing-the-value-of-a-gradient-fill/96419 "2003-12-09T06:27:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![demondesign](https://avatars.discourse-cdn.com/v4/letter/d/f475e1/32.png) [@demondesign](https://forum.kirupa.com/u/demondesign)\
**Post date:** [December 9, 2003, 6:27am UTC](https://forum.kirupa.com/t/changing-the-value-of-a-gradient-fill/96419/1 "2003-12-09T06:27:35Z")

</div>

Guys,

I’m trying to programmatically change the value of one of the colours in a gradient fill of a symbol with Actionscript.

I’ve used setColor for the main part of the symbol now all i need is to change the gradient fill to match it.

Any ideas anyone?  
Hope I’ve made this clear enough.

If not then try here for an example.

> **[CVW Creative Perth: Web Design, Graphic Design & Online Marketing](https://www.cvwcreative.com.au/)**
>
> CVW Creative - Web design and web development Perth. Web Designers that focus on ecommerce, graphic design, SEO, online marketing in Perth, WA.

Thanks in advance

–Neil

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 12, 2003, 12:03am UTC](https://forum.kirupa.com/t/changing-the-value-of-a-gradient-fill/96419/2 "2003-12-12T00:03:35Z")

</div>

is there any way to tween the change of a gradient using this method? I plan to change the offsets and not the colors in the gradient.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 12, 2003, 6:22am UTC](https://forum.kirupa.com/t/changing-the-value-of-a-gradient-fill/96419/3 "2003-12-12T06:22:27Z")

</div>

Welcome, Monkey\_Drone. =)

There’s a thread about that… run a search for _“changing colors actionscript”_ (or something along those lines) in the Flash MX section of the forum. 😉
