Configuring Flash in Eclipse using FDT

Software Needed:
  • Eclipse IDE
  • Java JDK
  • Flash FDT
  • MTASC Flash Compiler

Installation:
  • Make sure the lastest version of the Java JDK installed in your machine. Preferably J2SE 5.0 or higher. Install the JDK preferably in c:\program files\Java http://java.sun.com/j2se/index.jsp
  • Download the latest version of the Eclipse IDE and extract it to c:\program files\Eclipse or any other folder you want. Create a shortcut, right click, go to properties and enter the following argument to the Target Path

Compilation:


  • Choose the Flash FDT Perspective. Go to Window – Open Perspective – Other and choose Flash FDT.

  • Click Run – Run Configurations. Go down to FDT MTASC and double click it.

  • Enter the name of the configuration. Select the project and the Main class file. As shown below. Click the MTASC tab and select the location to the MTASC compiler.



  • Click the MTASC Arguments tab and enter the following command

-mx –main –header 770:578:20 -swf build/Springo_Assets.swf -trace project.spin.VirtualGame.MTTrace

Include –header 770:578:20 only if you want to create a new swf file and not inject the byte code into the swf containing the assets.

  • To create an Injected SWF
    • Create the swf in Flash IDE containing all the assets required for the game
    • You might get errors. But ignore them and point to the swf using the MTASC arguments mentioned above. Remember remove – header if you don’t wish to create a new swf with only the class bytecodes.
    • You can follow the same technique for Method 2 explained below.

  • Choose Run – (the configuration name) to compile the files and generate either the new swf or the injected swf.


Comments

Popular posts from this blog

Authoritative Server - MMO

Code dependencies