Erain 3D
-->

Compiling Problems and Their Solutions

To compile a Sandy example movie successfully, you need four things:

Compiler Errors

Typical compiler errors look like this:

**Error** Scene=Séquence 1, layer=Calque 1, frame=1:Line 14: The class or interface 'ClipScreen' could not be loaded.
var screen:ClipScreen = new ClipScreen( this.createEmptyMovieClip('screen', 1), 600, 600 );
 
**Error** Scene=Séquence 1, layer=Calque 1, frame=1:Line 16: The class or interface 'Camera3D' could not be loaded.
var cam:Camera3D = new Camera3D( 700, screen);
 
**Error** Scene=Séquence 1, layer=Calque 1, frame=1:Line 22: The class or interface 'Group' could not be loaded.
var bg:Group = new Group();
 
**Error** Scene=Séquence 1, layer=Calque 1, frame=1:Line 31: The class or interface 'Group' could not be loaded.
function createScene( bg:Group ):Void
 
**Error** Scene=Séquence 1, layer=Calque 1, frame=1:Line 34: The class or interface 'Object3D' could not be loaded.
var o:Object3D = new Box( 50, 50, 50 );
 
Total ActionScript Errors: 5 Reported Errors: 5

Sandy Version

There are many versions of Sandy and you may have the wrong one installed.

See sourcecode

ClassPaths

To set the correct classPath, see Petit's Tutorial here:

Be sure to use Flash's “Delete ASO Files” option to start with a clean slate when compiling

Correct Code for your Sandy Version

Many of the examples floating around were written in Sandy 1.1 and not yet updated for Sandy 1.2 or Sandy 2.0.

The easiest way to tell is by seeing if the examples compile successfully with another version of Sandy. See the porting FAQs here:

For example, if the code refers to ClipScreen, it is probably a Sandy 1.1 example that was never updated.

Other Problems

The above cases cover 90% of the problems/solutions. Other reported problems involve using a Chinese version of Windows (????). I don't remember the details and I could well be wrong.

If you get errors like this, then you are probably compiling with Flash MX 2004. Try using Flash 8 or Flash 9:

**Error** C:\Documents and Settings\****\My Documents\Flash 3D Test\com\bourre\events\EventBroadcaster.as: Line 384: The expression returned must match the function's return type.
return Delegate.create.apply( Delegate, [oL, f].concat(arguments.splice(2)) );

**Warning** Scene=Scene 1, layer=Layer 1, frame=1:Line 22: There is no class or package with the name 'sandy.core.group' found in package 'sandy.core'.
var bg:Group = new Group();

Total ActionScript Errors: 2 Reported Errors: 2