Flasher Archive

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


Subject: oooops RE: [flasher] RE: Connecting lines in Flash
From: N.Johansyah
Date: Wed, 07 Mar 2001 13:29:20 -0000

ooops sorry,.. too much beer lately :-),...

here's the missing code,

alt1. script put in the timeline :

linewidth = 100/line_width;
line._x = box1._x;
line._y = box1._y;
line._xscale = (box2._x - box1._x)*linewidth;
line._yscale = (box2._y = box1._y)*linewidth;

alt2. script onclipevent :

onClipEvent (load) {
linewidth = 100/this._width;
_x = _root.box1._x;
_y = _root.box1._y;
_xscale = (_root.box2._x - _root.box1._x)*linewidth;
_yscale = (_root.box2._y - _root.box1._y)*linewidth;


sorry,..

Norman



>
> In Flash 4 you had to continually duplicate a line mc to position
> it between
> points.
>
> Is this still the case in Flash 5 or there a better (simple)way of
> connecting lines between points in Flash 5?
>
> Any examples or tutorials would be great.
>
> Thanks.
>
> Carl





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