Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
ryanhamilton webforumsuser@macromedia.com #1
Animating Lines
Hello,
I found a couple threads in the flashmxfiles.com Forum about making lines animate, but if doesn't seem to work out for me. I looked here in this forum but didn't see anything that helped.
I have a keyframe on the main timeline and on that frame I put the following code.
Code:
_root.createEmptyMovieClip("leftLine",5);
leftLine.lineStyle(0,0x806365,100);
startX = 30;
startY = 500;
endY = 140;
leftLine.moveTo(startX,startY);
function drawLine(endY) {
* *startY -= 3;
* *_root.leftline.lineTo(startX, startY);
* *if (startY == endY) clearInterval(draw);
}
draw = setInterval(drawLine, 5, endY);
My idea is to have a line that grows up on the left (30,500) and one that will do the same on the right (770,500)
When they stop @ the Y position of 140, I plan to have 2 horizontal lines
draw out (one at the top of the previous line and one at the bottom) untill they reach an X position of 400.
The right would do the same, but draw towards the left.
When all is complete I should have a rectangle outline.
I am just trying to get the one line drawn on the left for the moment.
Thanks for the help
ryanhamilton webforumsuser@macromedia.com Guest
-
Vertical lines in AI graphics PDF as broken lines?
I have an InDesign CS1 doc that has an Illustrator CS1 EPS file placed in it. The graphic is a barcode for a coupon. It is only many vertical lines,... -
Acrobat 6 changes solid lines to dashed lines
Is Adobe planning to provide a fix for the problem where solid lines will display as dashed lines when viewed in Acrobat 6? If yes, when? Thank... -
read lines of file without parsing the lines
Hello! Currently i have a logfile which tracks a certain feature on my server. Every time the feature accurs my script appends a line in the... -
Animating with GD?
Is it possible to create GIF animations using GD? //Simon -
[PHP] Animating with GD?
> >Not anymore due to the Unisys LZW patent issues.. GD has no support for There are NO patent for software in France (so we could use gif...



Reply With Quote

