View Full Version : appearing line
:confused:
OKay....here go's.
I am trying to do an intro where it looks like a line is being drawn and ends with a circle attched on the end of it.
I have tried doing it with a mask layer but it always muffs up!
er go 'holyjumpn'
is there an easy way out or must I go through heck!
Thanks a bunch
mpol777
10-04-2001, 09:46 PM
create 2 movie clips one that's your line and 1 that's your circle. doesn't matter how big each is. now group both of them into another movieclip.
let's say you want the line to be 100 pixels in length before the circle is popped onto the end. in the first frame of the main MC put:
----------------------------------------------------------
lineWidth = 0;
setProperty(circleClip, _visible, false);
setProperty(lineClip, _width, lineWidth);
lineWidth++;
----------------------------------------------------------
in frame 2
----------------------------------------------------------
if (lineWidth <100) {
setProperty("lineClip", _width, lineWidth);
lineWidth++;
} else {
setProperty(circleClip, _x, (lineClip._x+lineClip._width));
setProperty(circleClip, _visible, true);
gotoAndPlay(4);
}
----------------------------------------------------------
in frame 3
---------------------------------------------------------
gotoAndPlay(2);
----------------------------------------------------------
in frame 4
----------------------------------------------------------
stop();
----------------------------------------------------------
what this does is:
- makes the circle clip invisible
- starts the line out at 0
- each time the playhead hits frame 2 it increments the line 1 pixel
- when the line reaches 100 pixels in length it makes the circle visible and sets it x coordinate to the end of the line and stops the movie in frame 4.
Thanks a bundle.......
I am off to give it a shot.
I would also like to thank you for the explanation at the end of your reply.....
....what does the 'status' mean under user profile? :p
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.