Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | RE: [flasher] RE: Connecting lines in Flash |
| From: | N.Johansyah |
| Date: | Wed, 07 Mar 2001 13:23:40 -0000 |
Are you looking for this ?
put this code on your timeline frame (assume there are mc(instance names) :
line, box1, box2)
linewidth = 100/_width;
line._x = box1._x;
line._y = box1._y;
line._xscale = (box2._x - box1._x)*linewidth;
line._yscale = (box2._y = box1._y)*linewidth;
You can also put this code on your line clip :
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;
}
--norman
> -----Original Message-----
> From: Captieux Carl [carl [dot] captieux
> Sent: Wednesday, March 07, 2001 4:55 PM
> To: flasher from chinwag
> Subject: [flasher] RE: Connecting lines in Flash
>
>
> Hi all,
>
> 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]

