# Please help a newb

**URL:** https://forum.kirupa.com/t/please-help-a-newb/167897
**Category:** flash
**Created:** [November 2, 2005, 7:12am UTC](https://forum.kirupa.com/t/please-help-a-newb/167897 "2005-11-02T07:12:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Vicious30](https://avatars.discourse-cdn.com/v4/letter/v/ecae2f/32.png) [@Vicious30](https://forum.kirupa.com/u/Vicious30)
#### Post date: [November 2, 2005, 7:12am UTC](https://forum.kirupa.com/t/please-help-a-newb/167897/1 "2005-11-02T07:12:33Z")

</div>

Hey guys, I am having a problem in flash ,and I need help. Here is what I got I have a flash site. It is a site map. And on the click of one of my buttons I want it to replace the background image with a new background image and then when you click again I want the old image to come back. like a loop of just the 2. here  
is the code I have to the background which is a mc

onClipEvent (load) {  
var nowloaded = “test”;  
trace(nowloaded)  
}

AND HERE IS THE SCRIPT FOR THE BUTTON

on (release) {  
if (nowloaded == test) {  
empty\_bg.loadMovie(“bg.swf”, 1);  
(nowloaded == test2);  
} else if (nowloaded != test2) {  
empty\_bg.unloadMovie(“bg.swf”, 1);  
empty\_bg.loadMovie(“rbg.swf”, 1);

nowloaded = “test2”;  
}  
}

I have Just started to learn flash so please speak in newbish terms Anyones help would be appreciated greatly
