Page 1 of 1

Electronic protractor

Posted: Sun Jul 02, 2006 5:43 pm
by maxs
Is there any way to make a protractor so when the user drags the tip of the line it will display the angle of the line in a text field?

Posted: Tue Jul 04, 2006 9:14 am
by Mark
Hi Maxs,

Of course, there are ways to do this. Where do you get stuck?

I suggest you check out the newImage and newGraphic messages, if you want the angle to be visible when creating a new line using Rev's line tool. If you want something else, I propose you tell us what you are trying to do exactly and then the readers of this forum can try to help.

Best,

Mark

Electronic protractor

Posted: Tue Jul 04, 2006 10:18 am
by maxs
Thanks, Mark,

Rule number 1- Be clear and concise.

I would like to show students how to find angles on a protractor. I have a graphic of a protractor, and I overlayed a graphic of an arrow. How nice it would be if the user can drag the tip of the arrow over the part of the protractor, and a text field would identify the degree of the angle.

Well, I did notice that the angle function can return the angle of polygons, so I was thinking that there may be an easy way do it.

So if anyone can help, feel free to display any intellctual superiority. Thanks, Max

Posted: Tue Jul 04, 2006 10:49 am
by Benedikt.Seidl
that sounds like, you'll make also other software you could use the ae. i use it very often. you could also code it yourself, but it is not that easy, i also tried it and gave up.

to come back to the ae: there are two funktions called findangle() and pointoncircle() so you could easy draw a line and display the angle.

SEIDL.

Thank you

Posted: Thu Jul 06, 2006 1:32 am
by maxs
That's it. I just purchased Arcade engine. I think that will do the trick. Max

Thank you.javascript:emoticon(':wink:')