PDA

View Full Version : Flash MX 2004 Commands Battle



senocular
September 11th, 2003, 03:40 PM
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.

ahmed
September 11th, 2003, 03:43 PM
that's a great idea sen :)

Do you know where can i look up all the commands?

and, i was thinking, can you something like this:
dom = fl.getDocumentDom();
for ( prop in dom ) trace( dom ) well, i doubt trace works as a command, but you get the idea :)

senocular
September 11th, 2003, 03:49 PM
since its javascript, youd use alert instead of trace ;) but in doing that I didnt get a full list of commands (as I have tried that to find out heh)

that just gives

appName, appVersion, systemScript, tools, drawingLayer, Math, documents, effects, configDirectory, configURI, outputPanel, componentsPanel, xmlui, screenTypes, version, getDynamicSWFURL, mruRecentFileList, mruRecentFileListType, createNewDocList, createNewDocListType, createNewTemplateList

I know browseForFileURL works, and thats not in there. saveJSCommand is what saves in Fireworks and it doesnt seem to be doing so in Flash.


oh, and the MM documentation is "Coming soon" :crazy:

ahmed
September 11th, 2003, 03:54 PM
oh i see, thanks for the info! :beam:


"coming soon".. lol :sigh:

senocular
September 11th, 2003, 04:05 PM
if and when it comes, it'll be here:

http://www.macromedia.com/support/documentation/en/flash/index.html#jsapi

ahmed
September 11th, 2003, 04:15 PM
*bookmarks*

thanks you!

senocular
September 12th, 2003, 09:42 AM
DOH! I should have thought of this earlier :sigh:

File > New ... Flash Javascript File

Then you can get code hints :beam: and have the books on the left for reference (though there is not yet help associated with them functions)

ahmed
September 12th, 2003, 03:38 PM
lol.. i wouldn't even know where to start :P

btw, did you see this? http://www.flashextensibility.com

senocular
September 12th, 2003, 03:50 PM
oooh whered you find that link? :beam:

if I only had access to all this crap.... argh, Im going to be a beta tester for the next one, write a book and make MILLIONS!!! :scream:



:love:

(and that 3d cube tool is a total rip off mine for FW ;))

ahmed
September 12th, 2003, 03:55 PM
haha :beam:

http://www.bit-101.com/forum/viewtopic.php?t=2240 :love:


Originally posted by senocular
(and that 3d cube tool is a total rip off mine for FW ;)) see this thing :-\

http://www.kirupaforum.com/forums/showthread.php?threadid=34012&highlight=senocular

senocular
September 12th, 2003, 04:01 PM
lol



Originally posted by ahmed
http://www.kirupaforum.com/forums/showthread.php?threadid=34012&highlight=senocular

those bastards - kind of blows away everything I did for that other panel :a:

eki
September 18th, 2003, 06:19 AM
Hi,
you may be interested in the Extendflash@flashguru.co.uk mailing list.

SHO

senocular
September 18th, 2003, 08:44 AM
Im already on it :P

eki
September 18th, 2003, 09:04 AM
:sure:
Thought so but put it anyway, just in case it helps anyone

Other interesting links :

http://macrofun.pvpers.com/

http://www.antville.org/gd/mizu*****y/FlashJavaScriptHelp.jsfl

http://www.dynamicflash.co.uk/jsfl/

SHO

:)