# Sliding Background

**URL:** <https://forum.kirupa.com/t/sliding-background/35221>\
**Category:** flash\
**Created:** [November 11, 2003, 7:25pm UTC](https://forum.kirupa.com/t/sliding-background/35221 "2003-11-11T19:25:39Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![rages4calm](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@rages4calm](https://forum.kirupa.com/u/rages4calm)\
**Post date:** [November 11, 2003, 7:25pm UTC](https://forum.kirupa.com/t/sliding-background/35221/1 "2003-11-11T19:25:39Z")

</div>

The tutorial here confused me…  
So anyways im trying to make my websites backgrounds do this  
[http://www.fournuts.com/main.html](http://www.fournuts.com/main.html) ignore the pop up that comes up…

I want the background to scroll whenever i click on a button and i have it all set up and it is still confusing cause i cant get it to work

[http://www.xpozurmedia.com/xpozed.fla](http://www.xpozurmedia.com/xpozed.fla)

If someone can help me get these buttons working right it would be much appreciated… or tell me what im doing wrong.

---

<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:** [November 11, 2003, 8:33pm UTC](https://forum.kirupa.com/t/sliding-background/35221/2 "2003-11-11T20:33:47Z")

</div>

uhh anyone? suggestions perhaps

---

<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:** [November 12, 2003, 11:01am UTC](https://forum.kirupa.com/t/sliding-background/35221/3 "2003-11-12T11:01:23Z")

</div>

Theres tutorials for this in the kirupa tutorials section…

---

<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:** [November 12, 2003, 11:50am UTC](https://forum.kirupa.com/t/sliding-background/35221/4 "2003-11-12T11:50:49Z")

</div>

I dl’d your fla and it seems like it works just fine you just have to remember to apply your actions to all of you buttons, and then fine tune it all so the sliding stops where it should and what-not. My suggestion to you though, if you plan on moving things around with script try to make symbols with the registration point in the top left corner or the center of the symbol, it makes calculating locations quite a bit easier.

---

<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:** [November 13, 2003, 12:44am UTC](https://forum.kirupa.com/t/sliding-background/35221/5 "2003-11-13T00:44:35Z")

</div>

not exactly… the first slide is suppose to stop center… then when he hit each button they slide back and forth to there pictures but its not working that way.

---

<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:** [November 13, 2003, 3:13am UTC](https://forum.kirupa.com/t/sliding-background/35221/6 "2003-11-13T03:13:25Z")

</div>

okay so you have the 2 pictures and you want the first one to slide out and the second one to slide in (timed cleanly of course).

In that case you need to target the picture themselves, if I am way off, maybe you could explain in a different manner the effect you are trying to achieve. When I am sure of the effect I will make a modified version of your fla for you to examine.

---

<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:** [November 13, 2003, 7:23pm UTC](https://forum.kirupa.com/t/sliding-background/35221/7 "2003-11-13T19:23:19Z")

</div>

The first thing I noticed is that the endx position in your instance of the background (bg) was set wrong. It should be something like endx = 430;

---

<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:** [November 14, 2003, 1:05pm UTC](https://forum.kirupa.com/t/sliding-background/35221/8 "2003-11-14T13:05:44Z")

</div>

if i can figure out the whole x and y \*\*\*\* i would be fine

---

<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:** [November 14, 2003, 2:38pm UTC](https://forum.kirupa.com/t/sliding-background/35221/9 "2003-11-14T14:38:12Z")

</div>

Hi, I think that you may also like to check out this component, if you are a bit in a lazy mood do do the trick 😉[http://www.flashcomponents.net/component.cfm?nav=2&id=88](http://www.flashcomponents.net/component.cfm?nav=2&id=88)

cheers
