Archive for the 'AS2' Category

Toro Rosso

Tuesday, March 27th, 2007 by Torsten

The next Red Bull F1 team strikes back with a brand new website. Our intention was to involve the user in such a way that he is really feeling close to what is happening on the race track.


The relaunch shows the usual Less Rain tuning (friendly Search Engine Optimization (SEO) , Alternate HTML version optimized for ScreenReader, Back Button, Deeplinking).

Sound design by Taeji Sawai, straight from Japan.

Related entries:

Papervision 3D Demos

Wednesday, February 14th, 2007 by Luis

Check out this examples of some fantastic work done with Papervision3D.

Related Posts:

Papervision3D: PaperDude Demo

Thursday, February 8th, 2007 by Luis

This is not about performance or Collada or clipping issues in PV3D, this is just about Paperfun and imperfections.

The very first time I heard about Papervision 3D I thought about my first experience with 3D when I was a little kid, it wasn’t related with computers at all, it was a very basic set of plane paper dolls similar to this.

Based on that old memories I decided to have a bit of Paperfun and crete the Paperdude.
Paperdude

Click here to see the demo.

UPDATE 20-02-2008 (Paperdude Second Generation):

Paperdude

Related Posts:

Flash: Cast to Array with MTASC

Friday, October 20th, 2006 by Thomas

Just had some new insight on the Cast to Array problem I had posted a while ago.

For the Flash IDE compiler the following 3 lines are synonymous, i.e. creating an Array with one object in it (resulting in the problem I had in my earlier post):

Actionscript:
  1. var a:Array = Array({x:1});
  2. var b:Array = [{x:1}];
  3. var c:Array = new Array( {x:1});


Not for MTASC though. MTASC seems to interpret Array() as a cast operator instead of a global conversion function. Can be tricky to debug, because for FDT and MTASC Array({x:1}) is legal syntax, namely a cast operation. They don't throw an error, but they don't create an Array either. If you have more than one element they do complain. Array(1,2,3) is illegal syntax for FDT and MTASC.

The following example class would behave differently in swf's compiled with MTASC or the Flash IDE. Which strengthens my belief that the Array() operator should better not be used at all.....

Actionscript:
  1. class ArrayTest
  2. {
  3.  
  4.     public function ArrayTest()
  5.     {
  6.         testArray(Array({x:1}));
  7.         // Flash: Array.length:  1
  8.         // MTASC: Array.length:  undefined
  9.    
  10.         testArray([ {x:1} ]);
  11.         // Both: Array.length:  1
  12.    
  13.         testArray(new Array( {x:1} ));
  14.         // Both: Array.length:  1
  15.     }
  16.  
  17.     private function testArray(ar:Array):Void
  18.     {
  19.         trace("Array.length: "+ar.length);
  20.     }
  21. }