gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: [Gnash-commit] gnash ChangeLog server/sprite_instance.cpp


From: Udo Giacomozzi
Subject: Re[2]: [Gnash-commit] gnash ChangeLog server/sprite_instance.cpp
Date: Tue, 8 Jan 2008 09:53:23 +0100

Hello zou,

Tuesday, January 8, 2008, 2:40:23 AM, you wrote:
zl> I checked swfdec/test/image/mask-textfield-6.swf. It tests that
zl> TextField instances could be a mask(not maskee). Actually the
zl> behaviour when  setMask work against TextField instance is odd to me,
zl> maybe UdoG knows more about it.

Normally you can't use a text field directly as a mask, the movieclip
will remain unmasked (fully visible) and the text field is invisible.

You can, however, place the text field inside a movieclip and use that
movieclip as mask, which will just work as you would expect.

However, it only works with embedded fonts. System fonts (device
fonts) will make the mask empty and thus also the maskee is completely
invisible.


zl> txt.setMask = mc.setMask;
zl> txt.setMask(mc);  // use textFiled instance to mask a sprite instance,
zl> and it does work!

Aren't you masking the text field using a sprite instance here (so
your comment is wrong)?

But confirmed, it gets masked.


zl> while the result of mc.setMask(txt) is not that obvious at the moment.

AFAIK, this call would be ignored.

Udo





reply via email to

[Prev in Thread] Current Thread [Next in Thread]