Electronic Space Nintendo Rotating Header Image

Posts Tagged ‘AIR’

AIR HTMLLoaders and mouse events

Just a quick tip. If you’re wanting to listen to MOUSE_DOWN events from an AIR HTMLLoader, and want any and all mousedowns, not just HTML link clicks and the like, simply use the event’s capture phase: htmlLoaderContainer.addEventListener(MouseEvent.MOUSE_DOWN,myHandler,true) Bam, problem solved. I read some posts online about this issue and no good solutions, so here you [...]

Simple AIR Directory->XML utility

This is no biggy, and I’m sure most of y’all have tools for this already, but I figured I’d share mine anyway. It’s just a quick-and-dirty Flex/AIR app for taking a directory listing and generating an XML document of file paths. Not pretty, but here’s how it works: Choose the node name of your root [...]