Entries Tagged 'AIR' ↓
August 2nd, 2010 — AIR
I hope to write up an explanation of the code, but I promised the User Group that I’d post the code, and I had better do it now while I’m thinking about it (only 2 weeks late!)
One important note: copy the .ffmpeg directory to your /user/ directory. Use ProcMon to see exactly where (on windows). If I were to release this as an actual app, I’d re-compile ffmpeg to look in the current directory.
Also, I didn’t include anything in the media folder, you’ll have to find your own AVI file to transcode.
Download the fxp.
Code below the fold.
Continue reading →
September 8th, 2008 — AIR, Flex, Projects
I recently started a project of converting an older flex app to an AIR app. This app has to scan through a bunch of files, and classify certain types of media based on the location and file extension. Then it saves a manifest of the media to an xml file that can be loaded (without scanning every time).
I started out with a Kind class (think CollectionEventKind) that had the types as strings… but then I had to figure out how to store the regular expressions to make them easily accessible… Then I remembered that while everyone just uses Strings, static const vars can be any class, including it’s own class. So I came up with this class that you can use constants, or locate a specific constant. Code after the fold.
Continue reading →
May 11th, 2008 — AIR, Flex
So… you thought you’d be cool and throw a break point on some DRAG_ENTER code, but after you’re done debugging, you’re left with a little floating icon on your desktop.

Never fear, you don’t have to restart your entire computer, open up Taskmanager and you’ll see an application called ‘Drag’. You can kill this application and the icon will disappear. If you don’t see this app, close Eclipse and find the process called ‘adl.exe’ and kill this process.
Restart averted, Yay!