
25.10.2003, 23:43
|
|
Регистрация: Jul 2002
Адрес: Russia Federation Moscow
Сообщений: 779
|
_root.createEmptyMovieClip("mc", 1);
with (_root.mc) {
beginFill(0x000000, 100);
for (i=0; i<=100; i++) {
x = random(550);
y = random(400);
lineTo(x, y);
}
endFill();
}
_root.createEmptyMovieClip("msk", 2);
with (_root.msk) {
beginFill(0x000000, 100);
moveTo(50, 0);
curveTo(100, 0, 100, 50);
curveTo(100, 100, 50, 100);
curveTo(0, 100, 0, 50);
curveTo(0, 0, 50, 0);
}
_root.mc.setMask(_root.msk);
_root.msk.onPress = function() {
this.startDrag(false);
_root.msk.onMouseUp = function() {
this.stopDrag();
};
};
Вот и всё!
|