replaceAll() function for Javascript (and ActionScript)

Ever needed to replace all the instances of a string in Javascript (or ActionScript)? This function takes three parameters, the string to find, the string to replace it, the string to search and an optional setting to toggle case sensitivity. Syntax .replaceAll(target:string, findToRemove:string, replacement:string, [caseSensitive:int=0 ]) Example function call searching the string “Bob, bob and…

Read More

HTML5 Canvas Snow Storm

It is getting to that time of year again. Digging around in the attic I found an old-fashion Flash/Actionscript snow storm. Oh Happy days … but as it is 2011 what we really need is a HTML5 snowstorm. http://www.mustbebuilt.co.uk/demo/html5/canvas-snow.html Here is breakdown of the code. First you need a canvas. To use this canvas element…

Read More

Adobe Edge ‘ Post Flash’ Animations

Adobe Edge, available in beta, is a ‘post Flash’ animation tool. It generates animations constructed with web standards HTML5, CSS3 and Javascript (mainly piggy backing on jQuery). The interface is very familiar to Adobe After Effects in terms of the timeline and property keyframes. In terms of functionality it has the lightweight options for adding…

Read More