ciao a tutti,
sto iniziando a studiare sandy 3d seguendo la guida sul sito ma ho alcuni problemi in fase di pubblicazione.
Vi riassumo velocemente i passaggi per capire se sto sbagliando qualcosa a monte...
1- scaricata la libreria di sandy, creata una nuova cartella (ASLibraries) all'interno di 'C:\Programmi\Adobe\Adobe Flash CS3\' e copiate all'interno di questa le due cartelle 'com' e 'sandy'.
2- nelle preferenze di flash ho aggiunto il path relativo nelle impostazioni di as2
3- creato un fla di prova con all'interno solo l'istruzione include del file di esempio 'CubeTest.as', ambedue i file nella stessa directory.
Al momento dell'esportazione mi indica in output questi errori:
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\skin\MixedSkin.as, Line 142: There is no property with the name 'GO_BRIGHT'.
if(World3D.GO_BRIGHT)
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\skin\MixedSkin.as, Line 144: There is no method with the name 'getLight'.
var lightStrength:Number = World3D.getInstance().getLight().calculate(face.cr eateNormale()) +
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\skin\MixedSkin.as, Line 171: There is no method with the name 'getLight'.
var lightStrength:Number = World3D.getInstance().getLight().calculate(face.cr eateNormale()) +
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\skin\TextureSkin.as, Line 178: There is no method with the name 'getLight'.
var lightStrength:Number = World3D.getInstance().getLight().calculate(f.creat eNormale()) +
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\skin\TextureSkin.as, Line 198: There is no property with the name 'GO_BRIGHT'.
if(World3D.GO_BRIGHT)
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\skin\MovieSkin.as, Line 59: There is no method with the name 'getContainer'.
_mc = World3D.getInstance().getContainer().createEmptyMo vieClip("Skin_"+_ID_, -10000-_ID_);
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\skin\MovieSkin.as, Line 76: There is no method with the name 'getContainer'.
_mc = World3D.getInstance().getContainer().attachMovie(u rl, "Skin_"+_ID_, -10000-_ID_);
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\skin\MovieSkin.as, Line 92: There is no method with the name 'getContainer'.
_mc = World3D.getInstance().getContainer().createEmptyMo vieClip("Skin_"+_ID_, -10000-_ID_);
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\skin\MovieSkin.as, Line 275: There is no method with the name 'getLight'.
var lightStrength:Number = World3D.getInstance().getLight().calculate(f.creat eNormale()) +
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\skin\MovieSkin.as, Line 357: There is no property with the name 'GO_BRIGHT'.
if(World3D.GO_BRIGHT)
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\core\Object3D.as, Line 124: There is no method with the name 'getContainer'.
container = World3D.getInstance().getContainer().createEmptyMo vieClip("object_"+_id, _id);
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\core\Object3D.as, Line 300: There is no property with the name 'onUpdateEVENT'.
_s.removeEventListener( SkinEvent.onUpdateEVENT, this );
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\core\Object3D.as, Line 301: There is no property with the name 'onInitEVENT'.
_s.removeEventListener( SkinEvent.onInitEVENT, this );
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\core\Object3D.as, Line 304: There is no property with the name 'onUpdateEVENT'.
_s.addEventListener( SkinEvent.onUpdateEVENT, this, __onSkinUpdated );
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\core\Object3D.as, Line 305: There is no property with the name 'onInitEVENT'.
_s.addEventListener( SkinEvent.onInitEVENT, this, __onSkinInited );
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\core\Object3D.as, Line 324: There is no property with the name 'onUpdateEVENT'.
_sb.removeEventListener( SkinEvent.onUpdateEVENT, this );
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\core\Object3D.as, Line 327: There is no property with the name 'onUpdateEVENT'.
_sb.addEventListener( SkinEvent.onUpdateEVENT, this, __onSkinUpdated );
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\core\Object3D.as, Line 328: There is no property with the name 'onInitEVENT'.
_sb.addEventListener( SkinEvent.onInitEVENT, this, __onSkinInited );
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\core\Object3D.as, Line 673: There is no property with the name 'onUpdateEVENT'.
_s.removeEventListener( SkinEvent.onUpdateEVENT, this );
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\core\Object3D.as, Line 704: There is no method with the name 'getMatrix'.
return _t.getMatrix();
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\core\Object3D.as, Line 855: There is no method with the name 'getContainer'.
container = World3D.getInstance().getContainer().createEmptyMo vieClip( "object_"+_id, _id );
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\skin\BasicSkin.as, Line 43: There is no property with the name 'onUpdateEVENT'.
public static var onUpdateEVENT:EventType = SkinEvent.onUpdateEVENT;
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\skin\BasicSkin.as, Line 47: There is no property with the name 'onInitEVENT'.
public static var onInitEVENT:EventType = SkinEvent.onInitEVENT;
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\skin\BasicSkin.as, Line 51: There is no property with the name 'onErrorEVENT'.
public static var onErrorEVENT:EventType = SkinEvent.onErrorEVENT;
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\skin\BasicSkin.as, Line 117: There is no property with the name 'onUpdateEVENT'.
_eOnUpdate = new SkinEvent( SkinEvent.onUpdateEVENT, this, getType() );
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\skin\BasicSkin.as, Line 118: There is no property with the name 'onInitEVENT'.
_eOnInit = new SkinEvent( SkinEvent.onInitEVENT, this, getType() );
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\skin\BasicSkin.as, Line 119: There is no property with the name 'onErrorEVENT'.
_eOnError = new SkinEvent( SkinEvent.onErrorEVENT, this, getType() );
**Error** C:\Programmi\Adobe\Adobe Flash CS3\ASLibraries\sandy\skin\BasicSkin.as, Line 128: There is no method with the name 'getLight'.
World3D.getInstance().getLight().addEventListener( Light3D.onLightUpdatedEVENT, this, __onLightUpdated );
**Error** Scene=Scene 1, layer=Layer 1, frame=1, Line 26: Type mismatch.
**Error** Scene=Scene 1, layer=Layer 1, frame=1, Line 33: There is no method with the name 'addCamera'.
**Error** Scene=Scene 1, layer=Layer 1, frame=1, Line 39: There is no method with the name 'setRootGroup'.
Total ActionScript Errors: 31, Reported Errors: 31
In sostanza non trova delle proprietà e dei metodi indicati all'interno di alcuni file.as presenti nella nuova libreria.
Potrebbe essere una stupidaggine ma non riesco a capire dove sbaglio...
grazie in anticipo a tutti per la collaborazione!
ciao

...
Rispondi quotando