Note that there are some explanatory texts on larger screens.

plurals
  1. POAdobe Air App Message Board, issue with Linux machines
    primarykey
    data
    text
    <p>I have an Adobe Air Desktop App built with Flash cs5 that is a message board that loads a simple text file into a dynamic text field. if file is new it blinks the taskbar program icon, simple stuff. works perfect on windows blinking taskbar doesn't blink taskbar on Linux, is it possible to adjust code below to make it run on both?</p> <pre><code>NativeApplication.nativeApplication.startAtLogin=true stage.nativeWindow.alwaysInFront=true; import flash.net.URLRequest; function completeHandler(event:Event):void { var newText:String = loader.data; if(newText != oldText) { myText_txt.htmlText = newText; stage.nativeWindow.notifyUser(NotificationType.CRITICAL); oldText = newText; } } function loadUrl():void { loader.load(req); } // Initialize your variables and event handlers only one time var req:URLRequest = new URLRequest("https://my_text_file.txt"); // Set cacheResponse to false to prevent a successful response // from being cached. req.cacheResponse = false; // And don't bother checking the cache, either. // Not necessary, but the request will execute a little faster. req.useCache = false; var loader:URLLoader = new URLLoader(); loader.addEventListener(Event.COMPLETE, completeHandler); // Use oldText inside completeHandler() to determine // whether the file's text has changed var oldText:String = ""; var myInterval:uint = setInterval(loadUrl, 120000); // Start loading the text right away loadUrl(); // button control Minimize_BTN.addEventListener(MouseEvent.CLICK, minimize); function minimize(e:MouseEvent){ stage.nativeWindow.minimize(); } drag_BTN.addEventListener(MouseEvent.MOUSE_DOWN, drag); function drag(e:MouseEvent){ stage.nativeWindow.startMove(); } stop(); //Stop on the frame you want </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload