| Previous | Next | |
STF.setActiveWallpaper(fileName:String, tileOrCenterOrStretch:String) : BooleanfileName - Filename of desired wallpaper. The fileName can be a relative path from the working directory or an explicit path to any valid wallpaper file on the computer.
On the Mac the image will be stretched to fill the entire desktop.
On the PC the image can tiled, stretched, or centered on the desktop.
tileOrCenterOrStretch - display type - Windows Only - if no display type is specified the image is stretched to fill the desktop.
A boolean.; This value is returned as a parameter to the registered callback. See the example below or STF.registerCallBack() for more information on return variable handling.
Method; Sets the specified file to be the current active wallpaper.
This sample sets a file in the working directory to be the active wallpaper and stretches the image to fill the screen.
var fileName = "tibet.jpg";
setActiveWallpaper_btn.onRelease = function(){
STF.setActiveWallpaper(fileName);
}| Questions or Feedback? | Previous | Next |