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

What algorithms could I use for audio volume level? [closed]

human perception in general is logarithmic, also when it comes to things as luminosity, etc. … this enables us to register small changes to small “input signals” of our environement, or to put it another way: to always percieve a change of a perceivable physical quantity in relation to its value … thus, you should … 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>

konami code in flex

A state machine is fun to write, but in this case I’d go with a signature pattern. Depending on where you want to put the handler (on the stage of the component), here’s some code that should work, though you can probably tighten it (and of course customize it to your specific need): // up-up-down-down-left-right-left-right-B-A … Read more

tech