SWF Desktop Helper (Windows)

This sample shows you how to create a Windows system tray application that can be called by a SWF Desktop wallpaper to download an image from a server.

SWF Desktop works exactly like a web browser. The wallpaper itself can download an image, but the image is not stored permanently on the local disk (although it may be temporarily cached). If the user loses his internet connection, and the cache expires, the image will no longer be available. This application solves that problem.

SWF Desktop asks the helper application for the image. The helper application checks for an internet connection, downloads the image to the wallpaper's directory, then tells the wallpaper that the image is ready, and the wallpaper loads the image from the local hard drive. The communication between the SWF Desktop wallpaper SWF and the mProjector helper application is done using Flash local connection. The helper application uses mSystem.getSpecialFolder() to get a path to the wallpaper directory and mApplication.downloadFile() to download the file to the wallpaper’s local folder.

You can download this sample, "Wallpaper Helper", from the mProjector Samples page -- http://www.screentime.com/software/mprojector/flas.html.