Splitting Strings

prototypes | 08 Feb 2007 | 5 comments

prototypes | 08 Feb 2007 | 5 comments

Splitting Strings

Split strings to an array of phrases

I was working on a project recently where I recieved a data feed and needed to split it into sections that would fit into a text box (ie. 200 characters at a time). The user would then click ‘more‘ and progress through the text in segments until they had read all of it.

I wrote this simple prototype, which splits a string into sections of a defined size (and optionally adds a postfix, ie. “…” to the end), and returns an array containing the segmented text. // Read More

Dynamic Positioning

Actionscript 2.0 | 27 Sep 2006 | 14 comments

Actionscript 2.0 | 27 Sep 2006 | 14 comments

Dynamic Positioning

Creating fullscreen flash sites

Dynamic Positioning

Since fullscreen flash websites have become so popular; this little trick (a necessity really) has been used to make sure that no matter what screen resolution a user has, they can experience the site in the way in which the designer intended.

I realise that listeners are common knowledge, but I have had a lot of emails asking about dynamic positioning so I have written this brief tutorial on how to get all the elements in your Flash movie to position themselves automatically when the user’s browser window resizes, or if they are using a different screen resolution to you and you hate the idea of letting the movie scale! // Read More

Array search and replace

prototypes | 23 Sep 2006 | no comments

prototypes | 23 Sep 2006 | no comments

Array search and replace

Search and replace array items

Another find and replace prototype that might be useful for someone. Flash has some useful inbuilt functions like pop() which make life easier, but this prototype will search an array for a particular value and remove it, returning the new array. // Read More

String search and replace

prototypes | 22 Sep 2006 | no comments

prototypes | 22 Sep 2006 | no comments

String search and replace

Replace a string with another string

A useful prototype for running a ’search and replace’ on a string in Flash. Great, for example, when a database is spewing out rubbish string pre/post fixes, or HTML code that Flash doesn’t support. Im sure there is similar stuff out there but I hope it will be useful for someone none-the-less. // Read More

Fuse Kit for Flash

Actionscript 2.0 | 15 Sep 2006 | one comment

Actionscript 2.0 | animation | 15 Sep 2006 | one comment

Fuse Kit for Flash

Tweening management and shortcuts

Fuse Kit for Flash

Fuse kit is pretty much the most useful Flash extension that a designer could posses at the moment. I have been using the Zigo tweening engine for a long time, and started beta testing Fuse for Moses Gunesch at www.mosessupposes.com a few months back. Fuse now seems to be on public release and trust me, it’s a gem. // Read More