Changing the value of a gradient fill


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.

Thanks in advance


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.

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. :wink: