function Pass(id)
{
_root.createEmptyMovieClip("mask", -1);
_root.createEmptyMovieClip("pic_new", -2);
_root.createEmptyMovieClip("pic_old", -3);
old_p = picA.pop();
picA.push("pic" + id);
pic_old.attachMovie(old_p, old_p, 1);
pic_new.attachMovie("pic" + id, pic, 1);
PassEffect(pic_new, mask);
} // End of the function
function PassEffect(pic, mask)
{
pic.setMask(mask);
switch (Math.floor(Math.random() * 7))
{
case 0:
{
for (i = 0; i < 7; i++)
{
for (j = 0; j < 6; j++)
{
var _l2 = mask.attachMovie("Cir", "Cir" + i * 10 + j, i * 10 + j);
Size_set(_l2, 20, 20);
_l2._x = 20 + i * 60;
_l2._y = 20 + j * 60;
_l2.onEnterFrame = function ()
{
if (this._width < 180)
{
this._width = this._height = this._height + 5;
}
else
{
delete this["onEnterFrame"];
} // end if
};
} // end of for
} // end of for
break;
}
case 1:
{
_l2 = mask.attachMovie("Rec", Rec, 1);
Size_set(_l2, Stage.width / 10, Stage.height / 10);
_l2._x = Stage.width / 2;
_l2._y = Stage.height / 2;
_l2.onEnterFrame = function ()
{
if (Stage.width > this._width)
{
this._width = this._width + (Stage.width - this._width) * 0.300000;
this._height = this._height + (Stage.height - this._height) * 0.300000;
}
else
{
delete this["onEnterFrame"];
} // end if
};
break;
}
case 2:
{
_l2 = mask.attachMovie("Rec", "Rec1", 1);
Size_set(_l2, Stage.width + 10, Stage.height + 10);
_l2._x = -_l2._width;
_l2._y = -_l2._height;
_l2.onEnterFrame = function ()
{
this._x = this._x + (Stage.width / 2 - this._x) * 0.300000;
this._y = this._y + (Stage.height / 2 - this._y) * 0.300000;
};
break;
}
case 3:
{
_l2 = mask.attachMovie("Rec", "Rec1", 1);
Size_set(_l2, Stage.width, Stage.height + 10);
_l2._x = -_l2._width / 2;
_l2._y = Stage.height / 2;
_l2.onEnterFrame = function ()
{
if (Stage.width / 2 > this._x)
{
this._x = this._x + 15;
}
else
{
delete this["onEnterFrame"];
} // end if
};
_l2 = mask.attachMovie("Rec", "Rec2", 2);
Size_set(_l2, Stage.width, Stage.height + 10);
_l2._x = Stage.width + _l2._width / 2;
_l2._y = Stage.height / 2;
_l2.onEnterFrame = function ()
{
if (this._x > 0)
{
this._x = this._x - 15;
}
else
{
delete this["onEnterFrame"];
} // end if
};
break;
}
case 4:
{
if (Math.random() <= 0.500000)
{
var _l4 = 45;
}
else
{
_l4 = -45;
} // end if
(i = -10, j = 0);
while (i < 30)
{
_l2 = mask.attachMovie("Rec", "Rec" + j, j);
Size_set(_l2, 0, Stage.height * 2);
_l2._x = _l2._width / 2 + i * 20;
_l2._y = Stage.height / 2;
_l2._rotation = _l4;
_l2.delay = j;
_l2.dt = 0;
_l2.onEnterFrame = function ()
{
if (this.dt < this.delay)
{
this.dt = this.dt + 3;
}
else if (this._xscale < 30)
{
this._xscale = this._xscale + 2;
}
else
{
delete this["onEnterFrame"];
} // end if
};
i++;
j++;
} // end while
break;
}
case 5:
{
if (Math.random() <= 0.500000)
{
for (i = 0; i < 45; i++)
{
_l2 = mask.attachMovie("Rec", "Rec" + i, i);
Size_set(_l2, 0, Stage.height + 10);
_l2._x = i * 10;
_l2._y = Stage.height / 2;
_l2.delay = i;
_l2.dt = 0;
_l2.onEnterFrame = function ()
{
if (this.dt < this.delay)
{
this.dt = this.dt + 3;
}
else if (this._xscale < 30)
{
this._xscale = this._xscale + 2;
}
else
{
delete this["onEnterFrame"];
} // end if
};
} // end of for
}
else
{
for (i = 0; i < 30; i++)
{
_l2 = mask.attachMovie("Rec", "Rec" + i, i);
Size_set(_l2, Stage.width + 10, 0);
_l2._x = Stage.width / 2;
_l2._y = i * 10;
_l2.delay = i;
_l2.dt = 0;
_l2.onEnterFrame = function ()
{
if (this.dt < this.delay)
{
this.dt = this.dt + 3;
}
else if (this._yscale < 30)
{
this._yscale = this._yscale + 2;
}
else
{
delete this["onEnterFrame"];
} // end if
};
} // end of for
} // end if
break;
}
case 6:
{
for (i = 0; i < 45; i++)
{
_l2 = mask.attachMovie("Rec", "Rec" + i, i);
Size_set(_l2, 10, Stage.height + 50);
_l2._x = _l2._width / 2 + i * _l2._width;
_l2._y = -_l2._height + Math.random() * 50;
_l2.onEnterFrame = function ()
{
if (Stage.height / 2 > this._y)
{
this._y = this._y + 20;
}
else
{
delete this["onEnterFrame"];
} // end if
};
} // end of for
}
} // End of switch
} // End of the function
function Size_set(obj, w, h)
{
obj._width = w;
obj._height = h;
} // End of the function
function wang()
{
if (time >= 0)
{
time--;
}
else
{
if (_root.code < 5)
{
_root.code++;
}
else
{
_root.code = 1;
} // end if
Pass(_root.code);
time = tn;
} // end if
} // End of the function
getURL("FSCommand:allowscale", false);
_root.createEmptyMovieClip("bg_mc", 1);
var bg = bg_mc.attachMovie("bg", bg, 1);
bg._y = Stage.height - bg._height;
bg._x = Stage.width - bg._width;
_root.createEmptyMovieClip("my_mc", 2);
var lmc = my_mc.attachMovie("mc", mc, 1);
lmc._y = Stage.height - lmc._height;
lmc._x = old_x = Stage.width - 150;
_root.createEmptyMovieClip("btn_mc", 3);
var i = 1;
while (i <= 5)
{
var btn = _root.btn_mc.attachMovie("btn", "btn" + i, i);
btn.bb = i;
btn.txt.text = i;
btn._y = Stage.height - btn._height;
btn._x = Stage.width - (6 - i) * btn._width;
btn.onRelease = function ()
{
_root.code = this._name.charAt(this._name.length - 1);
Pass(_root.code);
time = tn;
};
btn.onRollOver = function ()
{
this.gotoAndStop(2);
};
btn.onRollOut = function ()
{
this.gotoAndStop(1);
};
btn.onEnterFrame = function ()
{
if (this.bb == _root.code)
{
this.gotoAndStop(2);
}
else
{
this.gotoAndStop(1);
} // end if
};
i++;
} // end while
_root.createEmptyMovieClip("line_mc", 4);
with (line_mc)
{
moveTo(0, 0);
lineStyle(3, 3355409, 100);
lineTo(Stage.width, 0);
lineTo(Stage.width, Stage.height);
lineTo(0, Stage.height);
lineTo(0, 0);
} // End of with
var picA = new Array("pic1");
_root.attachMovie("pic1", pic, -3);
var tn = 20;
var time = tn;
_root.code = 1;
var num = setInterval(wang, 100);