简体   繁体   English

将Flash中的墙纸设置为as3

[英]set wallpaper in flash as3

我想在as3中编码或打开源文件例如,要将图像保存在Flash中的舞台中,并使其在桌面中成为背景,在手机中使其成为背景,请使用按钮。

You can try use this extension, they have a demo (with some limitations, but works) 您可以尝试使用此扩展程序,它们具有演示功能(有一些限制,但可以使用)

1- Download this extension here 1- 在这里下载此扩展

2- Edit your AndroidManifest.xml and add this permission: 2-编辑您的AndroidManifest.xml并添加此权限:

3- Try this code: 3-尝试以下代码:

   //checking if extension is supported
   if (WallpaperManager.getInstance().isSupported())
   {
        var scale:Boolean;
        // default value is always false
        WallpaperManager.getInstance().setWallpaperFromPath(IMAGE_NATIVE_PATH, scale);
        // Pass native path of a image on device
   }

Thank you very much Explain to me the steps I am a novice in programming And any program I use to implement it 非常感谢您向我解释我是编程新手的步骤以及我用来实现它的任何程序

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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