简体   繁体   English

如何使用AS3从Flash应用程序控制屏幕亮度?

[英]How can I control the screen brightness from a flash app using AS3?

Is there are a way to control the screen brightness from a flash app using AS3? 有没有一种方法可以使用AS3从Flash应用程序控制屏幕亮度? I would like to create a slider that will control the brightness of 3 screens. 我想创建一个可以控制3个屏幕亮度的滑块。

Flash Player holds no such a capability by default. 默认情况下,Flash Player不具备此类功能。 However, your app is an AIR app, thus there is a way. 但是,您的应用程序是AIR应用程序,因此有一种方法。 You will need ANE (AIR Native Extension) that grants the access to the display(s) and its(their) properties. 您将需要ANE(AIR本机扩展),以授予对显示及其属性的访问权限。

You might find an existing one for your needs, or, if there are none, build your own: http://www.adobe.com/devnet/air/native-extensions-for-air.html 您可能会找到满足您需求的现有设备,或者如果没有,则构建自己的设备: http : //www.adobe.com/devnet/air/native-extensions-for-air.html

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

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