# Advanced drawing tool

**URL:** https://forum.kirupa.com/t/advanced-drawing-tool/22883
**Category:** flash
**Created:** [June 10, 2003, 3:27am UTC](https://forum.kirupa.com/t/advanced-drawing-tool/22883 "2003-06-10T03:27:45Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Felipe\_Bastos](https://avatars.discourse-cdn.com/v4/letter/f/f05b48/32.png) [@Felipe\_Bastos](https://forum.kirupa.com/u/Felipe_Bastos)
#### Post date: [June 10, 2003, 3:27am UTC](https://forum.kirupa.com/t/advanced-drawing-tool/22883/1 "2003-06-10T03:27:45Z")

</div>

Does anyone know how to simulate a drawing tool like this?  
[list]  
[_] **Arrow tool: does not produce any drawing. It desativate the use of the last drawing tool selected**  
[_] **Line tool: it draws lines \_\_\_\_\_\_\_\_**  
[_] **Free tool: freehand way to draw**  
[_] **Erase tool: when it is clicked, erases all the drawing**  
[\*]**Color selection: when the line and free tools are selected, it displays 4 diferent color boxes for the user to choose (red, yellow, white and black).**  
[/list]

Correct if I`m wrong. I would have to create diferent function and when a tool is selected, it calls that specific function! If this is right, does anyone have a tip or have seen some tutorial like this?

Thanks  
:thumb:

---

<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 10, 2003, 3:35am UTC](https://forum.kirupa.com/t/advanced-drawing-tool/22883/2 "2003-06-10T03:35:33Z")

</div>

I sure hope you know the drawing API well otherwise this is too advanced for you.

Just as an example of what you are in for here an an example of the line tool one…

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

If you don’t know the drawing API… start reading 😉

[http://www.kirupa.com/developer/actionscript/tricks/drawing\_api.asp](http://www.kirupa.com/developer/actionscript/tricks/drawing_api.asp)

---

<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 10, 2003, 3:45am UTC](https://forum.kirupa.com/t/advanced-drawing-tool/22883/3 "2003-06-10T03:45:54Z")

</div>

Sorry about the repeated question on the other thread!  
Thanks  
:thumb:

---

<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 10, 2003, 3:56am UTC](https://forum.kirupa.com/t/advanced-drawing-tool/22883/4 "2003-06-10T03:56:50Z")

</div>

[http://www.kirupa.com/developer/actionscript/drawingboard.htm](http://www.kirupa.com/developer/actionscript/drawingboard.htm)

Theres an example of freehand drawing

And example of erasing would be the same as the freehand drawing, but the color of the line should be the same color as your background (i highly recommend a solid color background for your drawing surface).

Color selection would be using variables to store what color it should be and using that in the drawing API script.

The arrow tool would just be not using any of the previous methods 😛

---

<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 10, 2003, 4:05am UTC](https://forum.kirupa.com/t/advanced-drawing-tool/22883/5 "2003-06-10T04:05:02Z")

</div>

Is it possible to mix the code you just commented and the freehand drawing?  
If I just click in different points it draws a straigh line and if the mouse in down and moves, it creates free form drawings?

---

<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 10, 2003, 4:06am UTC](https://forum.kirupa.com/t/advanced-drawing-tool/22883/6 "2003-06-10T04:06:36Z")

</div>

Yeah it is, using if statements and a variable to hold what mode the tool is in.

I don’t have time to work that out right now, but you got a bunch of points in the right direction 😉

---

<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 10, 2003, 4:18am UTC](https://forum.kirupa.com/t/advanced-drawing-tool/22883/7 "2003-06-10T04:18:46Z")

</div>

I think is time to experiment myself.  
Thanks again!

Are you planning to go to university? Do u work in some design company or r u a freelance?

see u  
🙂

---

<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 10, 2003, 4:21am UTC](https://forum.kirupa.com/t/advanced-drawing-tool/22883/8 "2003-06-10T04:21:40Z")

</div>

No problem.

Am I planning on going to university?  
I wanted to, but didn’t get accepted to any university because my high school jipped me out of a proper math education. Long story.

Do I work in a design company or do I freelance?  
Erm, neither. I would love to work in a design company, that would totally rock. As for freelance, I often think about it, but sometimes I have my doubts on how good I am (i know i know) and I often talk myself out of 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: [June 10, 2003, 4:40am UTC](https://forum.kirupa.com/t/advanced-drawing-tool/22883/9 "2003-06-10T04:40:00Z")

</div>

With your AS experience u could go very far.  
Havent u had any job offer until now?  
if u were living in my city I would hire u! 🙂

hey, sorry for bad english! have to practice more!!!

---

<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 10, 2003, 4:42am UTC](https://forum.kirupa.com/t/advanced-drawing-tool/22883/10 "2003-06-10T04:42:35Z")

</div>

I had 1 job offer, but they were in Canada and I am not, so that posed difficulties and never happened.

That’s it though. After I beef up my server-side skills (like PHP and mySQL) I my throw myself head first into the web design business.
