Page 6

ActionScript Flash

AS3 Hex Colour Dodge blending utility

The following is a function that takes two hex colours – a top colour and a bottom colour – and blends them using the Colour Dodge blend mode as found in Illustrator of Photoshop. This is handy for dynamically generating colour variants based on the blend mode. Instead of blending two display objects it simply […]

November 12, 2012

ActionScript Flash

AS3 Easy gapless sound looping solution

If you have come accross the issue of sounds not looping seamlessly in a Flash project then try the following.Simply offset the start of the sound by 80 milliseconds:

November 11, 2012

ActionScript Flash PHP

Emailing images directly from Flash with PHP

For an interactive drawing project I worked on recently I needed to provide the ability for users to email their artwork directly from the app without the need to save any images to a server. I pieced together a solution from various blogs and websites and I decided to provide the full source here. The […]

September 8, 2012

PHP Web Development

Using PHP to dynamically display the current year

Update 20-9-1012: As Kimonoki pointed out in the comments, this can actually be done in one line. There is no need to store the $time variable as the second parameter for date() is optional and defaults to time(). I have updated the snippet below. I am posting this for reference for myself as I find […]

August 22, 2012

ActionScript Adobe AIR Flash Javascript

Adding console.log() to AIR’s HTMLLoader

Here is a little code snipped I thought I’d post for future reference and may help someone else out. I was using the HTMLLoader class in Adobe AIR to load content and I came across an error where my Javascript was calling console.log(). In the AIR HTMLLoader environment this function does not exist so I […]

July 13, 2012

Inspiration Motion UI Video

Inspiring Inspiration #8

A collection of cool video, motion graphics and interface design, mostly if not all from Vimeo…

June 2, 2012

DSI Construction Multitouch

DSI Multitouch construction – Part 8

In the never ending quest to get better blob tracking on my touch screen I decided to add more cameras. A few months ago I added a second camera but they didn’t quite cover the whole screen – there was about an inch gap in the centre of the screen. I didn’t want to use […]

May 27, 2012

ActionScript Adobe AIR Flash Multitouch

Combining PixelBender paint mixing with TUIO blob size

This post has been sitting around in draft for a while now so thought I’d better publish it. I finally got around to recording a video demo of an app I’ve been working on for a client. I needed to combine my PixelBender paint mixing with blob size so that the brush is the size […]

May 13, 2012

ActionScript Experiments Flash Interactive Multitouch

Retrieving and using blob size from CCV with AS3

One thing I have been wanting to do for a quite a while now with my touch screen is use touch size data to determine the size of lines drawn on the screen. The other day I finally got around to researching experimenting with CCV. It turns out that CCV can send the width and height […]

March 16, 2012

After Effects Inspiration Interactive Motion Video

Inspiring Inspiration #7

A collection of cool video, motion graphics and interface design, mostly if not all from Vimeo…

March 14, 2012

ActionScript Flash

AS3: Calculate the perceived brightness of a colour

This short post is mainly just a reference for myself but could also come in handy in your projects. I wanted to set text to either white or black depending on the brightness of the colour it was sitting on. I came across this post which provided a formula and some C# code so I was […]

March 13, 2012

ActionScript Adobe AIR Flash Javascript

A simple way to get native alerts with Adobe AIR

In an AIR project I am currently working on I wanted to have native alert boxes in my app rather than building custom pop up boxes. There is no built in way to get native alerts in AIR and I remembered reading this interview over at leebrimelow.com a while back where a developer at Illume used StageWebView […]

March 8, 2012