18th Jun2009

Pushing Pixels !

by Johan Borgström

I had an idea to split an image up in tiny squares that the viewer could move around. To get that to work I played around with the copyPixels function in as3. It allows you to copy pixels from a bitmap image and “paste” them into another bitmap. Click and see what happens ! Happy pushing ;p

Get Adobe Flash player

The clip below is the result of me trying out the copyPixels function in as3. It allows you to copy pixels from a bitmap image and “paste” them into another bitmap. Click and see what happens ! :)


<p><a href=”http://adobe.com/go/getflashplayer”><img src=”http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif” alt=”Get Adobe Flash player” /></a></p>

07th Jun2009

Get Nearest Movieclip

by Johan Borgström

In a curent project I needed to write a function that given an input value and an array of values, returned the array index of the input array that was nearest to the input value. I played around with that concept and wrote a class that given an array of movie clips and an input value (in this case the mouse position) returns two values, the first is which clip is closest to the mouse and the second return value is the distance between the mouse and the clip. I also played around with adding filters and blending modes with actionscript which I haven´t tried before. Click on the text to go full screen. I am quite happy with the result. This is a conceptual project but my idea is that this could be some kind of portfolio where each “egg” could contain media, animation or other information.

Get Adobe Flash player

In a curent project I needed to write a function that given an input value and an array of values, returned the array index of the input array that was nearest to the input value. I played around with that concept and wrote a class that given an array of movie clips and an input value (in this case the mouse position) returns two values, the first is which clip is closest to the mouse and the second return value is the distance between the mouse and the clip. I also played around with adding filters and blending modes with actionscript which I haven´t tried before. Click on the text to go full screen. I am quite happy with the result. This is a conceptual project but my idea is that this could be some kind of portfolio where each “egg” could contain media, animation or other information.


<p><a href=”http://adobe.com/go/getflashplayer”><img src=”http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif” alt=”Get Adobe Flash player” /></a></p>