简体   繁体   中英

How set wallpaper in flash as3?

Who can help me to make the photo On the desktop ..For example, to save the image in the stage in Flash and make it a background in desktop(in flash function to make an image as wallpaper)or background in phone Using the button thanks..

举个例子

It's not possible to set an image in flash to become your desktops wall paper. You can adjust the images size and parameters via flash and export, then you will have to set it as our desktop wallpaper manually.

For the desktop platform, you can encode the image into an OS-readable format (PNG, JPG, others depend on OS) and call FileReference.save() with the encoded ByteArray . This will invoke the OS-specific dialogue of "Save as" where the user will have to input the proper name for the file with its extension (if OS requires an extension), so you will have to hint the user of what type of file he will receive. For this, you can name your button "Save as PNG", for example. A code example is here in this question .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM