# \[FMX\] Changing Gradient w/ Actionscript?

**URL:** <https://forum.kirupa.com/t/fmx-changing-gradient-w-actionscript/22015>\
**Category:** flash\
**Created:** [May 29, 2003, 6:14am UTC](https://forum.kirupa.com/t/fmx-changing-gradient-w-actionscript/22015 "2003-05-29T06:14:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![El\_Phantom](https://avatars.discourse-cdn.com/v4/letter/e/d6d6ee/32.png) [@El\_Phantom](https://forum.kirupa.com/u/El_Phantom)\
**Post date:** [May 29, 2003, 6:14am UTC](https://forum.kirupa.com/t/fmx-changing-gradient-w-actionscript/22015/1 "2003-05-29T06:14:49Z")

</div>

Hey, is there any way to use flashes new Color () method to change colors in a gradient?

I have a fire effect using a three part gradient, and I’d love to be able to change the color of the fire dynamically through actionscript.

Is this possible, even using a different method?

Thanks in advance,

–EP:trout:

---

<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:** [May 29, 2003, 7:08am UTC](https://forum.kirupa.com/t/fmx-changing-gradient-w-actionscript/22015/2 "2003-05-29T07:08:42Z")

</div>

If you use the drawing API you can use beginGradientFill()

[http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/actionscript\_dictionary510.html](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary510.html)

Other than that… nope, sorry.

---

<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:** [May 29, 2003, 4:38pm UTC](https://forum.kirupa.com/t/fmx-changing-gradient-w-actionscript/22015/3 "2003-05-29T16:38:36Z")

</div>

Thanks beta.

I don’t know if I can use this in my project and have the time be worth it, but it’s good to learn anyways.

God i love flash 😛

Thanks again!

–EP
