PDA

View Full Version : [FMX] Changing Gradient w/ Actionscript?



El Phantom
May 29th, 2003, 02:14 AM
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:

lostinbeta
May 29th, 2003, 03:08 AM
If you use the drawing API you can use beginGradientFill()

http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary510.html

Other than that... nope, sorry.

El Phantom
May 29th, 2003, 12:38 PM
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 :P


Thanks again!

--EP