# Sliding clip

**URL:** <https://forum.kirupa.com/t/sliding-clip/1635>\
**Category:** Uncategorized\
**Created:** [May 9, 2002, 8:22pm UTC](https://forum.kirupa.com/t/sliding-clip/1635 "2002-05-09T20:22:31Z")\
**Posts on this page:** 2\
**Page:** 1

<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:** [May 9, 2002, 8:22pm UTC](https://forum.kirupa.com/t/sliding-clip/1635/1 "2002-05-09T20:22:31Z")

</div>

Hi Flash\_Monsters,

Read the “Sliding” Tutorial.  
Please, can U write other examples about it, to explain the commands?

1. Please, can U explain the x position: (-4,1) ; (-2,1) ; (0, 1) ???

2. How to play the movie without the first movement of the sliding’clip?

3. How to give a precision positionment command to my sliding’clip?

Many Thanx

Doctor

---

<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:** [May 14, 2002, 12:19am UTC](https://forum.kirupa.com/t/sliding-clip/1635/2 "2002-05-14T00:19:18Z")

</div>

1. I think you’re talking about

```auto
 on (press) {
&nbsp &nbsp &nbsp &nbsp _root.xnew = _root.mask2._x+(4-1)*100/2;
}

```

I screwed up with that piece of code. The problem is that the registration point of the ‘general’ clip is the center, so this makes things harder. Basically, general has to go to the position of the mask (\_root.mask2.\_x) plus a certain number of times the width of one square (100). To display the first square, you have to move 3/2 times (4-1 = 3 🙂 )

1. In general, something like

```auto
 onClipEvent (load) {
       _x = _root.mask2._x+(4-1)*100/2;
}

```

1. ??

pom 0]
