> I belive current GNash renders mask-textfield-6.swf exactly
> as shown by the associated .png

That's  completely possible, and then probably could pass my test
code, since both of them test the same thing(TextField instance as a
mask). Forget it if you are already satisfied :)

(+       // swfdec/test/image/mask-textfield-6.swf shows that setMask
should also
+       // work against TextFields)

I was just not quite agree with the above docs.  setMask()  still
works on sprite instead of TextField instance in that test.  eg:
text.setMask(sprite).

--zou


On Jan 8, 2008 3:43 PM, Sandro Santilli <[EMAIL PROTECTED]> wrote:
> On Tue, Jan 08, 2008 at 09:40:23AM +0800, zou lunkai wrote:
> > +       // swfdec/test/image/mask-textfield-6.swf shows that setMask should 
> > also
> > +       // work against TextFields, we have no tests for other
> > character types so
> > +       // we generalize it for any character.
> > +       boost::intrusive_ptr<character> maskee =
> > ensureType<character>(fn.this_ptr);
> >
> > I checked swfdec/test/image/mask-textfield-6.swf. It tests that
> > TextField instances could be a mask(not maskee). Actually the
> > behaviour when  setMask work against TextField instance is odd to me,
> > maybe UdoG knows more about it.
> > But yes, setMask not only works for sprites,  but also for button
> > instances as I tested.
>
> I belive current GNash renders mask-textfield-6.swf exactly
> as shown by the associated .png
> --strk;
>


_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit

Reply via email to