diff --git a/format/swf/Writer.hx b/format/swf/Writer.hx index 8119decb..21bb0829 100644 --- a/format/swf/Writer.hx +++ b/format/swf/Writer.hx @@ -870,6 +870,7 @@ class Writer { if(num < 1 || num > 8) throw "Number of specified morph gradients ("+num+") must be in range 1..8"; + o.writeByte(num); for(grad in gradients) { writeMorphGradient(ver, grad); }