| Previous | Next |
Window to Window Communications
This sample shows how to create and control multiple windows, as well as how to expose user defined functions so they can be called from other 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.
The parent and child swfs expose a "hello" function that can be called synchronously by other windows.To expose functions to another window, simply add the function to the mWindow class in the swf.
mWindow.hello = function(hiThere) {
hello.text = hiThere;
};
You can download this sample, "Parent Child", from the mProjector Samples page -- /software/flash-projector/flas.html#parentChild.
| 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
