Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | RE: FLASH: let an app-user draw a line.... |
From: | neo binedell |
Date: | Thu, 4 Jan 2001 15:31:46 GMT |
hiya
create a clip containing a line (stroke: hairline) starting at 0 rotated 45
deg down from the right (top-left to bottom-right)
when you need to update the line
_x = V0.X;
_y = V0.Y;
_xscale = V1.X - V0.X;
_yscale = V1.Y - V0.Y;
where V0 is your first point and V1 your end point.
The other way which allows scaling is to have a line going right,
and then computing the angle of rotation required between two points
(trig/pythagoras)
layder
neo binedell
-----Original Message-----
From: ownerchinwag [dot] com [ownerchinwag [dot] com]On">mailto:ownerchinwag [dot] com]On Behalf Of Ruben
Mafura
Sent: January 4, 2001 3:35 PM
To: flasherchinwag [dot] com
Subject: FLASH: let an app-user draw a line....
GoodDay Flashers,
________________________________________
1st of all, BEST WISHES FOR U ALL!
Hope u all had a fantastic start of 2K1.
________________________________________
...right,
The problem i ran into which i'd like to share with u.
A simple line....has a set of 'origin-coordinates' ('X' & 'Y')an
'instance-hight' and an 'instance-width'.
What if u would want to draw a line, based on values, entered into a dynamic
text field?
A user enters 2 sets of xy-coordinates and the flash application draws the
corresponding line in a predefined section.
I thought of the next solution;
A short preFab line (grafic) with a positive angle of e.g. 45 degrees is
positioned according to the first set of coordinates, next, the line is
scaled in order to get the other end of the line to correspond with the
second set of coordinates. This way you're able to create lines with a
positive slope. For lines with a negative slope, you use a prefab line with
a negative angle of 45 degrees.
The math-part (determining wether the slope of the line is positive or
negative AND the scaling part) is not yet perfected but i think i can get
it to work.
...however, i can't shake the idea that there should a much, much simpler
alternative to all this.
I appriciate every effort put into a possible answer.
Regards,
RuupY
Pecoma ICT-groep * De mensen, de oplossingen * http://www.pecoma.nl
Is deze e-mail niet voor u bedoeld? Laat het ons even weten. Bij voorbaat
dank.
Dit e-mailbericht is gecontroleerd op computervirussen met MIMEsweeper.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre
Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre
Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
FLASH: let an app-user draw a line...., Ruben Mafura
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]