aqui os dejo mi codigo, un saludo y gracias por adlantado.
ese.flayer1.mc1.loadMovie("flayers/flayer1.jpg", 1);// llamada a flayer 1
ese.flayer2.mc2.loadMovie("flayers/flayer2.jpg", 1);// llamada a flayer 2
ese.flayer3.mc3.loadMovie("flayers/flayer3.jpg", 1);// llamada a flayer 3
ese.flayer4.mc4.loadMovie("flayers/flayer4.jpg", 1);// llamada a flayer 4
ese.flayer5.mc5.loadMovie("flayers/flayer5.jpg", 1);// llamada a flayer 5
ese.flayer6.mc6.loadMovie("flayers/flayer6.jpg", 1);// llamada a flayer 6
ese.flayer1.onPress = function() {
printAsBitmap("0", "bframe");
}
//cuando presiona el flayer 1 se escala
ese.flayer1.onRollOver = function(){
this.onEnterFrame = function() {
if (this._xscale < 200) {
this._xscale = this._yscale += 5;
}
else {
this._xscale = this._yscale = 200;
delete this.onEnterFrame;
}
};
{
_root.profundidad++;
this.swapDepths(_root.profundidad);
};
};
// Cuando suelto el flayer 1, vuelve a posicion final
ese.flayer1.onRollOut = function(){
this.onEnterFrame = function() {
if (this._xscale > 100) {
this._xscale = this._yscale -= 5;
}
else {
this._xscale = this._yscale = 100;
delete this.onEnterFrame;
}
};
};
//cuando presiona el flayer 2 se escala
ese.flayer2.onRollOver = function(){
this.onEnterFrame = function() {
if (this._xscale < 200) {
this._xscale = this._yscale += 5;
}
else {
this._xscale = this._yscale = 200;
delete this.onEnterFrame;
}
};
{
_root.profundidad++;
this.swapDepths(_root.profundidad);
};
};
// Cuando suelto el flayer 2, vuelve a posicion final
ese.flayer2.onRollOut = function(){
this.onEnterFrame = function() {
if (this._xscale > 100) {
this._xscale = this._yscale -= 5;
}
else {
this._xscale = this._yscale = 100;
delete this.onEnterFrame;
}
};
};
//cuando presiona el flayer 3 se escala
ese.flayer3.onRollOver = function(){
this.onEnterFrame = function() {
if (this._xscale < 200) {
this._xscale = this._yscale += 5;
}
else {
this._xscale = this._yscale = 200;
delete this.onEnterFrame;
}
};
{
_root.profundidad++;
this.swapDepths(_root.profundidad);
};
};
// Cuando suelto el flayer 3, vuelve a posicion final
ese.flayer3.onRollOut = function(){
this.onEnterFrame = function() {
if (this._xscale > 100) {
this._xscale = this._yscale -= 5;
}
else {
this._xscale = this._yscale = 100;
delete this.onEnterFrame;
}
};
};
//cuando presiona el flayer 4 se escala
ese.flayer4.onRollOver = function(){
this.onEnterFrame = function() {
if (this._xscale < 200) {
this._xscale = this._yscale += 5;
}
else {
this._xscale = this._yscale = 200;
delete this.onEnterFrame;
}
};
{
_root.profundidad++;
this.swapDepths(_root.profundidad);
};
};
// Cuando suelto el flayer 4, vuelve a posicion final
ese.flayer4.onRollOut = function(){
this.onEnterFrame = function() {
if (this._xscale > 100) {
this._xscale = this._yscale -= 5;
}
else {
this._xscale = this._yscale = 100;
delete this.onEnterFrame;
}
};
};
//cuando presiona el flayer 5 se escala
ese.flayer5.onRollOver = function(){
this.onEnterFrame = function() {
if (this._xscale < 200) {
this._xscale = this._yscale += 5;
}
else {
this._xscale = this._yscale = 200;
delete this.onEnterFrame;
}
};
{
_root.profundidad++;
this.swapDepths(_root.profundidad);
};
};
// Cuando suelto el flayer 5, vuelve a posicion final
ese.flayer5.onRollOut = function(){
this.onEnterFrame = function() {
if (this._xscale > 100) {
this._xscale = this._yscale -= 5;
}
else {
this._xscale = this._yscale = 100;
delete this.onEnterFrame;
}
};
};
//cuando presiona el flayer 6 se escala
ese.flayer6.onRollOver = function(){
this.onEnterFrame = function() {
if (this._xscale < 200) {
this._xscale = this._yscale += 5;
}
else {
this._xscale = this._yscale = 200;
delete this.onEnterFrame;
}
};
{
_root.profundidad++;
this.swapDepths(_root.profundidad);
};
};
// Cuando suelto el flayer 6, vuelve a posicion final
ese.flayer6.onRollOut = function(){
this.onEnterFrame = function() {
if (this._xscale > 100) {
this._xscale = this._yscale -= 5;
}
else {
this._xscale = this._yscale = 100;
delete this.onEnterFrame;
}
};
};
