Ver Mensaje Individual
  #1 (permalink)  
Antiguo 23/01/2004, 08:49
rodrmora79
 
Fecha de Ingreso: abril-2003
Ubicación: Chile
Mensajes: 59
Antigüedad: 21 años
Puntos: 0
Solo Maestros.. por favor.. AS..Avanzado

Urgente necesito que me ayuden con lo siguiente...

function Point(x, y) {
this.x = x;
this.y = y;
}
function Node(lat, long, label, pos, url, status) {
var latRange = (botLat-topLat);
var longRange = (botLong-topLong);
var latBase = (lat-topLat);
var longBase = (long-topLong);
var latP = (latBase/latRange);
var longP = (longBase/longRange);
this.x = Stage.width*longP;
this.y = Stage.height*latP;
this.label = label;
this.pos = pos;
this.url = url;
this.status = status;
nodeName = label;
_root.createEmptyMovieClip(nodeName, nodeDepth++);
this.clip = _root[nodeName];
this.clip.parent = this;
Mouse.addListener(this.clip);
this.clip.onRollOver = over;
this.clip.onRollOut = out;
this.clip.onPress = function() {
this.startDrag(this.clip);
texto = "";
texto2 = "";
texto3 = "";
texto = "Actualizando posición"
texto2 = this;
};
this.clip.onRelease = function() {
this.stopDrag();
texto = "";
texto2 = "";
texto = "Ultima Actualización. . .";
texto3 = label + " - x , y = " + _xmouse + " , " + _ymouse;
};
}

function over() {
this.parent.draw(1);
}
function out() {
this.parent.draw(0);
}
function goToURL() {
//getURL(this.parent.url, "_blank");
}
function Link(from, to, value, url, bw) {
var col;
var hsize;
var mapWidth;
var leftIn;
var rightIn;
var leftOut;
var rightOut;
col = fgColor;
this.from = nodes[from];
this.to = nodes[to];
this.value = parseFloat(value);
//this.url = url;
this.bw = parseInt(bw);
var i = 0;
while (i<aEntries.length) {
if ((this.value>aEntries[i].min) && (this.value<=aEntries[i].max)) {
this.color = aEntries[i].color;
break;
}
i++;
}
linkName = linkName+"a";
_root.createEmptyMovieClip(linkName, linkDepth++);
this.clip = _root[linkName];
this.clip.parent = this;
Mouse.addListener(this.clip);
// linea
with (this) {
if (from.x>to.x) {
hsize = from.x-to.x;
} else {
hsize = to.x-from.x;
}
mapWidth = Stage.width;
clip.clear();
// Crea linea entre dos puntos
clip.moveTo(from.x, from.y);
clip.lineStyle(1, col);
clip.lineTo(to.x, to.y);
// Termina creacion de linea
this.clip.onRelease = function(){
texto3 = this;
}
}
//this.clip.onRollOver = over;
//this.clip.onRollOut = out;
//this.clip.onPress = goToURL;
}


lo que hace este codigo, es crear circulos y lineas que la unen segun su circulo madre... lo que necesito es que cuando mueva los circulos las lineas lo sigan...no importanto la cantidad de lineas que llegue a un circulo...

por favor es URGENTE...

Solo Maestros...

De antemano muchas gracias.
__________________
Rodrigo A. Morales G.
Desarrollador Web