Ciao a tutti,
ho un problema non riesco a ingrandire verticalmente (con _width o _xscale) un bottone con testo creato dinamicamente, mentre funziona con _yscale.
Poi ho una funzione che parte al rollover che cerca di ingrandire il bottone e quindi il testo.
Questo è il codice che crea il bottone che ho preso da qui tempo fa':
_root.b_web1d = createButton3("prova", this, 110, _root.xpos, 34+_root.ypos, 10, 10, "prova", 0xFFCC00,1);
function createButton3(name, where, depth, x, y, width, height, text, colore, lungs ){
mc = _root.createEmptyMovieClip(prova, depth);
mc._y = y;
mc._alpha=100
//mc.moveTo(40, 560);
mc.lineStyle(1, 0xAAAAAA, 100);
//mc.beginFill(colore, 100);
/* mc.lineTo(width, 0);
mc.lineTo(width, height);
mc.lineTo(0, height);
mc.lineTo(0, 0);
*/
//mc.endFill();
mc.createTextField("txt", 1, 0, 0, 1, 1);
mc.txt.autoSize = true;
mc.txt.text = text;
mc.txt.selectable = false;
mc.txt.html = true;
//mc.txt.embedFonts = true;
mc.txt.type = "static"
myf = new TextFormat();
myf.align = "right";
myf.size = 18;
myf.bold = true;
myf.color = 0xAAAAAA;
myf.html = true;
myf.font = "Verdana";
mc.txt.setTextFormat(myf);
mc.txt._x = 0; //Math.round((width / 2) - (mc.txt._width / 2));
mc.txt._y = 0
mc._visible=1;
mc._xscale=100;
mc._yscale=100;
mc._alpha=100;
mc._x=(x+819)-_root.lungy;
return mc;
}