# Viewer drawing

**URL:** <https://forum.kirupa.com/t/viewer-drawing/487>\
**Category:** flash\
**Created:** [July 19, 2002, 12:56am UTC](https://forum.kirupa.com/t/viewer-drawing/487 "2002-07-19T00:56:56Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![hojo](https://avatars.discourse-cdn.com/v4/letter/h/7cd45c/32.png) [@hojo](https://forum.kirupa.com/u/hojo)\
**Post date:** [July 19, 2002, 12:56am UTC](https://forum.kirupa.com/t/viewer-drawing/487/1 "2002-07-19T00:56:56Z")

</div>

Alright, I want to make it so that the person watching the movie can draw in an area i designate, anyone have an idea how to pull this off? im not sure myself and would like to know if anyone could help out. Kind’of like [www.youdraw.com](http://www.youdraw.com) but of course using flash instead java or whatever it is they’re using.

thanks

---

<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 19, 2002, 5:15am UTC](https://forum.kirupa.com/t/viewer-drawing/487/2 "2002-07-19T05:15:20Z")

</div>

tell me if this is what you mean:

[http://mitsuwaguy.tripod.com/dd.html](http://mitsuwaguy.tripod.com/dd.html)

If this is what you want to do, than send me an email and i’ll email you the FLA.

---

<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 19, 2002, 5:25am UTC](https://forum.kirupa.com/t/viewer-drawing/487/3 "2002-07-19T05:25:46Z")

</div>

[http://www.kirupa.com/developer/actionscript/drawingboard\_flash5.asp](http://www.kirupa.com/developer/actionscript/drawingboard_flash5.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:** [July 19, 2002, 5:34pm UTC](https://forum.kirupa.com/t/viewer-drawing/487/4 "2002-07-19T17:34:39Z")

</div>

like the tripod one but i plan to make it like a message board and the viewer uses this to draw with.

---

<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 29, 2002, 8:26pm UTC](https://forum.kirupa.com/t/viewer-drawing/487/5 "2002-07-29T20:26:00Z")

</div>

This is excellent, I’ve been looking for just this application. I need to know if anyone can direct me to a tutorial that would also allow to draw a circle, or perhaps what kind of mods can be done to this tutorial to add that capability.

> \*Originally posted by Jubba \*  
> \*\*[http://www.kirupa.com/developer/actionscript/drawingboard\_flash5.asp](http://www.kirupa.com/developer/actionscript/drawingboard_flash5.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:** [July 30, 2002, 6:38am UTC](https://forum.kirupa.com/t/viewer-drawing/487/6 "2002-07-30T06:38:41Z")

</div>

You mean something like a circle tool?

pom :asian:

---

<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 30, 2002, 10:20pm UTC](https://forum.kirupa.com/t/viewer-drawing/487/7 "2002-07-30T22:20:07Z")

</div>

Yes, that’s right. A very simple drawing application, where you can draw straight lines & circles.

> \*Originally posted by ilyaslamasse \*  
> \*\*You mean something like a circle tool?

pom :asian: \*\*

---

<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 31, 2002, 5:43am UTC](https://forum.kirupa.com/t/viewer-drawing/487/8 "2002-07-31T05:43:13Z")

</div>

Sure you want this with Flash 5? ☹

pom :asian:

---

<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 31, 2002, 4:39pm UTC](https://forum.kirupa.com/t/viewer-drawing/487/9 "2002-07-31T16:39:11Z")

</div>

Well, not sure. I want to have a web-enabled drawing application. Simple, not too sophisticated. Can you recommend a different techology that can also be web-enabled?

> \*Originally posted by ilyaslamasse \*  
> \*\*Sure you want this with Flash 5? ☹  
> \*\*

---

<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 31, 2002, 6:28pm UTC](https://forum.kirupa.com/t/viewer-drawing/487/10 "2002-07-31T18:28:50Z")

</div>

Oh no, I just meant it would be easier with Flash MX, that’s all… It depends on what version you have.

pom :asian:

---

<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:** [August 1, 2002, 8:14am UTC](https://forum.kirupa.com/t/viewer-drawing/487/11 "2002-08-01T08:14:52Z")

</div>

Putting this code in the first frame of your animation will allow you to drag circles on the scene. Fun!

```auto
MovieClip.prototype.drawCircle = function(r, x, y){
		this.moveTo(x+r, y);
		this.curveTo(r+x, -0.4142*r+y, 0.7071*r+x, -0.7071*r+y);
		this.curveTo(0.4142*r+x, -r+y, x, -r+y);
		this.curveTo(-0.4142*r+x, -r+y, -0.7071*r+x, -0.7071*r+y);
		this.curveTo(-r+x, -0.4142*r+y, -r+x, y);
		this.curveTo(-r+x, 0.4142*r+y, -0.7071*r+x, 0.7071*r+y);
		this.curveTo(-0.4142*r+x, r+y, x, r+y);
		this.curveTo(0.4142*r+x, r+y, 0.7071*r+x, 0.7071*r+y);
		this.curveTo(r+x, 0.4142*r+y, r+x, y);
}
_root.lineStyle(2,0x000000,100);
_root.onMouseDown=function(){
	x=_xmouse;
	y=_ymouse;
	}
_root.onMouseUp=function(){
	var dx=_xmouse-x;
	var dy=_ymouse-y;
	this.drawCircle(Math.sqrt(dx*dx+dy*dy),x,y);
}

```

pom :asian:

---

<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:** [August 1, 2002, 9:50am UTC](https://forum.kirupa.com/t/viewer-drawing/487/12 "2002-08-01T09:50:01Z")

</div>

My final plan was to make something like that on [www.youdraw.com](http://www.youdraw.com) but with flash and some basic drawing tools. Although im gonna make it more of a message board than anything else. If anyone would like to help me on this, please email me at [hojo@cfl.rr.com](mailto:hojo@cfl.rr.com). Thanks again fellas

---

<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:** [August 1, 2002, 9:51am UTC](https://forum.kirupa.com/t/viewer-drawing/487/13 "2002-08-01T09:51:00Z")

</div>

i had formatted my computer and was using a email proggy on it that i had the source saved in. could you resend it again please? thanks again

---

<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:** [August 5, 2002, 6:36pm UTC](https://forum.kirupa.com/t/viewer-drawing/487/14 "2002-08-05T18:36:59Z")

</div>

Hey Thank for your help. I’m a bit of a newbie, so I have one other question (general question). I would like to know how to scale a movie clip within a flash movie.

I know that doesn’t make much since, so here’s an example, I want to drag a movie clip that’s looks like an ARROW onto a field. I then want to scale the arrow to fit between two points. The arrow will be one size, and I want to allow the user to scale it up or down depending on the other elements in the file.

JB

---

<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:** [August 5, 2002, 7:31pm UTC](https://forum.kirupa.com/t/viewer-drawing/487/15 "2002-08-05T19:31:07Z")

</div>

hey, someone had sent me a source before but before i could back it up, my computer was virally infected and i had to format, whoever sent it, please send again to [hojo@cfl.rr.com](mailto:hojo@cfl.rr.com)

thanks fellas, soon as i finish everything i’ll toss a link up with the final product
