stereodive
Loading...

How to Edit SWF with RABCDASM

Today we will learn on how to edit .SWF files with RABCDASM. But before we start, you may want to ask what is SWF? and what is RABCDASM...


Today we will learn on how to edit .SWF files with RABCDASM. But before we start, you may want to ask what is SWF? and what is RABCDASM?

SWF is an Adobe Flash file format used for multimedia, vector graphics and ActionScript. Originating with FutureWave Software, then transferred to Macromedia, and then coming under the control of Adobe, SWF files can contain animations or applets of varying degrees of interactivity and function. Currently, SWF is the dominant format for displaying "animated" vector graphics on the Web. It may also be used for programs, commonly browser games, using ActionScript.

RABCDAsm (Robust ABC (ActionScript Bytecode) [Dis-]Assembler) is a collection of utilities including an ActionScript 3 assembler/disassembler, and a few tools to manipulate SWF files.

You can download RABCDAsm @ https://github.com/CyberShadow/RABCDAsm/releases

Here is a quick tutorial on how to edit swf once you have downloaded and extracted RABCDASM.

  1. Open up a Command Prompt window (CMD.exe)
  2. Navigate the directory where you extracted RABCDASM.
  3. Put the SWF you want to edit, in this example lets say we're editing a swf file named "editme.swf", in the RABCDASM directory
  4. You must disassemble the ActionScript from the SWF. Do this with the following command in the Command Prompt (using your own swf in the place of editme.swf):
    • abcexport editme.swf
  5. This creates the file named 'editme-0.abc'
  6. You then enter the following command into the Command Prompt to disassemble the abc file: rabcdasm editme-0.abc.
  7. This creates an export directory named 'editme-0' which contains all of the files you will be editing and ultimately reassembling into the edited swf file.
  8. Go to the editme-0 (or whatever the name of your swf is) directory and find the files you want to change. 
  9. Edit them with a text editor or a program like Notepad++.
  10. Once you have made the changes you like then you will use two files of interest, 'file-0.main.asasm' (the main program file) and 'editme.main.abc'.
  11. You now need to assemble the edited ActionScript classes back into a usable SWF file. To do this, enter the following commands into the Command Prompt:
    • rabcasm editme-0/editme-0.main.asasm
    • abcreplace editme-0.swf 0 editme-0/editme-0.main.abc
  12. This includes the spaces and zero between the two parts of the abcreplace command
  13. Thats it! you now have a edited SWF file! 
Tricks 8750154277283324404

Home item

What's Hot

Random