3ds model

Software: Away3D 3.x

faroer, Newbie
Posted: 17 August 2011 11:48 AM   Total Posts: 18

Hey Away3D community,

I just started with Away3D and bought a book the essential guide to 3d in Flash.

Currently I’m stuck at chapter 4. I get the 1023 incompatible override error.
And I don’t know what the problem is.

protected override function _createScene()
  
{
   _loader 
= new LoaderCube();
   
_loader.autoLoadTextures=false;

   var 
url:String 'planet.3DS';

   
_loader.addEventListener(Loader3DEvent.LOAD_SUCCESS_onSuccess);
   
_loader.loadGeometry(url, new Max3DS());
   
_loader.scale(10);
   
_view.scene.addChild(_loader);
  

this is the code that Flash says is wrong. All the files are in 1 map. Can anyone help me with fixing this problem?

   

Richard Olsson, Administrator
Posted: 17 August 2011 04:22 PM   Total Posts: 1192   [ # 1 ]

Probably because you are missing a return type, i.e. the last bit of the first line that would start with a colon, like so:

protected override function _createScene() : void 
   

faroer, Newbie
Posted: 17 August 2011 04:38 PM   Total Posts: 18   [ # 2 ]

Thanks, that worked. I thought the void was optional. But I guess it wasn’t.

Thank you anyway smile

I headed into another problem. When I compile it. I see a very quick animation. But I don’t get the trace that says Finished Loading in my output window. And no errors are given.

   

Avatar
Alexander Seifert, Moderator
Posted: 18 August 2011 07:43 AM   Total Posts: 129   [ # 3 ]

For traces in the output window make sure to run in Debug mode and have the Debug version of the flash player installed =)

 Signature 
signature_image

http://www.deltastrike.org

   

faroer, Newbie
Posted: 18 August 2011 10:02 AM   Total Posts: 18   [ # 4 ]
Alexander Seifert - 18 August 2011 07:43 AM

For traces in the output window make sure to run in Debug mode and have the Debug version of the flash player installed =)

Alex, thanks for your comment. It’s running into Debug Mode. And when I add traces into other functions they appear. I was looking into the code today again. And I think the problem might be the location url. both the .fla, .as and the .3ds are in the same map. But with that I’m getting a 1009 error Cannot access a property or method of a null object reference.

How can I fix this?

[EDIT]

Problem fixed ^^ Thanks all for your wonderful and helpfull comments smile

   
   
‹‹ Help with FaceHelper

X

Away3D Forum

Member Login

Username

Password

Remember_me



X