# Please help me project gone wrong

**URL:** <https://forum.kirupa.com/t/please-help-me-project-gone-wrong/13244>\
**Category:** Uncategorized\
**Created:** [February 10, 2003, 6:54pm UTC](https://forum.kirupa.com/t/please-help-me-project-gone-wrong/13244 "2003-02-10T18:54:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashnewbie](https://avatars.discourse-cdn.com/v4/letter/f/bb73d2/32.png) [@flashnewbie](https://forum.kirupa.com/u/flashnewbie)\
**Post date:** [February 10, 2003, 6:54pm UTC](https://forum.kirupa.com/t/please-help-me-project-gone-wrong/13244/1 "2003-02-10T18:54:17Z")

</div>

i need some help i was trying to make the ball follow the mouse click but it went wrong, please open the attachment and look at the acion script tell me what i did wrong please.:_( :_( :_( :_( :\*(

---

<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:** [February 10, 2003, 6:56pm UTC](https://forum.kirupa.com/t/please-help-me-project-gone-wrong/13244/2 "2003-02-10T18:56:17Z")

</div>

post your code. I can’t download anything.

As a rule, you should post the relavent code to your project instead of attaching the file. Some people are weary of dling files from message boards, others are behind firewalls that don’t allow the download of files. Just post your code and we can debug it 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:** [February 10, 2003, 6:57pm UTC](https://forum.kirupa.com/t/please-help-me-project-gone-wrong/13244/3 "2003-02-10T18:57:26Z")

</div>

```php
onClipEvent (load) {
	x = 0;
	y = 0;
	speed = 5;
}
onClipEvent (mouseDown) {
	endX = _root._xmouse;
	endY = _root._ymouse;
}
onClipEvent (enterFrame) {
	_x += (endX-_x)/speed;
	_y += (endY-_x)/speed;
}

```

this is the code i used

[edit]Jubba: I edited it to see the code properly[/edit]

---

<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:** [February 10, 2003, 7:03pm UTC](https://forum.kirupa.com/t/please-help-me-project-gone-wrong/13244/4 "2003-02-10T19:03:38Z")

</div>

[http://www.kirupa.com/developer/mx/easing\_mouseclick.htm](http://www.kirupa.com/developer/mx/easing_mouseclick.htm)

a tutorial by LostInBeta

---

<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:** [February 10, 2003, 7:05pm UTC](https://forum.kirupa.com/t/please-help-me-project-gone-wrong/13244/5 "2003-02-10T19:05:59Z")

</div>

see this part of the code

onClipEvent (enterFrame) {  
\_x += (endX-\_x)/speed;  
\_y += (endY-\_x)/speed;  
}

on the thrid line where it says end y-\_x it should be end Y-\_y not x thanks for ur help though
