var mypc:MovieClip = _root.createEmptyMovieClip("mypc", 0);
for (var i = 0; i <=6; i++)
{
var mypcmuch:MovieClip =mypc.createEmptyMovieClip("mypc"+i, mypc.getNextHighestDepth());
mypcmuch.loadMovie("00"+i+".jpg");//我的图片格式
}
var mymask:MovieClip =createEmptyMovieClip("mymask",1);
var mymaskmuch:MovieClip =mymask.createEmptyMovieClip("mymaskmuch",mymask.getNextHighestDepth());
with (mymaskmuch)
{
beginFill(0x000000, 100);
lineStyle(0, 0x000000, 0);
moveTo(0, 0);
lineTo(Stage.width, 0);
lineTo(Stage.width, Stage.height / 10);
lineTo(0, Stage.height / 10);
endFill();
}
var mymaskmuchHeight:Number =mymask.mymaskmuch._height;
var DESCENDING = 3;
for (var j=0; j<10; j++)
{
var mymaskmuchmuch:MovieClip =mymask.mymaskmuch.duplicateMovieClip("mymaskmuch"+j,j+8);
mymaskmuchmuch._x =mymask.mymaskmuch._x;
mymaskmuchmuch._y =mymask.mymaskmuch._y + j* mymaskmuchHeight;
}
mymask.mymaskmuch.removeMovieClip();
mymask.onPress = function() {
Mouse.hide();
for (var k= 0; k<=10; k++)
{
var temp_mc:MovieClip =mymask["mymaskmuch"+k];
temp_mc.onEnterFrame = function() {
this._height-=DESCENDING;
if (this._height==0) {
this._height=mymaskmuchHeight;
myswapDepths()
delete this.onEnterFrame;
}
Mouse.show();
};
};
};
mypc.setMask(mymask);
function myswapDepths(){
for(var i=6; i>=0; i--) {
mypc["mypc"+i].swapDepths(random(7))
};
};