A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: Protecting Action Script code

  1. #1
    Senior Member stoc's Avatar
    Join Date
    Nov 2001
    Location
    Romania, Arad
    Posts
    428

    Protecting Action Script code

    How can I protect my AS code ... because U can find a lot of swf decompilers ...

    what s the best way !?!?

    thanks !

  2. #2
    Junior Member
    Join Date
    Oct 2002
    Posts
    16
    You could write the code as an external text file and once placed on the web server you could protect the folder its in with .htaccess or something (your web provider will need to be running apache web server for this to work)... A bit of a roundabout way but its all I can think of currently.

    I don't know how you would be able to protect it locally unless you can encrypt the txt file or pass protect it.

  3. #3
    Senior Member stoc's Avatar
    Join Date
    Nov 2001
    Location
    Romania, Arad
    Posts
    428
    isnt a good solution ,
    because once U compile fla ....-> the swf will contain code from that txt file .#include "somefile.some_ext" , isnt an "real" , I mean inclusion isn t made run time....

    txs anyway!

  4. #4
    Junior Member
    Join Date
    Oct 2002
    Posts
    16
    Which is why i said use .htaccess....

    htaccess will mean no one will be able to download the txt file from the directory without a username/password... if you are developing your flash for the web.

  5. #5
    Senior Member stoc's Avatar
    Join Date
    Nov 2001
    Location
    Romania, Arad
    Posts
    428
    I know what mean ....htaccess...
    isnt this the point

    Try this :

    put a part of code in a txt file ....
    from Ur fla in 1st frame :
    #include "yourfile.ext"

    then publish your movie ... and try with a swf decompiler to see the code....
    Ull not see #include.... but Ull see Ur content of the txt file ....
    then try to remove that txt file and after that run Ur swf - nothing changed , the swf works good - this mean when U publish Ur movie ... the txt file is compiled too as action script - this mean if U decomp. Ur swf ...Ul see the content of the txt file ....

    after publishing - isnt important if U txt file exists or not....

    txs.

    hei friends , let me know if Im wrong .

    Thanks

  6. #6
    Junior Member
    Join Date
    Oct 2002
    Posts
    16
    Ah i didnt realise it compiled it within the flash file... my bad.

    That suprises me actually... oh well :/

  7. #7
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397

  8. #8
    Senior Member
    Join Date
    Sep 2001
    Location
    Top Shelf
    Posts
    757
    ASO seems to be more annoying than anything else - i can still comprehend the code, its just scrambling everything. Dynamic referencing is not yet supported.

    might be useful for compressing large amounts of code, especially if you use large variable/function/param names like me sometimes

  9. #9
    Junior Member
    Join Date
    Apr 2003
    Posts
    28
    I now, how protect ActionScript code. Neither ASV4, nor Flasm couldn't deprotect my code - only one way is reading flash bytecodes for manual decoding.

    Mail me to ilya_cat@mail.ru , if you want to consult with me.

    Excuse for my bad English.
    Ilya Shlyakhovoy
    www.as-protect.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center