# Asp movement

**URL:** <https://forum.kirupa.com/t/asp-movement/627>\
**Category:** Uncategorized\
**Created:** [July 24, 2002, 9:34am UTC](https://forum.kirupa.com/t/asp-movement/627 "2002-07-24T09:34:52Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![DMX](https://avatars.discourse-cdn.com/v4/letter/d/898d66/32.png) [@DMX](https://forum.kirupa.com/u/DMX)\
**Post date:** [July 24, 2002, 9:34am UTC](https://forum.kirupa.com/t/asp-movement/627/1 "2002-07-24T09:34:52Z")

</div>

```php
Help

```

[list]

I need to be able to move a movie clip with asp (actionscript)

heeeeeeeeeeeeeellllllllllllllllpppppppppppp!!!:o

---

<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:** [July 24, 2002, 12:27pm UTC](https://forum.kirupa.com/t/asp-movement/627/2 "2002-07-24T12:27:46Z")

</div>

Declare the vars with asp in host page (or call an asp page as the target of a loadVariablesNum() command), then use enterFrame to manipulate \_x and \_y.

---

<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:** [July 24, 2002, 1:07pm UTC](https://forum.kirupa.com/t/asp-movement/627/3 "2002-07-24T13:07:47Z")

</div>

Wait a sec. Are you talking about Actionscript, Flash script language, or ASP, Microsoft DB communication language. because it’s quite different.

pom :asian:

---

<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:** [July 24, 2002, 4:14pm UTC](https://forum.kirupa.com/t/asp-movement/627/4 "2002-07-24T16:14:14Z")

</div>

actionscript 4 flash ok.:rambo:

---

<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:** [July 24, 2002, 4:15pm UTC](https://forum.kirupa.com/t/asp-movement/627/5 "2002-07-24T16:15:50Z")

</div>

I DONT GET IT EXPLAIN IT IN IN BABY LANGUAGE.

---

<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:** [July 25, 2002, 6:19am UTC](https://forum.kirupa.com/t/asp-movement/627/6 "2002-07-25T06:19:04Z")

</div>

Well, there are tutes on this site, and Kirupa tries his very best to explain it as simply as he possibly can… But here’s my explanation anyway:

Your scene can be described as a cartesian I-don’t-know-how-it’s-called, with an x and an y axis. The x go right, the y go down. There, an object will have 2 interesting properties: \_x and \_y, which are its position on each axis.  
The interesting thing is that you can modify these properties with actionscript. So writing on that object:

```auto
onClipEvent(enterFrame)
{
    _x=_x+2;
}

```

will make that object’s \_x position increase by 2 on every new frame. It’s moving. I can’t explain it better!

pom :asian:

---

<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:** [July 28, 2002, 10:55am UTC](https://forum.kirupa.com/t/asp-movement/627/7 "2002-07-28T10:55:27Z")

</div>

Tank u ilyaslamasse=)

---

<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:** [July 28, 2002, 7:14pm UTC](https://forum.kirupa.com/t/asp-movement/627/8 "2002-07-28T19:14:48Z")

</div>

can’t you also use:

onClipEvent(enterFrame)  
{  
\_x+=2;  
}

? That is how I have been doing it, but if it is wrong it is better that I find out early in the game.

---

<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:** [July 30, 2002, 5:49am UTC](https://forum.kirupa.com/t/asp-movement/627/9 "2002-07-30T05:49:12Z")

</div>

that is possible.🙂

---

<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:** [July 30, 2002, 5:51am UTC](https://forum.kirupa.com/t/asp-movement/627/10 "2002-07-30T05:51:04Z")

</div>

Ok Good, because it works for me, and I just wasn’t sure if this method could cause conflicts with code in the future. It is good to know that it is just another way to write it (and a much more simpler one if you ask me).

---

<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:** [July 30, 2002, 9:56am UTC](https://forum.kirupa.com/t/asp-movement/627/11 "2002-07-30T09:56:25Z")

</div>

I see that you changed your footer 😛 Looks nice!  
And concerning the other syntax, not conflict at all 🙂 [http://www.kirupa.com/developer/actionscript/as\_tricks.asp](http://www.kirupa.com/developer/actionscript/as_tricks.asp) section increment/decrement

pom :asian:
