Sample Code Spotlight

Ever wished you could make it right before moving on or take it back all together? Well, now your users can.

Our new onClose sample shows how to use mApplication.onQuit() to make sure your user really wants to quit AND/OR to give you an opportunity to save data before exiting the application.

Sample Links

mProjector 4 Sample Code - One FLA, TWO Platforms

New Hello World using AS3 and Flash
level: simple
This sample demonstrates some basic mProjector 4 functionality using Flash and ActionScript 3.0 - how to create a drag bar, center a window, enable transparency in a window, and quit an application.
updated: 08/2011
v4, Flash, AS3.0
New Hello World using AS2 and Flash
level: simple
This sample demonstrates some basic mProjector 4 functionality using Flex and ActionScript 2.0 - how to create a drag bar, center a window, enable transparency in a window, and quit an application.
updated: 08/2011
v4, Flash, AS2.0
New Hello World using AS3 and Flex
level: simple
This sample demonstrates some basic mProjector 4 functionality using Flex and ActionScript 3.0 - how to create a drag bar, center a window, enable transparency in a window, and quit an application.
updated: 08/2011
v4, Flex, AS3.0
New Download Image and AS3 Events using AS3 and Flash
level: simple
This sample shows how to check for an internet connection, and download a file from a server using checkNetConnection() and downloadFile(). This sample also demonstrates mProjector events for ActionScript 3.0.
updated: 08/2011
v4, Flash, A3.0
New Media Player using AS3 and Flash
level: moderate
This sample shows you embed HTML, PDF's, and QuickTime content into your applications.
updated: 08/2011
v4, Flash, AS2.0
New Multiple Windows using AS3 and Flash
level: moderate
This sample demonstrates how to create a second window, control it, and communicate with it using Flash and ActionScript 3.0.
updated: 08/2011
v4, Flash, AS3.0
New Multiple Windows using AS3 and Flex
level: moderate
This sample demonstrates how to create a second window, control it, and communicate with it using Flex and ActionScript 3.0.
updated: 08/2011
v4, Flex, AS3.0
New Asynchronous File Copy using AS3 and Flash
level: medium
This sample demonstrates how to copy large files and folders using Flash and ActionScript 3.0.
updated: 08/2011
v4, Flash, AS3.0
New Load External File using AS3 and Flash
level: simple
This sample shows to load internal "included" SWF files. In addition the sample shows how to copy internal files to the local drive.
updated: 08/2011
v4, Flash, AS3.0
New Alert User
level: simple
This sample shows how to flash the taskbar button on a PC, bounce the Dock icon on the Mac, and animate the system tray icon on a PC or status icon on a Mac.
updated: 08/2011
v4, Flash, AS2.0
Toaster
level: moderate
This sample shows how to create a toaster pop-up window. This application grows a small flash-shaped window from the bottom of the primary monitor.
updated: 08/2011
v4, Flash, AS2.0
mApplication
level: simple
The mApplication sample demonstrates the mApplication class methods and event handlers. The mApplication class enables you to check for an internet connection, get the mouse post ion, download files, animate the Windows system tray or Mac dock icon, generate a unique user id, create child windows, respond to activate/deactivate events, and more.
updated: 08/2011
v4, Flash, AS2.0
mFile
level: simple
The mFile sample demonstrates the mFile class methods. mFile provides file handling capabilities, including reading and writing to a file, deleting files and folders, listing files and folders, renaming files and folders, copying files and folders, testing for the existence of a file, and more.
updated: 08/2011
v4, Flash, AS2.0
mMenu
level: moderate
The mMenu sample demonstrates the mMenu class methods and event handlers. With mMenu you can customize the right-click and system tray menus on Windows and application menu bar menus and the right-click (cntl-click) menu on Mac OS X.
updated: 08/2011
v4, Flash, AS2.0
mSystem
level: simple
The mSystem sample demonstrates the mSystem class methods.The mApplication class enables you to check for an internet connection, get the mouse post ion, download files, animate the Windows system tray or Mac dock icon, generate a unique user id, create child windows, respond to activate/deactivate events, and more.
updated: 08/2011
v4, Flash, AS2.0
mWindow
level: simple
The mWindow sample demonstrates the mWindow class methods and event handlers. The mWindow class enables you to resize a window, center windows, position windows, play fullscreen, minimize windows, add a drag bar, respond to minimize, restore, activate, scroll wheel and close events, and more.
updated: 08/2011
v4, Flash, AS2.0
Fullscreen and Center
level: simple
This sample shows how to center a window on the primary monitor, and to stretch a window to fill the screen.
updated: 08/2011
v4, Flash, AS2.0
New Center Window on Current Monitor
level: simple
This sample shows how to center a window on the current monitor.
updated: 08/2011
v4, Flash, AS2.0
New Open Documents
level: simple
This sample shows how to use mSystem.openDocuments() to launch open the user's preferred web browser to a URL, send email, and open a pdf file.
updated: 08/2011
v4, Flash, AS2.0
Project File
level: moderate
This sample shows how to create a project file for storing user settings. This example enables the user to save a project file, create a new project file, and choose and open an existing project file. As the user makes his selections, mFile commands are used to read and write data to a local file, and the user interface updates to reflect the current state.
updated: 08/2011
v4, Flash, AS2.0
Read and Write
level: simple
This sample shows how to read and write data to a local file using mFile.readString(), mFile.writeString(), and mFile.appendString().
updated: 08/2011
v4, Flash, AS2.0
Settings
level: moderate
This sample demonstrates how to save and read application settings. In this sample, the last saved settings are used to initialize the application when it is relaunched.
updated: 08/2011
v4, Flash, AS2.0
Updated Create Window
level: moderate
This sample shows how to create a multiple window application. This sample utilizes the function mApplication.createWindow() to sublaunch child windows.
updated: 08/2011
v4, Flash, AS2.0
Parent Child
level: moderate
This sample shows how to create and control multiple windows. This sample uses the function mApplication.createWindow() to create a child window. The command mWindow.setSize() is used to control the size of the child window from the parent and vice versa.

This sample also demonstrates how to expose user defined functions so they can be called synchronously from other windows -- i.e. synchronous window communications -- a Windows only feature.
updated: 08/2011
v4, Flash, AS2.0
Parent Child 2
level: moderate
This sample shows how to create and control multiple windows. This sample uses the function mApplication.createWindow() to create a child window. The command mWindow.setSize() is used to control the size of the child window from the parent and vice versa.

This sample also demonstrates how to expose user defined functions so they can be called synchronously from other windows -- i.e. synchronous window communications -- a Windows only feature.
updated: 08/2011
v4, Flash, AS2.0
Download Image
level: moderate
This sample shows how to check for an internet connection, and download a file from a server using checkNetConnection() and downloadFile(). This sample also demonstrates mProjector events for ActionScript 3.0.
updated: 08/2011
v4, Flash, AS2.0
New Capture Screen
level: simple
This sample shows how to capture parts of the screen or the entire main monitor.
updated: 08/2011
v4, Flash, AS2.0
New Context Menu
level: moderate
This sample shows how to add context sensitive right-click menus to your application. Each shape and the system tray icon (Windows) pops a unique menu. Each user click on a menu item calls the mMenu.onCommand() event handler.
updated: 08/2011
v4, Flash, AS2.0
New Choose Files
level: simple
This sample shows how to use the mSystem.chooseFiles() command to enable the user to select multiple files.
updated: 08/2011
v4, Flash, AS2.0
Updated FLV Tester
level: simple
This sample shows how to add FLVs to your application. The key idea is that mProjector requires a full path to the FLV content (and skins) to insure conspirator playback.
updated: 08/2011
v4, Flash, AS2.0
Drag and Drop
level: moderate
This sample shows how to add drag-n-drop file support to your application using the mWindow.onDragFiles() and mWindow.onDropFiles() event handlers.
updated: 08/2011
v4, Flash, AS2.0
Load SWF
level: simple
This sample shows how load an included swf file. It also shows how to copy an included swf file out of the application and then how to load it from its new location.
updated: 08/2011
v4, Flash, AS2.0
Updated Media Player for Flash and AS2
level: simple
This sample shows you embed HTML, PDF's, and QuickTime content into your applications.
updated: 08/2011
v4, Flash, AS2.0
Message Box
level: simple
This sample shows how to pop up a standard Operating System message box using the mSystem.messageBox() command.
updated: 08/2011
v4, Flash, AS2.0
Installer
level: advanced
This sample shows how to create cross-platform single file installer. This application installs the Red Ball and it's Read Me file, creates a Windows Start menu item and desktop shortcut for the Red Ball, and opens the Read Me and launches the Red Ball on completion.
updated: 08/2011
v4, Flash, AS2.0
Red Ball
level: advanced
A Red ball that bounces around your screen. Use the right click menu to change its size color and how it bounces.
updated: 08/2011
v4, Flash, AS2.0
Screen Resolution
level: simple
This sample shows how to change and restore the user's screen resolution using mSystem.setScreenResolutionTo800x600() and mSystem.resetScreenResolution()
updated: 08/2011
v4, Flash, AS2.0
Shortcuts
level: simple
This sample shows how to create a shortcut on the Mac or Windows desktop, and to add your application to the Windows Start Menu.
updated: 08/2011
v4, Flash, AS2.0
Startup
level: simple
This sample shows you how to make your application launch every time the computer boots using the mSystem.setStartAtLogin() command.
updated: 08/2011
v4, Flash, AS2.0
New Dynamic System Tray Icon
level: moderate
Demonstrates how to place an icon in the System Tray (Windows) or Status Menu (Mac). You can then animate the icon and show and hide it. Very cool.
updated: 08/2011
v4, Flash, AS2.0
Uninstaller
level: advanced
Add your application to the Windows "Add or Remove Program" Control Panel. Demonstrates new build 'dj' commands mApplication.deleteSelf() and mApplication.getMyPath().
updated: 08/2011
v4, Flash, AS2.0
Wallpaper And Screensaver
level: simple
This sample demonstrates how to change the active wallpaper and screensaver.
updated: 08/2011
v4, Flash, AS2.0
New Applescript (mac only)
level: simple
This sample demonstrates how to execute AppleScript mSystem.runAppleScript() and mSystem.runAppleScriptFile().
updated: 08/2011
v4, Flash, AS2.0
New Is the Screensaver Running?
level: simple
This sample demonstrates how to determine whether the screensaver is currently running.
updated: 08/2011
v4, Flash, AS2.0
New Picture Loader
level: moderate
This sample demonstrates how to load external jpg images into their own independent windows on the fly.
updated: 08/2011
v4, Flash, AS2.0
Multiple Windows
level: advanced
This sample demonstrates how to create a second window, control it, and communicate with it using Flash and ActionScript 2.0.
updated: 08/2011
v4, Flash, AS2.0
New Play QT
level: simple
This sample demonstrates how to play a QuickTime movie embedded in a Flash window, as a separate controllable media window or in the QuickTime player.
updated: 08/2011
v4, Flash, AS2.0
New Send Message (Windows only)
level: moderate
This sample demonstrates how to send and receive messages between PC applications
updated: 08/2011
v4, Flash, AS2.0
New Get Files In Folder Recursively
level: simple
This sample demonstrates some file handling ActionScript enabling you to create a list of subfolders and files.
updated: 08/2011
v4, Flash, AS2.0

If there are specific examples you'd like to see, send us an email

viagra apotheke online viagra anonym bestellen