Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. conectarNodos = function (mostrar:Boolean):void {
  2. var largo = nodos.length;
  3. var mc, i, j, nodo;
  4. if (mostrar) {
  5. mc = this.createEmptyMovieClip ("lineas", this.getNextHighestDepth ());
  6. mc.lineStyle (.1, 0xEEEEEE);
  7. }
  8. for (i = 0; i < largo; i++) {
  9. nodo = nodos[i];
  10. nodo.conArr = new Array ();
  11. for (j = 0; j < nodos.length; j++) {
  12. if (i != j) {
  13. if (nodo.vision (nodos[j], area)) {
  14. mc.moveTo (nodo._x, nodo._y);
  15. mc.lineTo (nodos[j]._x, nodos[j]._y);
  16. nodo.conArr.push (nodos[j]);
  17. }
  18. }
  19. }
  20. }
  21. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement