class CGraphDisplayNode extends MovieClip { var node, icon; var owner; function CGraphDisplayNode() { reattach(); } var nodex, nodey; var graphic; function reattach() { redraw(); if (icon) { if (icon.attributes.attach == 'true') { attachMovie(icon.attributes.uri, 'graphic', 0); } else { createEmptyMovieClip('graphic', 0); graphic.loadMovie(icon.attributes.uri); } } } function redraw() { nodex = owner.getAbsoluteX(node.attributes.x); nodey = owner.getAbsoluteY(node.attributes.y); // _x = nodex; _y = nodey; // graphic.redraw(); } var highlighted; function highlight(wValue) { if (wValue == undefined) wValue = highlighted !== true; highlighted = wValue == true; graphic.highlight(wValue); } }