Free Custom Actions Component for Flash CS4

DiggThis

This Custom Actions Component enables code hints and code highlighting for custom classes in Flash CS4.

How do I install it?
Open Adobe Flash CS4, go to Help > Manage extensions, then just click "install" and locate the .mxp file.

How do I use it?
Go to window > other panels > Custom actions. In the window which opens, click on the button "+" and select a custom class ActionScript file (.as) which you´ve made, or you´ve downloaded. When you’ve added all the classes you want, just restart Adobe Flash CS4 and test your code hints.

Important!
The component will list all public function keywords, so your custom class must have the public, protected, internal and private keywords with the function keywords. It also lists public constants, public variables and public functions setter and getter as properties.

I made this component for my own use, but am happy to share it with Tuts+ users. I hope you like it!

Related Posts

Add Comment

Discussion 17 Comments

  1. Zsbee says:

    I have waited for this for so long!
    Thank you!
    I really appreciate your work!

  2. samBrown says:

    interesting….downloading for a test drive

  3. André says:

    If anyone want to improve this component, ask me here and i can provide the source files. Also when i have a little bit more time i will create another component with a better code, this one i´ve made for my own use so i didnt take care with right coding.

  4. Sk says:

    really very useful component for flash designers

  5. Rob says:

    Trying to test this in CS4 but I’m getting the following error with any class I add:

    ‘The following JavaScript error(s) occurred:

    SyntaxError: unterminated string literal’

    Tried with Tweener and TweenLite so far… Any ideas on where I’m going wrong?

    • André says:

      Open the class, and find any double quotes and change by single quotes ( ” => ‘), this may work, what happens is that this creates a custom XML and save in the custom actions folder of the configuration of Flash CS4, so if there is any double quote, it will break the javascript used to save the xml file, and will return the error…

      I didnt find any way yet to escape the double quotes in the classes, i´ve tryed to change automatically the double for single quotes, but didnt work…

      I already had problem when i tryed to add the TweenLite, i had to open and change the quotes… but i will work on my next version of the component to correct this bug…

      • Trist says:

        Have tried tip and still getting error. Even tried it on class with no quotes at all.

      • André says:

        So i have no more ideas, it´s the only issue i know is the quotes issue, that can be fixed changing all the double quotes for single quotes, i´ve tested it in 5 differents computers and all had success, the TweenLite class is one of the added here, also the SWFAddress and the papervision3d api…

      • Dru Kepple says:

        Hey André, I’ve had success with the “unterminated string literal” problem by running any text through escape() before passing it to JSFL, then running it through unescape() when in JSFL. SWF Panels are tricky…you have to think about a few levels of parseability; the ActionScript, the JSFL going into MMExecute, and any Strings contaned therein.

        As a simple example, here’s a “trace” function in AS, for use in a SWF Panel:

        public function flTrace(msg:*):void {
        MMExecute(“fl.trace(unescape(\”" + escape(msg.toString()) + “\”))”);
        }

  6. Oren says:

    graet component!!
    thanks a lot, although i’m using flashDevelop for as3…

  7. John Phoenix says:

    Thank you very much, this will come in very handy, I was on the verge of ripping the cs4 xml files apart to manually add the papervision classes.

    Thanks Again

  8. Simon says:

    Andre,

    I would love to get the source code for this and work on pushing it even farther. let me know.

  9. Khaled says:

    Thank you for sharing this component

  10. mKayyali says:

    Thanks a lot, that’s awesome

Add a Comment