[Top][All Lists]

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

Re: [Gnash-commit] /srv/bzr/gnash/trunk r10032: Tests for missing Transf

From: strk
Subject: Re: [Gnash-commit] /srv/bzr/gnash/trunk r10032: Tests for missing Transform elements.
Date: Tue, 21 Oct 2008 16:21:41 +0200

On Tue, Oct 21, 2008 at 03:37:16PM +0200, Benjamin Wolsey wrote:

> +// Concatenated transform. Does this make any sense?
> +
> +conc1 = _root.createEmptyMovieClip("conc1", getNextHighestDepth());
> +conc2 = conc1.createEmptyMovieClip("conc2", getNextHighestDepth());
> +
> +conc1._x = 1.5;
> +conc2._x = 0.3;
> +xcheck_equals(conc1.transform.concatenatedMatrix.toString(), 
> "(a=0.993750035762787, b=0, c=0, d=0.993750035762787, tx=1.5, ty=2)");
> +xcheck_equals(conc2.transform.concatenatedMatrix.toString(), 
> "(a=0.993750035762787, b=0, c=0, d=0.993750035762787, tx=1.75, ty=2)");
> +conc2._width = 3;
> +conc1._height = 0.6;
> +xcheck_equals(conc1.transform.concatenatedMatrix.toString(), "(a=0, b=0, 
> c=0, d=0, tx=1.5, ty=2)");
> +xcheck_equals(conc2.transform.concatenatedMatrix.toString(), "(a=0, b=0, 
> c=0, d=0, tx=1.5, ty=2)");

Here you killed the matrix by setting _width or _height of a charactr with null 
You should get the same behaviour by only setting either _width or _height, no 
to set both. Don't ask me why.
Actually, you may want to try setting _rotation and see if it has the same 
effect (I don't think so).

The 1.75 value above I'm not sure if it makes sense.
I'd try drawing something in those clips before messing with 'transform', if 
the test
is focused on 'transform'.


reply via email to

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