Flash Drawing lines..
- Started
- Last post
- 11 Responses
- tomkat
how do you realize an effect as seen on http://www.tvropa.com/Dogville/D… ?? Where the lines are being drawn on the screen..
I know there are several ways to to it, but how do you.. masking, scripting, whatever..?
- tomkat0
i don't mean the type on the splash.. the city being drawn..
- stewart0
API drawing with Flash actionscript? search google...
- mrdobolina0
masking
- nuggler0
Start with the full drawing and slowly erase it, frame by frame with each piece on its own layer. Then reverse the whole thing.
I've done several like this;
http://jbradleyjohnson.com/e/her…
http://jbradleyjohnson.com/e/sho…
http://jbradleyjohnson.com/one/b…
- unfittoprint0
I don't think it's scripting.
In this case you take the finished drawing, insert new frame, erase a bit, insert new frame, earse a bit, etc....
Then reverse frames and voilá.
- tomkat0
hmm .. thanks guys.. thats probably how i wouldve done it..
- mrdobolina0
unfittoprint, you know actionscript very intently. why would anyone use the API to draw?
Im confused.
- unfittoprint0
for a lot of reasons.
Design masks for drop down menus for example, that have their content taken from databases. Also dynamic paths, changed by the user or some other function, simulate 3D environments, letting user 'draw' on your site and then save it [by saving its node's xy positions]. Altough it's not one of those tools you'll use often, I think it's great for less conventional works.
- enobrev0
was thinking..
would probably be a technical pain in the ass, but you could probably draw something out in a vector program and export it to svg.
parse that svg for coordinates and commands.
write a function that takes a list or parsed svg coordinates and draws a tiny part of it every x milliseconds.
2 primary issues i think are parsing the svg as it can get pretty thick, and figuring all points between the points for incremental drawing.
But then you could essentiall have anything draw before your eyes by feeding it an svg file.
wish i had time to attempt it.
- unfittoprint0
I believe so enobrev. If it's xy coordinates, radius and angles we're talking, it could be done, for sure. Is there any PHP module / function that allows svg parsing?
That would be mighty interesting...
- mrdobolina0
thanks for your response unfit.