Skip to content

Getting ready to program

LB-- edited this page Dec 18, 2012 · 8 revisions

Aptana or any other Javascript development environement

You will need some kind of development environment to program your extension. The choice of Javascript IDE is vast. I personally use Aptana, which I think is a stable and consistent environment. You are free to choose whatever you want, as long as you can launch the runtime in it.

Loading the HTML5 runtime

  • The sources of the runtime are contained in the RuntimeHTML5\src folder. The html file to load the code is RuntimeHTML5\RuntimeHTML5.Dev.html
  • Create or load the project in your favorite IDE
  • Create an application in MMF2, with your new object
  • Choose "HTML5 application" as build type, build your application replacing the file "Application.cch" located in the RuntimeHTML5 folder of this SDK. MMF will save the image and sounds beside the cch file.
  • Start debugging in your IDE by launching the RuntimeHTML5.Dev.html file
  • Important note: for MMF to recognise your extension (so that it is displayed in the Insert Object dialog, and recognised when you build your application), there must be a file named "yourextension.js" in the data\runtime\HTML5 directory of MMF2.

Clone this wiki locally