Not able to compile PhysicsDemo

Software: Away3D 3.x

garynich, Newbie
Posted: 23 October 2013 07:30 PM   Total Posts: 3

Hello everyone.

I am trying to compile an example from physics pack, but I am facing couple problems. I am using necessary .swc libraries, but I stll have such issues:

Error: Error #2032: Stream Error. URL: file:///assets/scene.obj
at away3d.loaders::AssetLoader/onRetrievalFailed()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at away3d.loaders.misc::SingleFileLoader/handleUrlLoaderError()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

I have this problem because of this lines:

var _loader : Loader3D = new Loader3D();
_loader.load(new URLRequest(’/assets/scene.obj’));
_loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onSceneResourceComplete);

I will be very grateful if you will point on my mistake.

Thanks.

Yours faithfully,
garynich.

   

Avatar
GoroMatsumoto, Sr. Member
Posted: 24 October 2013 05:25 AM   Total Posts: 166   [ # 1 ]

The error you got is not concern about the physics engine.
It’s just a mistake of your file path setting.

You should modify the url to correct url.
Or move the “asset” folder into your bin folder.

Anyway, at first, find the “scene.obj” on your machine.
And set the URLRequest’s url to there.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X