# Problem with Flash

**URL:** <https://forum.kirupa.com/t/problem-with-flash/132227>\
**Category:** Uncategorized\
**Created:** [December 24, 2004, 4:40pm UTC](https://forum.kirupa.com/t/problem-with-flash/132227 "2004-12-24T16:40:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![laxinboi37](https://avatars.discourse-cdn.com/v4/letter/l/c57346/32.png) [@laxinboi37](https://forum.kirupa.com/u/laxinboi37)\
**Post date:** [December 24, 2004, 4:40pm UTC](https://forum.kirupa.com/t/problem-with-flash/132227/1 "2004-12-24T16:40:47Z")

</div>

I’m setting up a simple site for myself. I’m having problem with a background changer. Here is how my site’s setup. The content shows up at 5, in which there is a stop(); action, and another keyframe at frame 10, at which there is another stop(); action. Most of my content/menu is my on one frame.

I have two 600x400 images setup on another seperate layer just for them. One background is at frame 5, at which there is a stop(); action, and aother background at frame 10, at which there is another stop(); action. I have the following code on my movieclip buttons, labeled background1 and background2.

```auto
on (release) {
_root.gotoAndPlay(5)
}

```

I didn’t select it from the menu. Rather, just typed it out myself. But I know it’s right. There’s a little problem with it however. Upon exporting to .swf and publishing to .html, I tried clicking on Button #1 which should just take me to frame 5 and stop with background1, but when I click on Button #1, it goes to frame 5 the first time, then frame 10 the second time. When I click on Button #2, nothing happens. The code for Button #2 is as follows;

```auto
on (release) {
_root.gotoAndPlay(10)
}

```

It’s in \_root because I want it to go to their respective frames on the root level. Can someone help me?
