Posted by: KoPanda Mar 21 2007, 07:42 AM
Hi all,
I'm
new to Sandy and I just love it after viewing the demos. I downloaded
Sandy 1.1 and try to follow the tutorial to see how it works. I copied
and pasted the code form the first tutorial to flash but flash failed
to compile it. It gave me the following errors.
QUOTE
**Error**
D:\Work Folder\Flash\Library\sandy\view\IScreen.as: Line 38: The class
or interface 'sandy.view.Camera3D' could not be loaded.
public function setCamera( c:Camera3D ):Void;
**Error**
D:\Work Folder\Flash\Library\sandy\view\ClipScreen.as: Line 19: The
class or interface 'sandy.view.Camera3D' could not be loaded.
import sandy.view.Camera3D;
**Error** D:\Work Folder\Flash\Library\sandy\view\ClipScreen.as: Line 57: The class or interface 'Camera3D' could not be loaded.
public function setCamera( c:Camera3D ):Void
**Error**
D:\Work Folder\Flash\Library\sandy\view\ClipScreen.as: Line 128: The
class or interface 'Camera3D' could not be loaded.
private var _c:Camera3D;
**Error**
D:\Work Folder\Flash\Library\sandy\core\World3D.as: Line 128: The class
or interface 'sandy.view.Camera3D' could not be loaded.
public function addCamera ( cam:Camera3D ):Number
**Error**
D:\Work Folder\Flash\Library\sandy\core\World3D.as: Line 149: The class
or interface 'sandy.view.Camera3D' could not be loaded.
{
**Error**
D:\Work Folder\Flash\Library\sandy\core\World3D.as: Line 250: The class
or interface 'sandy.view.Camera3D' could not be loaded.
{
**Error**
D:\Work Folder\Flash\Library\sandy\core\World3D.as: Line 267: The class
or interface 'sandy.view.Camera3D' could not be loaded.
var cam:Camera3D ;
**Error**
D:\Work Folder\Flash\Library\sandy\core\World3D.as: Line 424: The class
or interface 'sandy.view.Camera3D' could not be loaded.
private var _oCam:Camera3D;
**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 16: The class or interface 'sandy.view.Camera3D' could not be loaded.
var cam:Camera3D = new Camera3D( 700, ecran);
Total ActionScript Errors: 10 Reported Errors: 10
Any idea what happened?
Posted by: Petit Mar 21 2007, 12:57 PM
QUOTE(KoPanda @ Mar 21 2007, 08:42 AM)

Any idea what happened?
It will seem that Flash finds all the classes except Camera3D.
Have you checked that you have Camera3D.as in D:\Work Folder\Flash\Library\sandy\view\
?
Another tip. If you have moved the class libraries of Sandy around, and have made attempts to compile earlier,
you may have to delete ASO files ( cached compiled classes ), when you compile again.
You do this under Control/Delete ASO Files (and Test Movie ).
If
you are working with more Sandy projects, I hope you add the library
directory to the global class path in Flash. Edit/Preferences - select
ActionScript - Click "ActionScript 2.0" button.
In the dialog press '
+' and add the path to D:\Work Folder\Flash\Library
Posted by: KoPanda Apr 4 2007, 09:05 AM
QUOTE(Petit @ Mar 21 2007, 08:57 PM)

It will seem that Flash finds all the classes except Camera3D.
Have you checked that you have Camera3D.as in D:\Work Folder\Flash\Library\sandy\view\
?
Another tip. If you have moved the class libraries of Sandy around, and have made attempts to compile earlier,
you may have to delete ASO files ( cached compiled classes ), when you compile again.
You do this under Control/Delete ASO Files (and Test Movie ).
If
you are working with more Sandy projects, I hope you add the library
directory to the global class path in Flash. Edit/Preferences - select
ActionScript - Click "ActionScript 2.0" button.
In the dialog press '+' and add the path to D:\Work Folder\Flash\Library
Thanks for you advice. But what if I have already...
1. confirmed that Camera3D.as is placed under D:\Work Folder\Flash\Library\sandy\view\
2. deleted the ASO files
3. added D:\Work Folder\Flash\Library\ to the classpath
I
still can't compile the file properly. It gives the same errors. I just
don't understand. I have no problems using other classes from flash.