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.

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>