Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | RE: [flasher] connecting 2 points. |
From: | Scott Jeppesen |
Date: | Sun, 11 Feb 2001 19:49:33 -0000 |
Pretty easy actually. You need to create a hairline at a 45 degree angle
with width and heights of 100. For this example I'm using 2 movie clips
named holder1 and holder 2 to serve as the points. In the line(which should
be a movie clip) add these actions:
onClipEvent(enterFrame){
_x = _root.holder1._x;
_y = _root.holder1._y;
_xscale = _root.holder2._x - _root.holder1._x;
_yscale = _root.holder2._y - _root.holder1._y;
}
I've posted a couple samples:
http://flashpros.dynip.com/GraphingTool/LineDrawing.fla
and I did a line graphing tool a while back. You can view it here:
http://flashpros.dynip.com/GraphingTool/IOGraphTool.html
or download the Fla(it's only in F4 right now):
http://flashpros.dynip.com/GraphingTool/IOGraphTool.fla
Hope that helps you out.
SJ
-----Original Message-----
From: DRMRLPLSaol [dot] com [DRMRLPLSaol [dot] com (mailto:DRMRLPLSaol [dot] com)]
Sent: Sunday, February 11, 2001 8:01 AM
To: flasher from chinwag
Subject: [flasher] connecting 2 points.
How can have flash dynamically move a line that connects 2 dynamic points.
I
need to basically create a line graph. There are a number of points that
will be poitioned depending on data. How can I connect these points with
lines? I know I've seen this I just can't figure ouot how it's done.
Andrew
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The Chinwag site carries a wealth of Flash resources.
Find useful links, suggested reading and archives at:
** http://www.chinwag.com/flasher **
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You are subscribed to flasher as: ScottJegoxstudios [dot] com
To unsubscribe, email leave-flasher-479780Vlists [dot] chinwag [dot] com
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]