# Trouble with Drawing API

**URL:** https://forum.kirupa.com/t/trouble-with-drawing-api/9782
**Category:** Uncategorized
**Created:** [December 18, 2002, 1:31pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782 "2002-12-18T13:31:31Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![eilsoe](https://avatars.discourse-cdn.com/v4/letter/e/9fc348/32.png) [@eilsoe](https://forum.kirupa.com/u/eilsoe)
#### Post date: [December 18, 2002, 1:31pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/1 "2002-12-18T13:31:31Z")

</div>

Hiya!

Made this code in Mx, attached the file, can anyone please tell me how the hell i make it draw the lines dynamically?

I mean, i know about the API, but this is ticking me off! :-\

Anyone?

(attachment removed, look at posts below)

---

<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: [December 18, 2002, 1:44pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/2 "2002-12-18T13:44:04Z")

</div>

Well, first of all, write an enterFrame. gotoAndPlay loops were used at the time of Flash 4…

pom :+)

---

<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: [December 18, 2002, 1:47pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/3 "2002-12-18T13:47:46Z")

</div>

Done 🙂 now what?

---

<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: [December 18, 2002, 2:04pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/4 "2002-12-18T14:04:12Z")

</div>

You set up a lineStyle, and you draw the lines onEnterFrame.

---

<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: [December 18, 2002, 7:27pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/5 "2002-12-18T19:27:07Z")

</div>

_sigh_

I KNOW how the drawing API works, the problem is that whenever the last line drawn, from point “last” to point “first” is made, it runs a straight line from end to beginning…

Am I even making any sense…?

---

<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: [December 18, 2002, 7:47pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/6 "2002-12-18T19:47:58Z")

</div>

You make no sense at all maybe try you best then maybe ill understand.  
Im good with Drawingg API

---

<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: [December 18, 2002, 8:14pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/7 "2002-12-18T20:14:32Z")

</div>

I understand what you mean Eilsoe.

You want it to draw from point to point, but what you are getting it from point 1 to new point over and over.

---

<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: [December 18, 2002, 8:36pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/8 "2002-12-18T20:36:16Z")

</div>

yes, I draw from point 1-2-3-4-5-6-7-8-9-10 in a row, that’s easy enough…

but next frame it’ll be 10-1-2-3-4-5-6-7-8-9

see? It’ll draw a line from point 9 to 10 across the whole thing!!

And it’ll keep doing it every frame!! with the other numbers, as soon as they move in the front of the row again…

I need to make it understand to NOt do it…

---

<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: [December 18, 2002, 8:43pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/9 "2002-12-18T20:43:08Z")

</div>

What code are you using so far?

---

<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: [December 18, 2002, 9:01pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/10 "2002-12-18T21:01:52Z")

</div>

Shane waldeck, learn to read the entire thread…

there’s an attachment further up…

---

<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: [December 18, 2002, 9:05pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/11 "2002-12-18T21:05:40Z")

</div>

Christian Eilsoe… I have the attachment, but it doesn’t contain the code that you are using to draw your lines 😛

---

<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: [December 18, 2002, 9:19pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/12 "2002-12-18T21:19:35Z")

</div>

Shane Waldeck, I removed the line code, because it ticked me off…

I want to start from scratch with it…

---

<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: [December 18, 2002, 9:21pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/13 "2002-12-18T21:21:00Z")

</div>

Christian Eilsoe, Oh Ok Then 😛

---

<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: [December 18, 2002, 9:21pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/14 "2002-12-18T21:21:54Z")

</div>

_ **Eilsoe** smacks **LostinBeta** with a rotten mushy cheesy trout_

---

<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: [December 18, 2002, 9:24pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/15 "2002-12-18T21:24:23Z")

</div>

[size=1]:: **dan4885** sends **eilsoe** into eternity of damnation for messing with **lostinbeta** ::[/size] :evil:

---

<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: [December 18, 2002, 9:27pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/16 "2002-12-18T21:27:54Z")

</div>

\*\*[SIZE=1]Eilsoe falls asleep becuase he just finished a 12 hour school day, but yet he finds the strength to whach Dan4885 with a trout the size of texas[/SIZE] \*\*

---

<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: [December 18, 2002, 9:36pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/17 "2002-12-18T21:36:57Z")

</div>

[size=1]:: **dan4885** hires the New York Giants to take out the Texans, they have done it before::[/size]

[size=1]:: **dan4885** sets out a trick apple to trap **eilsoe** and use for fishing bait::[/size]

---

<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: [December 18, 2002, 9:46pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/18 "2002-12-18T21:46:53Z")

</div>

\*[SIZE=1]Eilsoe uses his bait skills to lure in a huge salmon and smacks Dan with it for spamming this thread up[/SIZE] \*

---

<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: [December 18, 2002, 9:49pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/19 "2002-12-18T21:49:26Z")

</div>

[size=1]:: **dan4885** retaliates and catches the salmon with a fish net and eats the fish and eilsoe inside as a whole::[/size]

By the way, you started the spam! :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: [December 18, 2002, 10:16pm UTC](https://forum.kirupa.com/t/trouble-with-drawing-api/9782/20 "2002-12-18T22:16:24Z")

</div>

You continued it :o

[Next page](https://forum.kirupa.com/t/trouble-with-drawing-api/9782.md?page=2)
