English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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 -> View Source.

Any help would be greatly appreciated.

2007-06-01 15:03:41 · 3 answers · asked by corey s 2 in Computers & Internet Programming & Design

3 answers

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/flashdecompiler/

2007-06-01 20:14:29 · answer #1 · answered by Geinius 3 · 0 0

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

2007-06-01 16:12:16 · answer #2 · answered by Bean 3 · 0 0

No you cant

2007-06-01 15:07:19 · answer #3 · answered by Cupcake 7 · 0 0

fedest.com, questions and answers