? ( !). |
Adobe Flash, Sothink SWF Quicker , AS2.
CS6. . - .
: ( ):
1. AS2, 700/400 px
2. 1 : Ctrl +R > >
3. = =, . .
4. . , == : =myPic=

5. ( ):
function takePic()
{
var picHolder = this.createEmptyMovieClip("picHol", 0);
var dep = 0;
var i = 0;
while (i < picHeight / bSize)
{
var k = 0;
while (k < picWidth / bSize)
{
var block = picHolder.createEmptyMovieClip("block" + i + k, dep);
++dep;
with (block)
{
attachMovie("myPic", "myPic", 0);
createEmptyMovieClip("mask", 1);
mask._x = k * bSize;
mask._y = i * bSize;
mask.beginFill(0, 100);
mask.lineTo(bSize, 0);
mask.lineTo(bSize, bSize);
mask.lineTo(0, bSize);
mask.lineTo(0, 0);
mask.endFill();
myPic.setMask(block.mask);
_x = picWidth - mask._x;
_y = picHeight - mask._y;
} // End of with
block.intervalID = setInterval(blockMover, dep * 200 + 1000, block);
++k;
} // end while
++i;
} // end while
} // End of the function
function blockMover(clip)
{
clearInterval(clip.intervalID);
clip.targetX = clip.targetY = 0;
clip.onEnterFrame = function ()
{
this.dist = Math.sqrt(Math.pow(this.targetX - this._x, 2) + Math.pow(this.targetY - this._y, 2));
if (Math.abs(this.dist) > 1)
{
this._x = this._x + (this.targetX - this._x) / 4;
this._y = this._y + (this.targetY - this._y) / 4;
}
else
{
this._x = this.targetX;
this._y = this.targetY;
delete this.onEnterFrame;
} // end else if
};
} // End of the function
var bSize = 100;
this.createEmptyMovieClip("temp", 0);
this.temp.attachMovie("myPic", "myPic", 0);
var picWidth = this.temp.myPic._width;
var picHeight = this.temp.myPic._height;
removeMovieClip (this.temp);
takePic();
onMouseUp = function ()
{
takePic();
};
6. (Ctrl+Enter).
: "".
7. "" ( , ): : > > ( "") > OK.
8. "". (Ctrl+R) 2. .
9. : "_1" ( > > ) > OK.
10. ( "_1") ""! . () , 110 px ( , ). .
11. . ( ) , , ( ) 130 . (+-) .
12. 220 .
13. 130 220 " ".
14. 130 , "" .
15. , 220- :
stop();
16. " 1" , , . , "_1" "_1". , "" :
17. . , .
, :
"".
18. : "": > > . "". > OK.
19. 3 - Ctrl+R. .
20. "_1". 200- . "". 80 px , - . 600- .
21. : 600- . "", Y = -840 (). 200- 600- " ".
22. " 1!, "_1" "_1! "_1". "" : X = 740, Y = 365.
! . . - . - .
" ":
1 - "" Adobe Flash.
2 - .. 4
...
36 - Adobe Flash AS3
37 - " "
38 - ? ( !).
39 - !
40 - . Adobe Flash.
...
48 - " "
49 - " "
50 - " "
| : | |