Let’s say I wanted to dynamically draw a cityscape - just a bunch of straight lines and right angles. But there are lots of x,y coordinates to make the whole thing. Would it possible to put all those coordinates in a text file and then call that from Flash? As in, lineTo(use line 1 of text file, then use line 2, then use line 3) etc.
Is this possible? And if so, what sort of AS is used? And does the text file have to be in a certain formate? (like x,y one per line or on one line separated by parentheses, or . . . ?).
well, the way it all works is that it uses a logical separator(in this case |) to separate the coordinates, so it would be quite difficult to think of a way without using some separator. You can use a different one though, just replace the | with the other character :). I think you should be able to use tenths.
And you’re welcome - I’d done something very similar to this before so it was only a case of modifying it slightly.
Hey that works great! Thanks! Sorry I forgot to mention I was using MX
Question - how can I get it to draw more slowly? Even if I change the frame rate to 0.1 it sort of just appears. I would like the shape to draw itself as the viewer watches. Is it possible to set a drawing rate in AS?