Ver Mensaje Individual
  #4 (permalink)  
Antiguo 27/12/2004, 14:44
Avatar de jahepi
jahepi
Colaborador
 
Fecha de Ingreso: diciembre-2004
Ubicación: Querétaro
Mensajes: 1.124
Antigüedad: 21 años, 10 meses
Puntos: 43
Hola!
Bueno creo que esto te puede servir:

Pega este código en un frame:
Código PHP:
t = new TextFormat();
MovieClip.prototype.Formato = function(propiedad, booleano) {
    
t[propiedad] = booleano;
    
_root.texto.setTextFormat(t);
    if (
t[propiedad]) {
        
this.activo = true;
    } else {
        
this.activo = false;
    }
};
negrita.onPress = function() {
    if (!
this.activo) {
        
bool = true;
    } else {
        
bool = false;
    }
    
this.Formato("bold", bool);
};
cursiva.onPress = function() {
    if (!
this.activo) {
        
bool = true;
    } else {
        
bool = false;
    }
    
this.Formato("italic", bool);
};
subrayado.onPress = function() {
    if (!
this.activo) {
        
bool = true;
    } else {
        
bool = false;
    }
    
this.Formato("underline", bool);
}; 
Crea tu campo de introcuccion de texto con la instancia "texto" y luego creas 3 botones, con las siguientes instancias "negrita", "cursiva" y "subrayado", con eso ya debe de quedar lo que quieres.

Si tienes dudas por favor dime.

Suerte!!!!!!!!!!!!!