Código :
import mx.transitions.Tween;
//----------------------------------------------------
var func = mx.transitions.easing.Regular.easeOut;
var myFormat:TextFormat = new TextFormat();
myFormat.align = "center";
texto.text = "PO";
texto.setTextFormat(myFormat);
menu.sopen = false;
menu.onPress = function (){
if(!this.sopen){
new Twenn(menu, "_width", func, 200, 300, 5, true);
this.sopen = true;
texto.text = "teletubies";
texto.setTextFormat(myFormat);
}else{
new Twenn(menu, "_width", func, 300, 200, 5, true);
this.sopen = false;
texto.text = "PO";
texto.setTextFormat(myFormat);
}
}
y este es el codigo del ejemplo
Código :
import mx.transitions.Tween;
// -----------------------
var func = mx.transitions.easing.Regular.easeOut;
var myFormat:TextFormat = new TextFormat();
myFormat.align = "center";
texto.text = "OPEN MENU";
texto.setTextFormat(myFormat);
menu.sopen = false;
menu.onPress = function() {
if (!this.sopen) {
new Tween(menu, "_width", func, 108, 388, .5, true);
this.sopen = true;
texto.text = "CLOSE MENU";
texto.setTextFormat(myFormat);
} else {
new Tween(menu, "_width", func, 388, 108, .5, true);
this.sopen = false;
texto.text = "OPEN MENU";
texto.setTextFormat(myFormat);
}
}
como veran solo eh cambiado texto del txt.... ojala y me puedan ayudar claveros, siempre lo an hecho...un saludo y gracias de antemano.......
