# Trying to change the BackGround color on xml gallery?

**URL:** <https://forum.kirupa.com/t/trying-to-change-the-background-color-on-xml-gallery/65662>\
**Category:** Uncategorized\
**Created:** [September 28, 2004, 4:36pm UTC](https://forum.kirupa.com/t/trying-to-change-the-background-color-on-xml-gallery/65662 "2004-09-28T16:36:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlashPlaya](https://avatars.discourse-cdn.com/v4/letter/f/e274bd/32.png) [@FlashPlaya](https://forum.kirupa.com/u/FlashPlaya)\
**Post date:** [September 28, 2004, 4:36pm UTC](https://forum.kirupa.com/t/trying-to-change-the-background-color-on-xml-gallery/65662/1 "2004-09-28T16:36:16Z")

</div>

Hey Hey!!

I am try to adapted a new action in the photo Gallery Using XML and Flash. I am trying add a color function? You can see what I am trying todo  
[here](http://www.dyaddesigns.com/Cheryl_site/newLayout/cheryl_site2.swf) I want the color to change when you goto the next image?? I hope this make sense. I just don’t know where to add it? to the xml or the fla?

Thanks :thumb:

---

<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:** [September 28, 2004, 5:23pm UTC](https://forum.kirupa.com/t/trying-to-change-the-background-color-on-xml-gallery/65662/2 "2004-09-28T17:23:45Z")

</div>

Hey Playa!  
You would add the code to your FLA. In the code, find the place where I refer to the buttons (btn\_next and btn\_prev I think), and you can add your code there. Make sure you aren’t breaking up any existing pieces of code and you should be set 🙂

Cheers!  
Kirupa :ub:

---

<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:** [September 28, 2004, 5:29pm UTC](https://forum.kirupa.com/t/trying-to-change-the-background-color-on-xml-gallery/65662/3 "2004-09-28T17:29:55Z")

</div>

in that, the colour doesn’t change when you goto the next image… only when you click on the colour buttons 😛

---

<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:** [September 28, 2004, 5:34pm UTC](https://forum.kirupa.com/t/trying-to-change-the-background-color-on-xml-gallery/65662/4 "2004-09-28T17:34:24Z")

</div>

Thanks kirupa!!!

That was the first thing that I tried:)… It works just for two buttons… I want to add a color for each pic… It is like i need to add a array or some actions to the xml file?? Man i don’t know??

cyberathlete Yeah I am trying to make that function work with the nex and prev btns.

Thanks you guys!!!

---

<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:** [October 1, 2004, 3:51am UTC](https://forum.kirupa.com/t/trying-to-change-the-background-color-on-xml-gallery/65662/5 "2004-10-01T03:51:50Z")

</div>

Hey Guys!!

I got it figured out… Thankgod for Scotty!!!🙂

[http://www.dyaddesigns.com/CherylSite/](http://www.dyaddesigns.com/CherylSite/)

Just adding a new node in the flash and the .xml file :thumb:
