Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | creating a mask runtime |
| From: | Markus Joos |
| Date: | Tue, 20 Mar 2001 14:57:33 -0000 |
Hi to all,
Can anyone give me any hints on how to create a mask sort of on the
fly. What I would need is to stamp holes in a mask in order to see an
image (to be precise, parts of it) behind.
My solution for the moment is to duplicate little rectangular black MCs,
spread them all over the image consecutively and later on switch on/off
their visibility.
Unfortunaltly this is
a) a heavy CPU load
b) doesn't work properly
the actionscript looks like this:
for (y=0; y <60; y++) {
for (x=0; x <80; x++) {
point.duplicateMovieClip( "point"+string(x)+string(y), x+y*80)
setProperty("point"+string(x)+string(y),_y, y*10);
setProperty("point"+string(x)+string(y),_x, x*10);
}
}
I would greatly appreciate any ideas or other solutions.
Thanks in advance
Markus
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

