Introducing ActionSnip

My new year’s resolution is to organize my ActionScript snippets, so I made a website to do just that actionsnip.com.

I know yes another snippet site, but none of the others highlight ActionScript properly. And because I don’t only collect snippets but blog posts about ActionScript as well there’s a feature called scraps which lets you save useful posts along side your snippets.

Other features include saving favorite snippets/scraps that others have posted, and a ’steal this code’ link which gives you highlighted code to embed in your blog just like the example below (here’s the original on ActionSnip)

Returns true if inputed email is valid.

function emailValid( email:String ):Boolean
{

    var emailRegExp:RegExp = /(A(s*)Z)|(A([^@s]+)@((?:[-a-z0-9]+.)+[a-z]{2,})Z)/i;
    return emailRegExp.test(email);

}


Usage …

// returns true
trace(emailValid("user@domain.com"));
// returns false
trace(emailValid("user@domaincom"));

// returns false
trace(emailValid("user%domain.com"));



If you don’t like the Flex Builder styling you can overide it with your own styles. Currently it supports just ActionScript but I’m working on MXML and MXML/ActionScript.

Most of the bugs are squashed but if you see anything let me know (it seems to bug out with a snippet over 500 lines of code so please just snippets for now). Constructive (and even destructive) criticism is welcome.

Snip away!

This entry was posted in ActionScript, ActionSnip, Flash, Flex, Shameless Self Promotion. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

12 Comments

  1. Tomo
    Posted January 8, 2008 at 12:37 pm | Permalink

    :) , Nice! yet another reason to visit Kreek’s website!
    Yoz, U’ve done any papervision? Can’t have an AS library without it: http://blog.papervision3d.org/
    ~ Si, que buena manera de eprender el año! con codigo organizado! Viva Kreekus!!

  2. Tomo
    Posted January 8, 2008 at 2:22 pm | Permalink

    Kreek, “Steal this code” gives me some html stuff, what’s that about?
    By the way, I just added two new snips, I hope they’re useful.

  3. Posted January 8, 2008 at 4:46 pm | Permalink

    Great idea! I have one request, RSS feeds to let us know when new snippets/scraps have been added. Otherwise I love it :)

  4. Posted January 8, 2008 at 4:46 pm | Permalink

    Tomo, yeah I wasn’t sure what to call it, it’s not copy the code of the snippet (which I think some people think it is), it’s copy the marked-up code with highlighting which you can then use on another blog or site.

    I saw your snippets, thanks for posting!

  5. Tomo
    Posted January 8, 2008 at 6:41 pm | Permalink

    Yeah, At first glance, it looks like a “Copy” shortcut. Maybe call it “Snip + CSS” or something like that… Hey, I like Paulo’s idea W/the RSS. I know you got to feed the pixels, but maybe move the big-ass banners to the right :P
    - How about adding a category list? Some of the stuff I posted is more or less AS2, not Flex, or MXML. Just a thought

  6. Posted January 8, 2008 at 6:54 pm | Permalink

    Hey Paulo, ask and you shall receive! http://www.actionsnip.com/feed :)

  7. Tomo
    Posted January 8, 2008 at 6:54 pm | Permalink

    Hey sorry to spam jer blog here… but how do I search for snips?…….Cool site duh, ….. I promise, I won’t spam more :P

  8. Posted January 8, 2008 at 6:58 pm | Permalink

    heh Tomo as a former colleague of FirstInternetMedia/Innuity/FirstMediaWorks/MediaSpan :P joo are always welcome here my friend…

    Search is coming soon, just want to get some snippets in the db first, the more popular ActionSnip is the more work I’ll put in!

  9. Posted January 9, 2008 at 10:37 am | Permalink

    Love the site.

    What do we do with the Steal this code? Its not for TextMate right? And this is crazy but Flex does not offer the code snippets… ouch.

  10. Posted January 9, 2008 at 11:17 am | Permalink

    Hey Jonathan thanks,

    Yeah ’steal this code’ has not been the best implemented (maybe named) idea, it’s to grab code that you can post on your blog all highlighted up.

  11. Tomo
    Posted January 9, 2008 at 2:25 pm | Permalink

    Hey, thanks kreek, just in case u’re at it w/the search……an option to search the code as well would be pretty cool. Ho, by the way, the RSS feeds works great on my psp.

  12. Posted January 16, 2008 at 6:24 am | Permalink

    Wee, loving the feed! Thanks Alastair :)

2 Trackbacks

  1. By ScribeLabs » ActionSnip on January 8, 2008 at 1:42 am

    [...] from the heavy hitters at Vixiom, comes the website ActionSnip which allows you to save your AS online: I know yes another snippet [...]

  2. [...] empezar el año con buenas noticias Alastair Dawson de Vixiom Axioms dice que estaba queriendo ordenar todo su código con el comienzo de año y creo está página [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word