Escape Shortcut keys
Ok, so I know this is not really AS, but I still find it very time-saving and good.
Escape shortcut keys are basically what it sounds like. You press [ Esc ], write two letters and a certain AS command is automatically written. Other than that it saves some time, it makes sure things are correctly spelled, formatted and such.
Note that you don’t have to press them at the same time, just in the right order.
For example, if I write [Esc] pl, then what you should do is:
Press and release Escape
Press and release p
Press and release l
There isn't much more to add to it, I'll just add a list of my favorites, and a full list.
My personal favorites
[Esc] st = stop();
[Esc] pl = play();
[Esc] gs = gotoAndStop();
[Esc] gp = gotoAndPlay();
[Esc] nf = nextFrame();
[Esc] pf = prevFrame();
[Esc] oc = onClipEvent () { }
[Esc] if = if () { }
[Esc] fr = for () { }
[Esc] fn = function () { }
[Esc] tr = trace();
Full list, except the ones listed above
[Esc] ns = nextScene();
[Esc] ps = nextFrame();
[Esc] ss = stopAllSounds();
[Esc] fs = fscommand();
[Esc] gu = getURL();
[Esc] lm = loadMovie();
[Esc] ln = loadMovieNum();
[Esc] lv = loadVariables();
[Esc] vn = loadVariablesNum();
[Esc] um = unloadMovie();
[Esc] un = unloadMovieNum();
[Esc] dm = duplicateMovieClip();
[Esc] on = on() {}
[Esc] rm = removeMovieClip();
[Esc] sp = setProperty();
[Esc] dr = startDrag();
[Esc] sd = stopDrag();
[Esc] pr = print();
[Esc] pb = printAsBitmap();
[Esc] bn = printAsBitmapNum();
[Esc] pn = printNum();
[Esc] cl = class { }
[Esc] ip = import
[Esc] it = interface { }
[Esc] br = break;
[Esc] ce = case condition :
[Esc] co = continue;
[Esc] dt = default :
[Esc] do = do { } while ();
[Esc] el = } else {
[Esc] ei = } else if () {
[Esc] sw = switch () { }
[Esc] wh = while () { }
[Esc] ch = catch () { }
[Esc] fy = finally { }
[Esc] th = throw ;
[Esc] ty = try { }
[Esc] rt = return ;
[Esc] de = delete ;
[Esc] sv = set ();
[Esc] vr = var ;
[Esc] wt = with () { }
[Esc] ic = #initclip
[Esc] ec = #endinitclip
[Esc] in = #include ""
[Esc] ca = call ();
[Esc] il = ifFrameLoaded () { }
[Esc] tt = tellTarget () { }
[Esc] tq = toggleHighQuality();
That's it, try it out! It might feel uncomfortable in the beginning, but it can eventually prove to be very useful!
I'll go to bed now, will answer possible questions tomorrow.
