# \[FMX04\] Changing Background for a image with one click on EVERY scene - How?

**URL:** <https://forum.kirupa.com/t/fmx04-changing-background-for-a-image-with-one-click-on-every-scene-how/174728>\
**Category:** Uncategorized\
**Created:** [January 8, 2006, 5:57pm UTC](https://forum.kirupa.com/t/fmx04-changing-background-for-a-image-with-one-click-on-every-scene-how/174728 "2006-01-08T17:57:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![B517](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@B517](https://forum.kirupa.com/u/B517)\
**Post date:** [January 8, 2006, 5:57pm UTC](https://forum.kirupa.com/t/fmx04-changing-background-for-a-image-with-one-click-on-every-scene-how/174728/1 "2006-01-08T17:57:44Z")

</div>

Hi there, i was wondering of any of can helpme with this dilema i have.

I have set up ma flash project to have various scenes.  
One of these scenes is a page whereby when a user clicks on a button he/she can change the background image on every scene in my project.

On each scene i have made a layer called ‘background’ and drawn a black rectangle which is the default background. This has been converted to a graphic using F8.

What i’d like to be able to do is when the user clicks on the button he/she can change this default background to 1 of 4 photo’s i have in my library.

i have tried the code:

[COLOR=Red]on (release)  
{  
colorchange = new Color("/rectangle");  
colorchange.setRGB(0x0000FF);  
}[/COLOR]

but all this does is change the colour of the background and not the photo i have in my library. Please also note i have to have this change applied to all my scenes.

I hope someone can help, Many Thanks
