Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: let an app-user draw a line....
From: Ruben Mafura
Date: Thu, 4 Jan 2001 13:53:36 GMT



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 helpatchinwag [dot] com


Replies
  RE: FLASH: let an app-user draw a line.., neo binedell

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]