class CGraphDisplayLink extends MovieClip { var link, nodex, nodey, edge; var owner; function CGraphDisplayLink() { highlighted = false; reattach(); } var nodexx, nodexy, nodeyx, nodeyy, linkx, linky; var graphic; function reattach() { redraw(); if (edge) { if (edge.attributes.attach == 'true') { attachMovie(edge.attributes.uri, 'graphic', 0); } else { createEmptyMovieClip('graphic', 0); graphic.loadMovie(edge.attributes.uri); } } } function redraw() { nodexx = owner.getAbsoluteX(nodex.attributes.x); nodexy = owner.getAbsoluteY(nodex.attributes.y); nodeyx = owner.getAbsoluteX(nodey.attributes.x); nodeyy = owner.getAbsoluteY(nodey.attributes.y); linkx = owner.getAbsoluteX(link.attributes.x); linky = owner.getAbsoluteY(link.attributes.y); // _x = nodexx; _y = nodexy; // graphic.redraw(); } var highlighted; function highlight(wValue) { if (wValue == undefined) wValue = highlighted != true; highlighted = wValue; graphic.highlight(wValue); } }