How to sort an XMLList using E4X

//define a new sort array
var sorts : Sort = new Sort();
// create one or more fields to sort one
var field : SortField = new SortField("title",true,false,false);
// add all your fields to the sort fields list
sorts.fields = [ field ];
// define an XMLListCollection ( it contains a sort() method )
var col : XMLListCollection = new XMLListCollection( model.myXML.record as XMLList );
// define which sort fields list to use
col.sort = sorts;
// refresh the datasource
col.refresh();
// set the dataprovider of an e.g. List
listbox.dataProvider = col;

Bug in AS3 Loader class ?

Tried to debug a piece of code that didn’t trigger the completeEvent. In stead I reverted to the plain old width check.
Why is this old bug still alive and kicking?

private function progress ( e : * ) : void
{
if( loader.content != null )
{
if( loader.content.width > 0 )
{
complete(null);
}
}
}

Papervision 3D workshop London

What an intensive 2 days, packed with awesomness :)

Ralph Hauwert really showed off the updated and new features in PV3D 2.0. We got the chance to goth in depth info about the engine, the how’s and the what’s.

On the train back I created my own little galaxy with stars and planets, lights and shaders in about 30 minutes. Just to say: 3D is coming your way – fast!

Thanks Tim for the good nights rest I got to spend at your appartment and nice to meet your roommates too!
Also had a good time throughout the second day with Matthew.

PV3D course in London

I’ll be in London on December 11 & 12 for a 2 day Papervision 3D course lead by Ralph Hauwert. Always exciting to get into depth with such fine developers for the Flash Platform. The first PV3D projects are allready delivered, but I hope to refine the techniques and avoid certain culprits I encountered in the past.
The countdown has begun!

Flex Builder slow compile times

After hours of trying to find a solution for my huuuuuge compile times I had on a AS3 project in Flex Builder 2 I finally found the solution!

It seems the network drive I was using was the bottleneck. Moved my AS3 project to my c:/work drive and everything is blazing fast! I don’t even notice the compilation anymore. It’s gone from more than 1 minute to < 1 second! Now that’s what I call incremental compilation :)