Because my brain is filled with movie quotes from Star Wars, Aliens, Ghost Busters, etc I find it difficult to remember the things that are actually useful, like the syntax for how to embed and use a sound file in a Flex project. So here are a few of my most commonly revisited sites.
I do remember my shortcuts because I use them every day – like my movie quotes. :-) I thought it might be nice to share.
Favorite Flex Builder Shortcuts
- Ctrl + k = move to the next occurrence of the selected text
- Ctrl + Shift + k = move to the previous occurrence of the selected text
- Alt + up/down arrow = move current line, or selected lines, of code up or down in the editor
- Ctrl + q = Jump to last edit point
- Ctrl + Shift + Enter = new line above
- Ctrl + o = search for properties and methods by typing their name. Great for finding something in a large file
- Alt + arrow-left or arrow-right = move through open tabs
- Ctrl + Tab = Switch between last two viewed tabs ( even if they are not next to each other )
- F3 = go to type declaration. Same as Ctrl + mouse-click
- Ctrl + m = toggle min/max of the current tab
- Ctrl + j = search as you type. At first it won’t seem that anythings happening. But just type something and you’ll start searching. Hit ESC to cancel
Favorite compiler options
- Framework caching = -static-rsls=false
- Locate services file ( AMFPHP/CF/etc ) = -services “services-config.xml”
- Keep the code = keep-generated-actionscript=true|false
Misc Adobe LiveDocs pages of note
- About the application compiler options
- Flex Compiler Command-Line Options
- About metadata tags
- Syntax for embedding assets
Other Eclipse shortcuts
10 Eclipse Navigation Shortcuts Every Java Programmer Should Know
Embeding files example
And of course here’s how to embed and use a sound file, such as the Star Trek: TNG open door sound:
[Embed('assets/sounds/ST_doorbell.mp3')] private var sound:Class;
private var enterSound:SoundAsset = new sound() as SoundAsset;





Thx !
Ctrl + space : autoComplete and autoImport.
Ctrl + 3 : Like the spotlight in Eclipse
@Fardeen, I use Ctrl + space so often I forgot that it was a shortcut! Have you ever watched someone code who didn't use that shortcut? I just want to scream, "Dude, hit Ctrl + space so we can finish this sometime today!"
Possibly my favourite is ctrl+d which deletes the line(s) of code selected.
I find myself using it in word and outlook as well! (obviously it does nada in either of those ;-)
Another one, extremely handy:
CTRL + ALT + CMD + UP/DOWN Arrow: Duplicate the selected line(s)
Actually, as far as I remember, it's not the original one (more a CTRL + ALT + UP/DOWN Arrow or something), it's one I've modified on my Mac, but the shortcut exists so go and check on the preferences, it's a huge time saver.
Just checked, it's "Duplicate Lines" in General>Keys Preferences.
@Gilles, thanks. I could see that being a handy shortcut. It would be especially useful if it would comment out the original line.
Ctrl + Shift + C : Comment & uncomment selected MXML code.
Ctrl + / : Comment out current line(s) of AS code.
Ctrl + E: shift between mxmls
It’s an old post I know but it is always useful.
You can do ctrl + Space + Space (press space 2 times) to open a template list.
Really useful to create a “for” or a getter/setters/private var group in no time
@Ccr Yep, one of my favorites.