Developing a simple Windows system tray desktop app to consume a .NET web service

Keep it all in .NET. You can easily write a Windows Forms application to display a tray icon and display notifications as and when something happens in the web service (you’d probably need a timer to do the polling). There are plenty of articles around that will show you how to do this. Here’s one … Read more

HTTP Basic Authentication with HTTPService Objects in Adobe Flex/AIR

Finally received some attention from Adobe and got an answer on this. The problem with long HTTP Authentication headers is that, by default, the Base64Encoder class will inject newline characters every 72 characters. Obviously that causes a chunk of the base-64 encoded string to be interpreted as a new header attribute, which causes the error. … Read more

Adobe AIR to execute program

With AIR 2.0 you now can: if(NativeProcess.isSupported) { var file:File = File.desktopDirectory; file = file.resolvePath(“StyleLookupold.exe”); var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo(); nativeProcessStartupInfo.executable = file; var process:NativeProcess = new NativeProcess(); process.start(nativeProcessStartupInfo); } You also need to add this to your descriptor file. <supportedProfiles>extendedDesktop</supportedProfiles>

Difference between Adobe AIR and FLEX?

The “Flex Framework” is a collection of AS3 classes and components used in developing RIAs. “Flex Builder” is an IDE used to develop “Flex Applications.” Much in the same way HTML is a collection of tags to develop web pages and Dreamweaver is an IDE for developing web pages. However you don’t need Dreamweaver, you … Read more

Skip window from being captured

If I understood correctly your problem. You can use built in Flex/as3 function to take a screenshot of the entire application or a particular component then convert into bytearray and PngEncoder (or JPGEncoder if you prefer), than save it… Here’s an example: <?xml version=”1.0″ encoding=”utf-8″?> <s:WindowedApplication xmlns:fx=”http://ns.adobe.com/mxml/2009″ xmlns:s=”library://ns.adobe.com/flex/spark” xmlns:mx=”library://ns.adobe.com/flex/mx”> <fx:Script> <![CDATA[ import mx.graphics.codec.PNGEncoder; private function … Read more

SQLStatement.execute() – multiple queries in one statement

I wound up using this. It is a kind of a hack, but it actually works pretty well. The only thing is you have to be very careful with your semicolons. : D var strSql:String = stream.readUTFBytes(stream.bytesAvailable); var i:Number = 0; var strSqlSplit:Array = strSql.split(“;”); for (i = 0; i < strSqlSplit.length; i++){ NonQuery(strSqlSplit[i].toString()); }

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)