Flash CS3 Snippets Panel Updated

So after a lot of trial and error I have removed the add and remove functionality from the panel. The JSFL API is just a little broken in some parts. If you click the edit button now it will open the XML file inside of Flash for easy editing. Personally I think this is fine so long as you write your snippets with the appropriate \n and \t escape characters. Editing an XML file is no big deal in the end so I’ll just leave it at this. I have also fixed the issue with the escape characters showing up in the Actions panel when you paste a snippet.

Download the updated extension and let me know if you have any issues.

Thanks,
Lee


Commentary

  1. Phil says:

    Awesome work on these pannels, this one is real nice and works with AS 2.0 or whatever you want.

    Thanks so much for the hard work on this stuff and the video tutorials, they are all boss.

  2. Roger says:

    Nice work & very useful panel! thanks for it Lee!

    i just have an issue here… i have no problems adding snippets, but when i click the “copy to clipboard” button i get this alert message:

    “The following JavaScript error(s) ocurred:
    SyntaxError: Missing ) after arguments list”

    i checked the code i added and looks fine actually is a working code in an AS file.

    any suggestion?

    Thanks!

  3. Roger says:

    ok, it was this:

    ‘string’

    so i added \ before the ‘ like this

    \’string\’

    and now there no warning message :)

  4. Thanks Lee, is very useful panel!! Cool!!

  5. Hui Martin says:

    Cheers Mr Brimelow – much appreciated as always. Mate, off the subject, and been meaning to ask forever – your blog theme, did you design it or is it one you downloaded?

    Thanks Lee

    x from down-under

  6. chris says:

    Thanks again man – we’re definitely on the same page when it comes to AS3 being a bit verbose – but this sure helps! Keep up the great work.

  7. Jonah says:

    Since you brought up extensions again Lee, I had a question. I’m trying to find the JSFL command to create a new file. I thought I had it with the createProject () method, but that wasn’t it. I don’t mean to turn this into a message board with silly questions, but any help would be appreciated. I just need that one command. Thanks!

  8. SEO says:

    Flash CS3,learn it .

  9. Quince says:

    The snippet is excellent.

  10. CapRatyja says:

    I was wondering if anyone knew if there was a way to copy a motion tween to several layers quickly or just more efficiently. Right now i am going one by one with 1000 plus layers to go.
    Thanks

  11. young says:

    It seems a very useful panel, but I can’t make that panel work:.
    I’m getting this warning message;

    “The following JavaScript error(s) ocurred:
    SyntaxError: Missing ) after arguments list”

    and as Roger mentioned [add / before '], i’ve tried to find ‘, but it’s not there.

    Any clue?

    Thanks.

  12. Chubb says:

    It seems that everyone has a range of snippets of their own.
    My Nr 1 in the list is this one

    which gives you something in the range of :

    package [REPLACE]{
    class [REPLACE]{
    /////////////////////
    //CONSTRUCTOR
    /////////////////////
    public function [REPLACE](){
    }
    /////////////////////
    //PUBLIC ACCESS
    /////////////////////
    /////////////////////
    //GETTERS SETTERS
    /////////////////////
    }
    }

    some ctrl-f magic and i have my new as file

  13. Siemer says:

    Oh! Oh! What I could really really really use is the ability to attach a shortcut to a piece of code.
    For instance, I often run a trace like this:

    trace(“if (currentQuestion ["+currentQuestion+"] <= maxQuestions ["+maxQuestions+"])”);

    And I’d looooove to have a shortcut to make, for instance, that little ["++"] part in one go!

  14. Leon says:

    Guys, check this out!!

    I’ve created a website that hosts Flash snippets. You can add them for free and browse the ever growing library.

    Best part is there is an extension (like Lee’s) that lets you view the snippets from the online database.

    Head over to http://www.flCodr.com now and open up a new account.

    Cheers – Leon Barrett

  15. Todd says:

    @Young (and anyone else with JavaScript error message. the last snippet needs the single quotes escaped to get it to work properly. so replace:

    ‘percent loaded’

    with:

    \’percent loaded\’

  16. ryan says:

    I’m still getting the aforementioned javascript error, though with v1.3 (downloaded 5-18-08) there are no single-quote characters to escape, etc.

    I can’t fix it. Any ideas?

  17. Chris says:

    Awesome thing that snippets panel!! I actually used a fla file as a kind of repository before I found this extension:P
    Would it be possible to add folders to the snippet panel?

  18. evert says:

    Wil there be an update for CS4?
    thnx

  19. I just wanna ask the same as evert..
    Would you make this little handy thing, available for Adobe Flash CS4? c”,)

  20. Steve says:

    It work with CS4 for me…

  21. Estevan says:

    It works fine with CS4, I just wish that you disabled the hand cursor on the buttons. :P Other than that, it’s great!

  22. Maxime says:

    It would be great to copy the snippet AS script by double-clicking on it, instead of selcting it and then clicking the Copy button.

    No ?

    Thanks.

  23. Erik says:

    First off, I’ve been craving this functionality for some time now. Kudos. That said I’m having issues and I’m wondering if anyone knows anything about this. The first few snippets I added loaded and worked just fine. Then when I add another 20 or so the panel comes up empty – no snippets at all. After resetting I tried two more times to load them in to no avail. Anyone have an idea as to what’s going on here? Is this panel limited to a smallish number of items perchance?

    Thanks

  24. Nerath K says:

    you probably have a string that isnt closed correctly. If you are using strings in the code you will need to use the single quote(‘) instead of the standard (“).

  1. [... So after a lot of trial and error I have removed the add and remove functionality from the panel. The JSFL API is just a little broken in some parts. ...]

  2. [... So after a lot of trial and error I have removed the add and remove functionality from the panel. The JSFL API is just a little broken in some parts. ...]

Leave a Comment