Unused classes gets compiled into swf
i building swc [my.swc] component compc. suppose contain base functionality my.swf
i need include (third party) swc [other.swc] own swc. other swc has reference mx.core.mx_internal , suspect reference in end, when compile my.swf, results in mx classes (mx.*) , spark classes (spark.*) included in my.swf (seen when decompiling)
the difference in size between my.swf with/without other.swc ~180kb.
the difference (when decompiling) my.swc with/without other.swc first has reference mx.core.mx_internal
here compc part ant task:
<compc output="my.swc">
<include-sources dir="${project.root}/${src_root}" includes="*" />
<library-path dir="${project.root}/${libs_dir}" includes="*" />
</compc>
do know if there problem compiling swc swc?
any other ideas why mx , spark classes included?
thanks!
should add if build swf directly other.swc (and use same classes in my.swc) result smaller file. problem doesn't seem in other.swc
More discussions in ActionScript 3
adobe
Comments
Post a Comment