# Work in progress drawingAPI experiment

**URL:** <https://forum.kirupa.com/t/work-in-progress-drawingapi-experiment/22937>\
**Category:** Uncategorized\
**Created:** [June 10, 2003, 8:45pm UTC](https://forum.kirupa.com/t/work-in-progress-drawingapi-experiment/22937 "2003-06-10T20:45:46Z")\
**Posts on this page:** 6\
**Page:** 2

<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:** [June 11, 2003, 3:48am UTC](https://forum.kirupa.com/t/work-in-progress-drawingapi-experiment/22937/21 "2003-06-11T03:48:24Z")

</div>

ah, that’s a good idea. that would be hella more efficient than using proximity.

---

<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:** [June 11, 2003, 3:49am UTC](https://forum.kirupa.com/t/work-in-progress-drawingapi-experiment/22937/22 "2003-06-11T03:49:30Z")

</div>

Would it be? Because it would involve all the points checking at the same time (via onMouseMove would be best here) instead of 1 point checking from a list in an array.

I am not too wise with efficient coding, so I don’t know which is better.

---

<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:** [June 11, 2003, 3:53am UTC](https://forum.kirupa.com/t/work-in-progress-drawingapi-experiment/22937/23 "2003-06-11T03:53:49Z")

</div>

naw, it’s just a simple:

```auto

if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
//do yo thang
}

```

---

<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:** [June 11, 2003, 3:56am UTC](https://forum.kirupa.com/t/work-in-progress-drawingapi-experiment/22937/24 "2003-06-11T03:56:48Z")

</div>

Yeah, but imagine if 50 points were on the stage.

Thats 50 onMouseMove actions running at once checking the hitTest. Is that still more efficient?

---

<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:** [June 11, 2003, 4:16am UTC](https://forum.kirupa.com/t/work-in-progress-drawingapi-experiment/22937/25 "2003-06-11T04:16:14Z")

</div>

yeah, i tested it with a bunch of icons that were randomly distributed over the movie. i used that method above for the click and drag.

---

<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:** [June 11, 2003, 4:22am UTC](https://forum.kirupa.com/t/work-in-progress-drawingapi-experiment/22937/26 "2003-06-11T04:22:33Z")

</div>

Nice, so when I get to that I will see if I can add little invisible circles as a hit radius for a snap to. Thanks for testing it 🙂

[Previous page](https://forum.kirupa.com/t/work-in-progress-drawingapi-experiment/22937.md?page=1)
