Archive für Juli 2007

Heapsort - a handy litte class.

Some of you asked me, for some reason, to update an old array-sort-example i´ve rewritten for flash6 in due time - the heapsort. I think it´s not necessary nowadays because flashs built-in array sort-methods are quick and easy to use, but for all those who asked for - here´s a little as3 heapsort class ( download fla and class ).

package fr.utils {
public class heapsort {

var n:int;
var w:int;
var a:Array;

public function heapsort( arr:Array ) {
a = arr;
n = arr.length;
initheap();
}

private function initheap() {
buildheap();
while( n>1 ) {
n–;
exchange(0,n);
downheap(0);
}
}

private function buildheap() {
for (var v:int=n/2-1; v>=0; v–) {
downheap (v);
}
}
private function exchange( i:int, j:int ) {
t=a[i];
a[i]=a[j];
a[j]=t;
}

private function downheap( v:int ) {
w = 2*v + 1;
while ( w
if ( w+1
if ( a[w+1]>a[w] ) w++;
}
if (a[v]>=a[w]) return;
exchange(v, w);
v=w;
w=2*v+1;
}
}
}
}

PV3D room-viewer API.

Last days the company i work for ( anyMOTION Graphics ) released the first betaversion of my 3D room-viewer application. i scripted this api within´ three days, so let´s say it´s a ruff sneak preview of what it´s going to be when it´s finalized later on. So here you have an eye up on it.

- Use the arrow buttons ( down right and left ) to rotate horinzontal

- Use the magnifier buttons ( upper right corner ) to zoom in and out

- Press and hold mouse button down, then move mouse to rotate vertically

Flashforum Conference 07

Yearly Conference is finally announced…

Flashforum Konferenz 2007

Hope to meet you in Cologne. Maybe we can meet there and get to know each other… interested?
Just write me a mail

PV3D waveforms

last days i played around with papervision3d once again…

my thought was to script some kind of fluid forms in actionscript3 and then use ´em as texture for papervision3D-objects. the result is this little applet i called pv3d waveforms. And for sure you can download the sources

pv3d waveforms

Goodbye costa de la luz.

2 weeks full of pure relaxation are over now. my great efforts there were reading a few good books, spending time at the beach or pool, enjoying the sun and just doing nothing. So i´m recovered now and looking forward to post some as3-snippets i had in my mind in the past 2 weeks…

costa de la luz

14 days holliday break.

i’m taking a timeout in spain to catch some sunny days in andalucia. so there will be no new stuff or entries in my blog for the next 2 weeks…

|