Letters.swf gemaakt door SMG
//Letters.swf: typ in het enige tekstveld
//Textveld aanmaken
textVeld.x = 50;
textVeld.y = 50;
textVeld.height = 20;
textVeld.width = 15;
textVeld.type = "input";
textVeld.border = true;
textVeld.borderColor = 0x999999;
addChild(textVeld);
array[1] = "0";
array[2] = "1";
array[3] = "2";
array[4] = "3";
array[5] = "4";
array[6] = "5";
array[7] = "6";
array[8] = "7";
array[9] = "8";
array[10] = "9";
array[11] = "A";
array[12] = "B";
array[13] = "C";
array[14] = "D";
array[15] = "E";
array[16] = "F";
//tekstkleur bepalen
kleurcode = "0x";
//x en y bepalen
//grootte tekst bepalen
//tekstformat opbouwen
myFormat.color = kleurcode;
myFormat.font = "Arial";
myFormat.size = grootte;
//veld weergeven
t.text = textVeld.text;
t.setTextFormat(myFormat);
t.x = xas;
t.y = yas;
addChild(t);
textVeld.text = "";
raster.graphics.lineStyle(1, ui, 0.5);
raster
.graphics.moveTo(Math.ceil(Math.random()*550), Math.ceil(Math.random()*400));
raster
.graphics.lineTo(Math.ceil(Math.random()*550), Math.ceil(Math.random()*400));
addChild(raster);
}
}