| Previous | Next |
Getting Started with mProjector 4, ActionScript 3.0, and Flash
- 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.
- Create a new AS3.0 FLA document.
- 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).
- 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(); - Publish your SWF in Flash.
- 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.
| Questions or Feedback? | Previous | Next |
More Information
Getting Started
ActionScript 3.0 Support
- AS2 Migration
- Getting Started - Flash
- Debugging in Flash
- Building your application from inside Flash
- Getting Started - Flex
- Debugging in Flex
ActionScript 3.0 Samples
Using mProjector
- Using mProjector - Compile Your SWF into an Appli
- Customizing The About Window
- Debugging Your Application
- Launching Application at Startup
- Mac vs. Windows Application Development
- Menus
- Dynamic Window Creation
ActionScript 2.0 Samples
- Application Basics
- mProjector Class Basics
- Add Remove Programs Control Panel
- Fullscreen and Center
- Check Connection and Download File
- Choose Files
- Creating an Installer
- Creating and Controlling Multiple Windows
- Cut, Copy, and Paste (Windows)
- Desktop Shortcut and Start Menu Support
- Drag and Drop Files
- Embedding HTML and other Media types
- Flash-Shaped Windows
- Message Box
- Open Documents
- Project Files
- Reading and Writing to Hard Drive
- Startup Application
- Wallpaper and Screensaver
- Window to Window Communications
- Working with Included Files
- Context Sensitive Menus
- Alert User
- Screen Resolution
