# Changing background color?

**URL:** <https://forum.kirupa.com/t/changing-background-color/279825>\
**Category:** flash\
**Created:** [January 19, 2009, 7:24pm UTC](https://forum.kirupa.com/t/changing-background-color/279825 "2009-01-19T19:24:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![regbolD](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@regbolD](https://forum.kirupa.com/u/regbolD)\
**Post date:** [January 19, 2009, 7:24pm UTC](https://forum.kirupa.com/t/changing-background-color/279825/1 "2009-01-19T19:24:43Z")

</div>

I would like to have ability to change background color of my web page.  
I would have few buttons for few different colors.  
Anybody got some code which does that with actionscript 3?

First of all, can I change background color just with actionscript?

And one more question:  
What if I have a radial gradient, going from some color to transparent, is it possible to change just a color, and that the gradient stays?
