|
From a Flash projector, WALLPAPR enables you to give the user
the ability to load the desktop wallpaper with pictures located
on the local computer drives. Any image type supported by Windows
can be used.
usage: wallpapr.exe method filename
Valid values for method are CENTER, TILE and STRETCH (case
is not important).
The filename should be a fully qualified path to the image
file to be used as the wallpaper. Any image type supported by Windows
can be used.
Calling WALLPAPR with no arguments removes the desktop wallpaper.
examples:
// clear the desktop wallpaper
fscommand("EXEC", "wallpapr.exe");
// tile the desktop with c:\image.bmp (Flash 5 syntax)
fscommand("EXEC", "wallpapr.exe" + chr(9)
+ "tile" + chr(9) + "c:\\image.bmp");
// tile the desktop with c:\image.bmp (SWF Studo syntax)
fscommand("EXEC", "%org%\\wallpapr.exe tile c:\\image.bmp");
- Flash 5 projectors will allow you use tabs in the argument to
EXEC but not spaces.
- Flash MX does not allow spaces or tabs in the argument to the
EXEC actionScript command. This means that the WALLPAPR utility
can't be called directly from Flash MX.
- In a batch file the filename can contain spaces which provides
a workaround for Flash 5 limitations (on using spaces) and makes
it possible to use WALLPAPR from Flash MX projectors too.
- If you're working with SWF Studio you can use spaces in the
pattern argument so you can use WALLPAPR without any problems
from Flash 5 or Flash MX just like you would use the utility from
a DOS prompt.
 
|