The other Andrew Hunt

Another Flash Blog!

Archive for October, 2009

Geting line numbers for runtime exceptions in Flash Player

without comments

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.

Written by admin

October 30th, 2009 at 7:51 am

Posted in AS3 Development

Copying Photos from your iPhone in OS X

without comments

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:

  1. 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.
  2. Interesting alternative: in Preview, go to the File->Import Image menu option, and you can import a photo (with preview) from your iPhone.

Written by admin

October 29th, 2009 at 10:55 am

Posted in Misc Tech, iPhone