Getting Started with mProjector 4, ActionScript 3.0, and Flash

  1. Install the mProjector 4.0.
    • Close Flash.
    • Run mProjector 4 installer. You may need to download the latest Extensions Manager from Adobe to install the mxp that comes with mProjector.
    • Re-launch Flash.
  2. Create a new AS3.0 FLA document.
  3. Include the mProjector 4 component in your document's library.
    • Open the Components panel (Window > Components) and drag the mProjector 4 component from the "Screentime Components" folder into the Library panel (Window > Library).
  4. To access mProjector classes and methods add an import statement stm.mprojector.mClassName then utilize the class. All mProjector classes and methods are listed in the Flash Help Panel and online in our Dev Center. In this example the initApp() function sets the window title and centers the window.
    // set window title and center the application on the desktop.
    import stm.mprojector.mWindow;
    
    
    mWindow.setTitle("Hello mProjector");
    mWindow.center();
  5. Publish your SWF in Flash.
  6. Publish your SWF as an application using mProjector.
    • Open mProjector.
    • Set your SWF as the main application SWF - Select mProjector's Application tab and drag-n-drop your SWF on mProjector.
    • Set your application settings - application title, icon, window type, included files, etc.
    • Click the Build button. By default mProjector will launch your application when it's ready.