I already suggested that. The function would be:
private var v:Object;
private var a:Number;
private var b:Number;
private function initLine(x1:Number, y1:Number, x2:Number, y2:Number):void {
a = (y2 - y1) / (x2 - x1);
b = y1 - a * x1;
v = {x:x1};
Not sure about TweenLite, but there is some useful stuff here:
http://www.reflektions.com/miniml/template_permalink.asp?id=254
and here:
http://labs.zeh.com.br/blog/?p=104
Leandro Ferreira wrote:
You could do it sending and object to TweenLite and monitoring its variables
to create lines from
You could do it sending and object to TweenLite and monitoring its variables
to create lines from A to B.
Leandro Ferreira
On 1/29/08, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>
>
> Tried on another Flash list without any luck, so I'll try here.
>
> I'm trying to see if there is a way to c
:[EMAIL PROTECTED] On Behalf
>>Of Mendelsohn, Michael
>>Sent: Wednesday, January 30, 2008 8:49 AM
>>To: Flash Coders List
>>Subject: RE: [Flashcoders] Animating sprite.graphics.lineTo
>>
>>Jason,
>>
>>I recently put together a bar chart, rendered en
Jason,
I recently put together a bar chart, rendered entirely by code in AS2,
where the points must be connected by a line. I draw the entire line
(which might look like a profile of the Rocky Mountains) in one mc, and
set a mask over it in another mc. I use the tween class on the _width
propert
5 matches
Mail list logo