This content has been marked as final. Show 5 replies
I tried it once and rejected it as performance was too poor. But you
shouldn't take my word for it ...
"Sean Wilson" <firstname.lastname@example.org> wrote in message
>I tried it once and rejected it as performance was too poor. But you
>shouldn't take my word for it ...
I was wondering sometime ago if it was possible too.
What size window / mask did you use?
Maybe for small windows its ok?
> I was wondering sometime ago if it was possible too.
> What size window / mask did you use?
Sorry Richard, but I don't remember. All that I recall is that I tried
and rejected the idea.
> Maybe for small windows its ok?
Maybe. Again, it's probably better to try for yourself and see
I tried it as well once... the file can be downloaded here:
for fun you might want to check out my window with alpha mask too:
* (Long) Note: the scrnXtra function ScreenToImage() that was added by Valentin Schmidt to the scrnXtra (and which is used in the example) has a memory leak in it so don't run the example too long. The function was added to the scrnXtra using the ScreenToFile() function as a quick workaround in the C++ code; so ScreenToFile() could probably be used instead to get the exact same effect without any memory leak. The ScreenToMember() cannot be used as it has a flaw because the TrimWhiteSpace() property of a member is enabled by default and the C++ code does not address this... so any white pixels on the border of the image will be trimmed and there's no way to tell which edge of the image they were trimmed from (AFAIK).
Here's how I achieved an animated window mask:
1) Create a series of 1-bit bitmap images, one for each frame of the animation
2) Place the bitmaps in order in your Cast library
3) Select all the bitmaps
4) Click on a cell in the Score
5) Select the menu item Modify | Cast to Time
6) Select the new sprite span and right-click or Ctrl-click on it (depending on your platform)
7) Select Script... from the contextual menu which appears
8) Paste the following handler in place of the default handler in the Script window:
vMember = sprite(me.spriteNum).member
(the activeWindow).appearanceOptions.mask = vMember
9) Publish your movie as a projector and run it.