[swfmill] Restoring broken bounding boxes?
edA-qa mort-ora-y
eda-qa at disemia.com
Thu Jun 28 14:36:07 EDT 2007
Okay, my simple solution was to replace all bounds with the size of the
overall SWF file (the size/Rectangle which always appears to be what I
intended in Corel).
I would still like to work on a proper bounds-recalculation (since I'm
not sure simply replacing the bounds with size will give the desired
result always).
Though, for those that are also using Corel 11 to produce the SWF I've
included the transform below (ask for a makefile setup if you want as well)
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml" encoding="UTF-8" indent="yes"/>
<!-- Identity transform -->
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
<xsl:template match="bounds/Rectangle">
<xsl:apply-templates select="//Header/size/Rectangle"/>
</xsl:template>
</xsl:stylesheet>
--
edA-qa mort-ora-y
Idea Architect
http://disemia.com/
Sign: Please digitally sign your emails.
Encrypt: I'm also happy to receive encrypted mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://osflash.org/pipermail/swfmill_osflash.org/attachments/20070628/fd427db5/signature.bin
More information about the swfmill
mailing list