Skip to main content
Inspiring
June 2, 2015
Question

Error #1065: Variable __bytecode__ is not defined. AS3

  • June 2, 2015
  • 1 reply
  • 536 views

Hi!

I'm beginner. I have a small as3 project, load assets like swf, text files... and then use its. I want to protected my as3 swf and assets files from decompiler (i.e Sothink, Trillix, SWFInvestigator...). I found many way to do it: use embed tag to load main swf, dotfuscator, encrypt-decrypt assets file, or use bytecode...

Well, my mean is use __bytecode__(bytedata); function to protected sensitive code like: anti-preloader, algorithm in decrypt function... But have a problem, I think __bytecode__ function available in flash player 9 (as1.0, as2.0) and lower. What is going on with __bytecode__ function in as3? Is there similar function in as3 to do it?

I caught the technology called "mxml". But I not yet find out about it. Is it possible to solve my problems?

Thanks for the suggestion!

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
June 2, 2015

if your project can be successfully decompiled it's not worth protecting.

Inspiring
June 3, 2015

Thanks for reply!

But, you just spammer?

If my project cannot be successfully decompiled , I did not need to ask anyone for that. SWF is naked file. For one who knows SWF format, everything is revealed. However, not every one knows SWF format very well. Many theft can only decompile the SWF by software available. So, if my goal is to keep as less theft as possible, I keep my method secret.

Why do you think my project not worth protecting? Maybe you don't care about of my project. But some one who compete directly with me, they can spent several days for try decompile my project to get my algorithm. What they do not have, the better for their current project.

Thanks and best regard!

kglad
Community Expert
Community Expert
June 3, 2015

if you have a basic project, i (along with a lot of others) can copy it without seeing any of your code.  if you have a complex project, decompilers generate so many errors/problems there's no need for encryption.

and if you encrypt your code, you may encounter impossible to debug errors.

if you use the encryption no one here can help debug your encrypted actionscript.  you can post the encryption creator's forum for possible help with that.

but before you do that, test your unencrypted code to make sure it works the way you want.  once your project is complete and working the way you want, add your encryption.

to do that you might find it helpful to use conditional compiling. whether that is helpful depends on what kind of encryption you're using.

finally, if you're having a problem with unencrypted code, you can post here for help.