[swfmill] Restoring broken bounding boxes?

Ralf Fuest ralf-fuest at gmx.de
Thu Jun 28 11:25:31 EDT 2007


Hello edA-qa,
there is no build-in function in swfmill to recalculate the bounding
boxes.
But this shouldn't be hard to do in an external program using the way
you described (swf2xml, correct bounds, xml2swf). The program needs to
recalculate the bounding boxes by looking at the edges inside the
DefineShape Tags. Perhaps this could also be done using XSLT.

Ralf

> I have a problem: the Corel SWF exporter I'm using, while setting the
> correct size in the output files, is creating a bounding box larger than
> desired.  I see no option to fix this in Corel (Ver11).
> 
> Now, using swfmill I can easily get at the original size, but I also
> notice the various <bounds> items.  These bounds are larger than they
> need to be to contain the items.
> 
> Is there any way in which I can automatically calculate the correct
> bounds?  (Thus I would convert the SWF to XML, calculate correct bounds,
> modify the XML, convert back to SWF).
> 
> 
> NOTE: Having this additional bounding box makes using the width/height
> variables of a DisplayObject in Flash9 virtually useless.  I also see no
> way in actionscript to modify the bounding box of loaded clips.




More information about the swfmill mailing list