ESTE ES EL CODIGO DE AJUSTAR IMAGEN A RESOLUCION
// this tells Flash NOT to allow the assets to be scaled
Stage.scaleMode = "noScale";
Stage.align = "TL";
// need to set up a listener object to say when the stage is resized.
var stageListener:Object = new Object();
Stage.addListener(stageListener);
setBackground();
// called when the stage is resized
stageListener.onResize = function() {
setBackground();
}
function setBackground() {
// determine middle
var middleX = Stage.width/-30;
var middleY = Stage.height/-3.07;
// reposition the bkgd to middle
back1._x = middleX;
back1._y = middleY;
// scale background to fit width and height
back1._width = Stage.width;
back1._height = Stage.height;
// see if it grew bigger horizontally or vertically and adjust other to match
// to maintain aspect ratio
back1._xscale > back1._yscale ? back1._yscale = back1._xscale : back1._xscale = back1._yscale;
}
ESTE ES EL CODIGO DE LOS BOTONES FADE IN Y FADE OUT
on (rollOver) {
mc_animado.onEnterFrame = function() {
if (this._currentframe != 20) {
this.nextFrame();
} else {
this.stop();
delete this["onEnterFrame"];
}
};
}
on (rollOut) {
mc_animado.onEnterFrame = function () {
if (this._currentframe != 1) {
this.prevFrame();
}
else {
this.stop();
delete this["onEnterFrame"];
}
};
}
on(release) {
_root.gotoAndPlay("inicio1");
}
