Skip to main content
Inspiring
October 17, 2013
Answered

How to know if a loaded SWF have source code?

  • October 17, 2013
  • 1 reply
  • 480 views

Hi!, I need to know if a loaded SWF file have source code. I develop an APP that run on iOS and admin can upload SWF files that show in the APP, but I need to know before show (Adobe mobile AIR APP) or activate (PHP script server), if this SWF file have source code to no show or don't activate it.,

Thank you!

This topic has been closed for replies.
Correct answer undereyes

I've got it!!

Only that we need to do is:

1. If first char is:

     F - The swf is uncompressed

     C - Compressed with Deflate

     Z - Compressed with LZMA

2. If compressed, uncompress with the correct method

3. Search for MainTimeline string, if found the SWF have actionscript code if not found don't have actionscript.

1 reply

undereyesAuthorCorrect answer
Inspiring
October 17, 2013

I've got it!!

Only that we need to do is:

1. If first char is:

     F - The swf is uncompressed

     C - Compressed with Deflate

     Z - Compressed with LZMA

2. If compressed, uncompress with the correct method

3. Search for MainTimeline string, if found the SWF have actionscript code if not found don't have actionscript.