Flash MX 2004 Commands Battle

Honestly, this isnt so much a battle as it is just having fun with Commands. But with Flash MX 2004 now having that loverly JS API for the IDE, IMHO its AOK and ASAP IOCU812.

If you don’t know what a command is, no big deal. Just do some stuff in Flash, open the history panel, select the actions, copy using the copy icon at the bottom of the panel and paste them here :beam:

In the end, we can collect the favorite commands and package them all together under one group for a Kirupa collection.

Again, no big deal here, just after a little fun while we still have 20-30 days still left on our trial versions of MX 2004 maybe learning something while at it

No formal judging intended, though if so desired, that can be arranged. Just play around with your history panel and have some fun.

heres one to start off. This draws a box the size of the flash movie in the current layer using the current colors :beam:

dom = fl.getDocumentDOM();
dom.addNewRectangle({left:0, top:0, right:dom.width, bottom:dom.height}, 0);

Ive adopted my FW command prompt to be a Flash MX 2004 panel, though the save function doesnt work (the save command seems to be different for Flash and I have no reference to look it up) and its a probably a little buggy on the whole. If you dont know what it is, it allows you to easily run commands directly within Flash so you can easily test them out.