flash mask controlled by user
flash mask controlled by user
Out of context: Reply #2
- Started
- Last post
- 6 Responses
- F_180
make a movie clip (whatver you want) in your first frame.
then, attach this to the clip
onClipEvent (load) {
_root.createEmptyMovieClip('squa... 0);
function drawSquare() {
x = _root._xmouse;
y = _root._ymouse;
with (_root.square) {
//clear();
moveTo(x-30, y-30);
beginFill(0x000088);
lineTo(x+30, y-30);
lineTo(x+30, y+30);
lineTo(x-30, y+30);
endFill();
}
}
this.setMask(_root.square);
}
onClipEvent (mouseMove) {
drawSquare();
updateAfterEvent();
}thats it....one frame.
see what happens when you un-comment the "clear();" line