hmmm. let’s see. anything you include in the line movie itself will become distorted when you set the height and width, and deciding whether or not to display the jump would be tricky too.
perhaps a colour code would be easier. how about having each line be a different colour? you could have them run through an array of rgb values.
here’s some adapted code:
// colour array
colour = new Array();
colour = [255,0,0];
colour = [0,255,0];
colour = [0,0,255];
colour = [102,102,0];
colour = [102,0,102];
colour = [0,102,102];
// etc. until you feel you have enough colours.
// create colour object if necessary
if(!eval(targ).colour) eval(targ).colour = new Color(targ);
// set rgbs
eval(targ).colour.setRGB(colour[index]<<16 | colour[index]<<8 | colour[index]);
_root["line"+j]._y = j*20;
that code will make six copies of the movie “line” and set their colours to each of the values in the array.
if you were to get clever, instead of a static colour array, you could have a system where the colour was decided according to traffic, importance, whatever.
the conditional creation of the colour object in setcolour() is to prevent recreating a colour object for subsequent colour changes. if the colours are only going to be set once upon creation, the conditional part is redundant since you know that there won’t be a colour object and you’ll have to create one.