swf-reader
swf-reader copied to clipboard
Background RGB to Hex wrongly converted
Correct computing: red*65536 + green*256 + blue
Line:
swf.backgroundColor = '#' + (tag.RGB[0]*65536 + tag.RGB[1]*256 + tag.RGB[0]).toString(16);
Should be:
swf.backgroundColor = '#' + (tag.RGB[0]*65536 + tag.RGB[1]*256 + tag.RGB[2]).toString(16);