[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] SWFCOMBINE and actionscript 2.0
From: |
Matthias Kramm |
Subject: |
Re: [Swftools-common] SWFCOMBINE and actionscript 2.0 |
Date: |
Sun, 2 Oct 2005 10:01:56 +0200 |
User-agent: |
Mutt/1.5.6i |
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