Archive for October, 2009
Geting line numbers for runtime exceptions in Flash Player
This is a simple technique I learned from co-worker Miguel Cordones that was a surprise to me, but obvious one I knew it. I did a quick survey and a surprising number of the other developers didn’t know it either:
When you publish your SWF turn debugging on!
With this option turned on, you will get some very useful information: the line number of all runtime exceptions.
Turning on the debug option
Flash IDE: Publish Settings->Flash Tab->Permit debugging
MXMLC: set option debug =”true”
Of course, when you’re ready to do a release build, turn off the debug option! Using the debug option adds a bunch of debugging junk to your files, makes them substantially bigger and affects performance.
Copying Photos from your iPhone in OS X
Man I do hate to have to use iPhoto to manage my iPhone pics. I just want to copy them to a folder as files, should be simple enough, right? Could not figure out how to do it via iTunes without iPhoto.
Googled it up for a while before I found 2 simple solutions:
- The app “Image Capture” does exactly what I want. Allows me to export some or all of the photos on my iPhone to a selected folder.
- Interesting alternative: in Preview, go to the File->Import Image menu option, and you can import a photo (with preview) from your iPhone.