# Path direct

**URL:** <https://forum.kirupa.com/t/path-direct/234790>\
**Category:** flash\
**Created:** [August 6, 2007, 7:12am UTC](https://forum.kirupa.com/t/path-direct/234790 "2007-08-06T07:12:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![youwh](https://avatars.discourse-cdn.com/v4/letter/y/82dd89/32.png) [@youwh](https://forum.kirupa.com/u/youwh)\
**Post date:** [August 6, 2007, 7:12am UTC](https://forum.kirupa.com/t/path-direct/234790/1 "2007-08-06T07:12:16Z")

</div>

I’m trying to create a floor plan thing, where by when you click on 1 of the button, it will direct you to the points you selected.

Lets say if I have point A-D, and between those points, some i might need to select whether I turn left of right. The idea I have now is at every point, I will check the var, whether it should go right or left or go straight. I tried to use onEnterframe but the MC keeps on looping nonestop. This is what I have now.

I’m using animations to draw the line to link from a point to another, but how could I use scripts to draw the lines so that in future I could add in more points with different distance.

And is it a good way to check the var point by point, cause if have have like hundreds of points, I may need to write like a lot of scripts here.

Thanx if anyone of you could help me here.
