# Flash Expert Needed!

**URL:** <https://forum.kirupa.com/t/flash-expert-needed/25402>\
**Category:** Uncategorized\
**Created:** [July 12, 2003, 11:13am UTC](https://forum.kirupa.com/t/flash-expert-needed/25402 "2003-07-12T11:13:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flash\_monkey](https://avatars.discourse-cdn.com/v4/letter/f/ecc23a/32.png) [@Flash\_monkey](https://forum.kirupa.com/u/Flash_monkey)\
**Post date:** [July 12, 2003, 11:13am UTC](https://forum.kirupa.com/t/flash-expert-needed/25402/1 "2003-07-12T11:13:22Z")

</div>

can anyone help me im making this thing so when you click somwhere on the screen the person moves there and avoids objects is there a way

thanks

```
                              Flash Monkey:cool:
```

---

<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 12, 2003, 11:14am UTC](https://forum.kirupa.com/t/flash-expert-needed/25402/2 "2003-07-12T11:14:31Z")

</div>

uh… this? :beam:

[http://www.kirupaforum.com/forums/showthread.php?threadid=28294](http://www.kirupaforum.com/forums/showthread.php?threadid=28294)

---

<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 12, 2003, 11:15am UTC](https://forum.kirupa.com/t/flash-expert-needed/25402/3 "2003-07-12T11:15:05Z")

</div>

can you give an example?

---

<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 12, 2003, 11:26am UTC](https://forum.kirupa.com/t/flash-expert-needed/25402/4 "2003-07-12T11:26:25Z")

</div>

like on age of empires you click somwhere on the screen your person goes to that point

---

<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 12, 2003, 11:49am UTC](https://forum.kirupa.com/t/flash-expert-needed/25402/5 "2003-07-12T11:49:41Z")

</div>

anyone?

---

<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 12, 2003, 1:18pm UTC](https://forum.kirupa.com/t/flash-expert-needed/25402/6 "2003-07-12T13:18:38Z")

</div>

he wants path finding.

there is no easy script to that. you have to tell it to walk in the direction of the thing, and when ever it runs into something, figure out what shape it is, and go around it. good luck.

---

<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 12, 2003, 1:27pm UTC](https://forum.kirupa.com/t/flash-expert-needed/25402/7 "2003-07-12T13:27:15Z")

</div>

any good website on pathfinding you know?

---

<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 12, 2003, 1:58pm UTC](https://forum.kirupa.com/t/flash-expert-needed/25402/8 "2003-07-12T13:58:55Z")

</div>

no. the code i can think of is really simple, and takes alot of short cuts. and will only work if it is simple obsticles like a box in the way. advanced path finding can figure out and actual route,

it goes something like, when you click it will go there

[AS]onClipEvent (mouseDown) {  
endX = \_root.\_xmouse;  
endY = \_root.\_ymouse;  
tempendX = null;  
tempendY = null;  
}[/AS]

and it will have an onClipEvent (enterFrame) with a looped hitTest inside that will check to see if it has hit the box. when it does, it will check the dimensions of the box, the box’s \_x and \_y cordinates is, where it is itself in comparison to the box. set the temp x/y cordinates, walk around. continue the loop and see if it has cleared the box, if it has, will head straight for the target, if not will continue trying to get around the box. etc etc.

you know, people get paid to figure this kind of thing out.

---

<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 12, 2003, 2:07pm UTC](https://forum.kirupa.com/t/flash-expert-needed/25402/9 "2003-07-12T14:07:05Z")

</div>

it dint work can you explain in more deatil where to put the script?

---

<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 13, 2003, 2:39am UTC](https://forum.kirupa.com/t/flash-expert-needed/25402/10 "2003-07-13T02:39:55Z")

</div>

thats not the complete script. its no where near that. for me, it would take about a week at most to create a working script.
