class classes.Labels { var clrFondo, clrLinea, clrTexto, tamanoTexto, tipoGrafia, label_txt, sombraLab, tipo, ancho, alto, __get__colorTexto, __get__colorFondo, __get__colorLinea, __get__tipoTexto, __get__tamTexto, __set__colorFondo, __set__colorLinea, __set__colorTexto, __set__tamTexto, __set__tipoTexto; function Labels() { clrFondo = "0x000000"; clrLinea = "0x000000"; clrTexto = "0xffffff"; tamanoTexto = 11; tipoGrafia = "Arial"; } // End of the function function mostrarLabel(txt, sombra) { label_txt = txt; sombraLab = sombra; var _loc3 = new Object(); _loc3.onMouseMove = function () { _root.caja_txt.texto_txt._x = _root._xmouse + 10; _root.caja_txt.texto_txt._y = _root._ymouse + 10; if (_root.caja_txt.texto_txt._x + _root.caja_txt.texto_txt._width > Stage.width) { _root.caja_txt.texto_txt._x = _root._xmouse - (_root._xmouse + _root.caja_txt.texto_txt._width - Stage.width); } // end if if (_root.caja_txt.texto_txt._y + _root.caja_txt.texto_txt._height > Stage.height) { _root.caja_txt.texto_txt._y = _root._ymouse - (_root._ymouse + _root.caja_txt.texto_txt._height - Stage.height); } // end if _root.sombra_mc._x = _root.caja_txt.texto_txt._x + 5; _root.sombra_mc._y = _root.caja_txt.texto_txt._y + 5; }; Mouse.addListener(_loc3); _root.createEmptyMovieClip("caja_txt", _root.getNextHighestDepth()); _root.caja_txt.createTextField("texto_txt", 1048575, -300, 0, 150, 16); _root.caja_txt.texto_txt.background = true; _root.caja_txt.texto_txt.backgroundColor = clrFondo; _root.caja_txt.texto_txt.border = true; _root.caja_txt.texto_txt.borderColor = clrLinea; _root.caja_txt.texto_txt.html = true; _root.caja_txt.texto_txt.multiline = true; _root.caja_txt.texto_txt.wordWrap = true; _root.caja_txt.texto_txt.selectable = false; _root.caja_txt.texto_txt.autoSize = "center"; _root.caja_txt.texto_txt.htmlText = label_txt; tipo = new TextFormat(); tipo.font = tipoGrafia; tipo.size = tamanoTexto; tipo.color = clrTexto; tipo.align = "center"; _root.caja_txt.texto_txt.setTextFormat(tipo); if (label_txt.length > 50) { ancho = 250; tipo.align = "left"; _root.caja_txt.texto_txt.autoSize = "left"; _root.caja_txt.texto_txt._width = ancho; alto = _root.caja_txt.texto_txt._height - 14; _root.caja_txt.texto_txt.setTextFormat(tipo); } else { ancho = _root.caja_txt.texto_txt._width; alto = _root.caja_txt.texto_txt._height - 14; } // end else if } // End of the function function quitarLabel() { _root.caja_txt.removeMovieClip(); _root.sombra_mc.removeMovieClip(); } // End of the function function set colorTexto(clrTxt) { clrTexto = clrTxt; //return (this.colorTexto()); null; } // End of the function function get colorTexto() { return (clrTexto); } // End of the function function set colorFondo(clrFnd) { clrFondo = clrFnd; //return (this.colorFondo()); null; } // End of the function function get colorFondo() { return (clrFondo); } // End of the function function set colorLinea(clrLin) { clrLinea = clrLin; //return (this.colorLinea()); null; } // End of the function function get colorLinea() { return (clrLinea); } // End of the function function set tipoTexto(tipoTxt) { tipoGrafia = tipoTxt; //return (this.tipoTexto()); null; } // End of the function function get tipoTexto() { return (tipoGrafia); } // End of the function function set tamTexto(tamTxt) { tamanoTexto = tamTxt; //return (this.tamTexto()); null; } // End of the function function get tamTexto() { return (tamanoTexto); } // End of the function } // End of Class