Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- conectarNodos = function (mostrar:Boolean):void {
- var largo = nodos.length;
- var mc, i, j, nodo;
- if (mostrar) {
- mc = this.createEmptyMovieClip ("lineas", this.getNextHighestDepth ());
- mc.lineStyle (.1, 0xEEEEEE);
- }
- for (i = 0; i < largo; i++) {
- nodo = nodos[i];
- nodo.conArr = new Array ();
- for (j = 0; j < nodos.length; j++) {
- if (i != j) {
- if (nodo.vision (nodos[j], area)) {
- mc.moveTo (nodo._x, nodo._y);
- mc.lineTo (nodos[j]._x, nodos[j]._y);
- nodo.conArr.push (nodos[j]);
- }
- }
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement