flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Left Right <olegsivo...@gmail.com>
Subject Re: Link against SWF instead SWC
Date Fri, 29 May 2015 16:47:59 GMT
Thanks for suggestion, Alex, but the problem seems to be different:
compc won't include classes, if it doesn't have sources, for whatever
reason that option only works with actual AS or MXML files, not
something already compiled. It worked for me before because I was also
linking an actual AS file which imported and used the class from SWC I
wanted to link (my bad, didn't see it). So, I'm guessing this option
won't work at all with classes that don't have sources...

Best.

Oleg

On Fri, May 29, 2015 at 6:43 PM, Alex Harui <aharui@adobe.com> wrote:
> What happens if you add the signatureChecksum with the right amount of
> digits to your catalog.xml?  IIRC, it is the time the class was compiled,
> not some checksum of an API surface, so it can be just about any number.
> I think it is the number of milliseconds since 1970 or something like that
> and is used to determine if a competing copy of the class from another SWC
> is newer or older.
>
> -Alex
>
> On 5/29/15, 6:30 AM, "Left Right" <olegsivokon@gmail.com> wrote:
>
>>Hello list,
>>
>>Recently I wanted to do the following: take a SWF file, and extract
>>each of the symbols it defines into a separate SWF file. Sometimes I
>>also have a matching SWC file for the input SWF file, in which case I
>>can simply do something like this:
>>
>>compc -library-path input.swc -ic class.to.Link -o path/to/result.swf
>>
>>But, sometimes I don't have the original SWC. Using swfdump and a
>>little script that I wrote, I can generate a SWC file with catalog.xml
>>and library.swf (one produced from the input.swf).
>>
>>The problem must be the catalog.xml. I can generate XML attributes of
>><script> tag except for the signatureChecksum="some digits". And compc
>>refuses to use such an SWC as an input. It gives:
>>
>>Error: could not find source for class class.to.Link
>>
>>Do you have any ideas on how to generate such an SWC?
>>
>>Best.
>>
>>Oleg
>

Mime
View raw message