-
CODE 레이어 액션
pixel._visible=0;
var pbound=pixel._width-1;
var pinitx=text.char.pixel._x;
var pinity=text.char.pixel._y;
rarr=new Array();
carr=new Array();
num_rows=27;
num_cols=27;
for (row=0; row < num_rows; row++)
{
rarr[row]=pixel._y+(pbound*row);
for (col=0; col < num_cols; col++)
{
carr[col]=pixel._x+(pbound*col);
}
}
_root.control.gotoAndPlay('loop');
stop();
control1 레이어1
dep=0;
rows=0;
cols=0;
stop();
control1 레이어2
function drawMatrix()
{
duplicateMovieClip ('_root.pixel', 'tbar'+dep, dep);
_root['tbar'+dep]._x=_root.carr[cols];
_root['tbar'+dep]._y=_root.rarr[rows];
if(cols < (_root.num_cols-1))
{
cols++;
dep++;
}
else if (rows < (_root.num_rows-1))
{
cols=0;
rows++;
dep++;
}
}
drawMatrix();
play();
control1 레이어3
if (dep < ((_root.num_cols*_root.num_rows)-1))
{
drawMatrix();
this.gotoAndPlay('loop');
}
else
{
this.gotoAndStop(1);
}
'Flash study' 카테고리의 다른 글
lightsmany1 (0) | 2016.05.22 |
---|---|
greatmask (0) | 2016.05.22 |
shake-pic (0) | 2016.05.22 |
디지털 전광판 (0) | 2016.05.22 |
파노라마 (0) | 2016.05.21 |