[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Swftools-common] SWFCOMBINE and actionscript 2.0
From: |
Philippe Maurer |
Subject: |
RE: [Swftools-common] SWFCOMBINE and actionscript 2.0 |
Date: |
Mon, 3 Oct 2005 08:59:44 +0200 |
Hi Matthias,
The -m option solve my problem.
The MX 2004 components are working correctly in the combined swf.
Thanks for your help.
Philippe
-----Message d'origine-----
De : address@hidden
[mailto:address@hidden De la
part de Matthias Kramm
Envoyé : dimanche 2 octobre 2005 10:02
À : address@hidden
Objet : Re: [Swftools-common] SWFCOMBINE and actionscript 2.0
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
address@hidden
http://lists.nongnu.org/mailman/listinfo/swftools-common