How To Install flasm On Mac Using Brew

Name: flasm
Use: Flash command-line assembler and disassembler
URL: http://www.nowrap.de/flasm.html

Flasm disassembles your entire SWF including all the timelines and events. Looking at disassembly, you learn how the Flash compiler works, which improves your ActionScript skills. You can also do some optimizations on the disassembled code by hand or adjust the code as you wish. Flasm then applies your changes to the original SWF, replacing original actions.

It’s also possible to embed Flasm actions in your ActionScript, making optimizing of large projects more comfortable.

Flasm is not a decompiler. What you get is the human readable representation of SWF bytecodes, not ActionScript source. If you’re looking for a decompiler, Flare may suit your needs. However, Flare can’t alter the SWF.

Installation Steps:

  1. Open Terminal using Spotlight search by pressing <command+space>. Type terminal and hit Enter key.
  2. Run the following command to install brew first
    ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null
  3. Install flasm with the following command
    brew install flasm

flasm is ready to use now!