On Fri, Jul 20, 2007 at 03:03:48PM +0200, Udo Giacomozzi wrote:
> Hello Sandro,
> 
> Friday, July 20, 2007, 2:06:32 AM, you wrote:
> SS>         prepared for applying color transform to border and
> SS> background (but isn't working so the block is
> SS> disabled (need help from Udo most likely
> 
> How can I help?

Set if (0) to if (1) and see what happens with the attached movie.
It seems that the color transform (for which we have no specific
testcases) results in a gray color always (r,g,b flattened).

> 
> SS> +               if ( 0 ) // should be if ! isDynamic to be
> SS> PP-compatible (or is it about device font? to be
> SS> tested)
> 
> Why (!isDynamic) ? Should not make any difference, ie. you can always
> apply cxform to a dynamically created (createTextField) text field.

This is a dumb pp compatibility thing. I think flash coders are happy to
have this feature implemented, but the pp seems immune to color transforms+FSF
applied to dynamic textfield (or device font) colors (including background and
border).

> 
> SS> +                        // Currently disabled due to what looks like a 
> bug in color transform
> 
> Can you explain?

See the attached file and try it out.
(build with makeswf)

--strk;

 ()   ASCII Ribbon Campaign
 /\   Keep it simple! 

createEmptyMovieClip("mc", 1, 0, 0, 0);

with (mc)
{

createTextField("tf1", 1, 10, 10, 400, 20);
tf1.text = "Hello world";
tf1.textColor = 0x000000;
tf1.border = true;
tf1.borderColor = 0x00FF00;
tf1.background = true;
tf1.backgroundColor = 0xFF0000;

createTextField("tf2", 2, 10, 40, 400, 20);
tf2.text = "Hello world";
tf2.textColor = 0x00FF00;
tf2.borderColor = 0x00FFFF;
tf2.background = true;
tf2.backgroundColor = 0xFF00FF;

createTextField("tf3", 3, 10, 70, 400, 20);
tf3.text = "Hello world";
tf3.textColor = 0xFF0000;
tf3.borderColor = 0xFF00FF;
tf3.background = true;
tf3.backgroundColor = 0x00FFFF;

createTextField("tf4", 4, 10, 100, 400, 20);
tf4.border = true;
tf4.background = true;
tf4.text = "Hello world";

createEmptyMovieClip("mc5", 5);
with (mc5)
{
        lineStyle(35, 0xFF0000, 100);
        moveTo(50, 150);
        lineTo(200, 150);
}

};

onEnterFrame = function()
{
        _root.mc._alpha -= 1;
        _root.mc.tf1._alpha -= 1;
};

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

Reply via email to