| Previous | Next |
Working with Included Files
This sample shows to work load internal "included" files.
If you want to load a file that you have included internally in your application preface the name of the included file with the working directory path returned by mSystem.getSpecialFolder("WORKING").
var pathDelimiter = mSystem.getPathDelimiter();
MovieClip.loadMovie(mSystem.getSpecialFolder("WORKING") + pathDelimiter + filename);
NOTE: If you are loading external files make sure their names do not match your internal file names. The current verison of mProjector Windows feeds Flash the internal file if the filename matches no matter what the path.
If you want to copy an internal file to the local hard drive, use mSystem.getSpecialFolder("WORKING") plus the filename to specify the source file.
var pathDelimiter = mSystem.getPathDelimiter();
var sourcePath = mSystem.getSpecialFolder("WORKING")+ pathDelimiter + "snowflakes_wbg.swf";
var destPath = mApplication.getFolder()+pathDelimiter +"flakes.swf";
mFile.copyFile(sourcePath , destPath);
You can download this sample, "loadSWF", from the mProjector Samples page -- /software/flash-projector/flas.html#internalAndExternalFiles.
| Questions or Feedback? | Previous | Next |
- AS2 Migration
- Getting Started - Flash
- Debugging in Flash
- Building your application from inside Flash
- Getting Started - Flex
- Debugging in Flex
- 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
- 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
