On Sat, Oct 01, 2005 at 04:07:22PM +0200, Philippe Maurer wrote:
> I am facing a problem with the swfcombine tool with Flash MX 2004
> components.
> I think the file get corrupted and the AS2 library settings got lost.
>
> Here are two samples:
> Source file
> http://ns2488.ovh.net/~webatome/dev/source.swf
> Combined file
> http://ns2488.ovh.net/~webatome/dev/combined.swf
>
>
> With swfdump I can see that the combined file is in flash 6.
The combining process breaks the actionscript. That's a known problem,
which is (unfortunately) not fixable.
Consider the following actionscript code in a file called file1.swf:
_root.myvariable = 3;
If the file is combined (e.g. non-merging stack (-T)), then myvariable is no
longer inside the _root clip, but one level below
(_root.Frame00.myvariable).
As the ActionScript in the file still references the variable as
_root.myvariable, the code doesn't work anymore.
A workaround is to always use relative variables (just "myvariable"
instead of "_root.myvariable"). Another option is to always use the -m
option when calling swfcombine, so that the files are all on the same
level.
Greetings
Matthias
_______________________________________________
Swftools-common mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/swftools-common