Monday, December 28, 2009

Is it possible to see actionscript code for a flash game?

I'm about to start programming a game with flash. I was wondering if it is possible to look at the code of other games to help me out when I get stuck. I'm mainly looking for platformer type elements.





If I download a flash game can I see the code afterwards?





Is it possible to see code like you can with webpages? ie. right click -%26gt; View Source.





Any help would be greatly appreciated.Is it possible to see actionscript code for a flash game?
Yes its possible to see the actionscript code, but definitely not the way you view the source of a web page.





To view the actionscript source code, you need to reverse engineer or decompile the compiled swf file format.


There are many tools online that you can use to do this, such as flare, a free actionscript decompiler


http://www.nowrap.de/flare.html , which may or may not be suitable for later versions of flash.





Commercial decompilers such as sothink swf decompiler extract images, sounds and text as well, but has only limited functions for the trial version. However you CAN try to find a crack online for these decompilers, though you run a risk of being infected by malware from malicious sites.


http://www.sothink.com/product/flashdeco鈥?/a>Is it possible to see actionscript code for a flash game?
No. When you play a game in flash, you are interacting with the compiled flash source file, which is normally the .swf extension.





This is comparable to an executable file. When you compile a program in C++, you can not view the source code.





What you want to do is reverse engineer other example games by asking yourself how to accomplish certain features of those games, based on what you already know about flash animation.





A good site with lots of examples is http://www.kirupa.com
No you cant

No comments:

Post a Comment