I don't think that's right.  The 4th byte is the SWF version.  The
enabling tool may have forced a newer SWF version, but that could happen
for other reasons.

I think you need to decode the SWF.  There are SWF decoding classes in
modules/swfutils/src/.  SWFDump just calls SwfxPrinter.java.

-Alex

On 11/17/13 10:50 PM, "christofer.d...@c-ware.de"
<christofer.d...@c-ware.de> wrote:

>Ok ... so I just had another look,
>- unpacked an swf that was not enabled
>- then enabled that SWF
>- unpacked that content
>- loaded both files in a text-compare tool
>
>So it seems that the difference is simplywithin the first 7 bytes
>Not Enabled: FWS0J+
>Enabed: FWS4J+ 
>(There seems to be some sort of line break after the FWS)
>So can I go and hunt for the one different byte to detect if a file is
>enabled?
>
>Chris
>
>-----Ursprüngliche Nachricht-----
>Von: Darrell Loverin [mailto:darrell.love...@gmail.com]
>Gesendet: Montag, 18. November 2013 02:18
>An: dev@flex.apache.org
>Betreff: Re: How can I check if an swf has advanced-telemetry enabled?
>
>Oh, I see, Justin added it to swfutils. I was looking for it in falcon
>since this is where I had added the support but I don't see the code in
>Apache Flex's falcon.
>
>
>-Darrell
>
>
>On Sun, Nov 17, 2013 at 3:46 PM, Justin Mclean
><jus...@classsoftware.com>wrote:
>
>> Hi,
>>
>> > I believe there was a new tag added to the swf to enable telemetry.
>> > I
>> don't
>> > see this tag supported in Apache Flex.
>>
>> The new tag in the swf is supported in Apache Flex (4.10 and 4.11)
>> otherwise how else could we support it?
>>
>> The tags value is 93, so you can look for that or just use swfdump, if
>> the swf has advanced telemetry turned on it will show this:
>> <EnableTelemetry advancedTelemetry='true'/>
>>
>> Thanks,
>> Justin

Reply via email to