screensaver - Can I create Windows screen saver with Adobe AIR? -
is technically possible create screen saver windows using adobe air?
yes is.
what can compile air project -captive-runtime or -target bundle (makes standalone .exe instead of .air file).
for windows, rename .exe .scr, right click , choose install or test.
if want set configuration , preview modes, can listen application invoke event:
//put in app main constructor nativeapplication.nativeapplication.addeventlistener(invokeevent.invoke, invokeventhandler, false, 0, true); protected function invokeventhandler(e:invokeevent):void { //you don't have loop first argument each(var a:string in e.arguments) { //p - show screensaver in screensaver selection dialog box if (a.indexof("/p")) { //do different preview mode break; } //s - show screensaver full-screen if (a.indexof("/s")) { //the main full screen mode break; } //c - show screensaver configuration dialog box if (a.indexof("/c")) { //show configuration window break; } } }
Comments
Post a Comment