Category: Flash/Actionscript
Eclipse Filename Search Filter
Because I keep forgetting this:
In Eclipse, Shift-Command-R brings up a dialog that can be used to find files by name.
Flash Debug Logging
Flash debug output can be captured to a log file, as described by Mark Walters here: http://yourpalmark.com/2005/07/01/trace-from-the-browser-using-standard-trace/. On OS X You can then display that output in Console.app. I've set up two aliases in my bash profile to do so:
- alias trace=’open -a /Volumes/[HARD DRIVE NAME]/Applications/Utilities/Console.app/ /Users/[USERNAME]/Library/Preferences/Macromedia/Flash\ Player/Logs/flashlog.txt’
- alias cleartrace=’cat /dev/null> /Users/[USERNAME]/Library/Preferences/Macromedia/Flash\ Player/Logs/flashlog.txt’
So whenever I want to watch the trace output from a site I can just open Terminal.app and type trace to open the log file, and cleartrace to delete the contents of the file.
Frustration

Found this today while dusting off an FLA from a very old project (written by someone else, I should add).
FDT 3.5
Finally installed FDT 3.5 yesterday. I don't write Flex Apps, so the MXML support is nice to see but doesn't really affect me. I noticed a lot more templates, and today I was pleased to see that the quick fix to rename a class also automatically renames the constructor if it is present. It always annoyed me that this wasn't the default behavior in FDT 3.2.
I also recommend the three-part online training course on FDT by Alan Klement. More details here. Alan's blog is also a great resource for FDT tips and also general Flash development topics.
Project Names for Ant Build Files
Just posted this over at the DS Tech Blog: Project Names for Ant Build Files. Completely obvious, yet somehow it's taken me a year to realize this. It's not usually an issue when you only have one project open, but today I was staring at three build files in the Ant panel, all named "project". So, just another small step towards better workflow.