[swfmill] Bitmap filter effects on buttons

Ralf Fuest ralf-fuest at gmx.de
Wed Apr 11 20:58:28 EDT 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filters.patch
Type: text/x-patch
Size: 1397 bytes
Desc: not available
Url : http://osflash.org/pipermail/swfmill_osflash.org/attachments/20070412/0c370c0b/filters.bin


More information about the swfmill mailing list