Ralf Fuest | 10 Apr 2007 22:31
Picon
Picon

Re: Bitmap filter effects on buttons

Hello Brian,
the current swfmill version doesn't support filters and blend modes for
buttons. I've written a patch to add support for this features.
Converting your sample swf to xml and back again worked.

When you want to compile it yourself you'll need an SVN version of the
source code, to get the codegen directory.

Ralf
Attachment (source.xml.patch): text/x-patch, 1090 bytes
_______________________________________________
swfmill mailing list
swfmill@...
http://osflash.org/mailman/listinfo/swfmill_osflash.org
daniel fischer | 10 Apr 2007 23:28

Re: Bitmap filter effects on buttons

Ralf Fuest <ralf-fuest@...> (on Tue, 10 Apr 2007 22:31:27 +0200):

  > the current swfmill version doesn't support filters and blend modes for
  > buttons. I've written a patch to add support for this features.

great, thanks! it's in 0.2.12.4.

got any more of these up your sleeve?

-dan

--

-- 
http://0xDF.com/
http://iterative.org/
Brian Williams | 11 Apr 2007 03:55
Picon

Re: Bitmap filter effects on buttons

Thanks!  I tried out 0.2.12.4 and it works for many of my buttons, but I found one which it doesn't like.  I've attached a sample swf and fla, and the output from the parsing.  The difference is that this button has an adjust color filter on it. 

I can probably work around this, but I thought I'd send it along.  Maybe it's another quick fix.

Thanks again.

--Brian


On 4/10/07, daniel fischer <dan-n52v3Af5Srg@public.gmane.org> wrote:
Ralf Fuest < ralf-fuest-Mmb7MZpHnFY@public.gmane.org> (on Tue, 10 Apr 2007 22:31:27 +0200):

  > the current swfmill version doesn't support filters and blend modes for
  > buttons. I've written a patch to add support for this features.

great, thanks! it's in 0.2.12.4.

got any more of these up your sleeve?

-dan


--
http://0xDF.com/
http://iterative.org/

_______________________________________________
swfmill mailing list
swfmill-AOfRjkeVuXpAfugRpC6u6w@public.gmane.org
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Attachment (buttontest.zip): application/zip, 8 KiB
_______________________________________________
swfmill mailing list
swfmill@...
http://osflash.org/mailman/listinfo/swfmill_osflash.org
Ralf Fuest | 12 Apr 2007 02:58
Picon
Picon

Re: Bitmap filter effects on buttons

Hello,
there was an error in the parsing code for color filters, it should work
after the attached patch is applied. And your decision to send in the
file is right, because nobody can fix a bug that isn't known.

More technical stuff:
The end-condition for reading the ColorMatrix was wrong, so 21 instead
of 20 floats were read and that screwed up everything after the matrix.
I decided to add a size attribute to the list tag to make the source.xml
file look less confusing. size==19 for an list with 20 elements doesn't
look right ;). The Convolution filter also uses such a matrix and had a
similar end-condition, so i changed this attribute to an size attribute.
I couldn't check if this works because i don't have flash or an swf file
that contains this filter, but i think so.

Ralf

> Thanks!  I tried out 0.2.12.4 and it works for many of my buttons, but
> I found one which it doesn't like.  I've attached a sample swf and
> fla, and the output from the parsing.  The difference is that this
> button has an adjust color filter on it.  
> 
> I can probably work around this, but I thought I'd send it along.
> Maybe it's another quick fix.
> 
> Thanks again.
> 
> --Brian
Attachment (filters.patch): text/x-patch, 1397 bytes
_______________________________________________
swfmill mailing list
swfmill@...
http://osflash.org/mailman/listinfo/swfmill_osflash.org

Gmane