Throwing error in an load(new urlrequest)

Software: Away3D 4.x

Josepho, Newbie
Posted: 09 February 2012 07:42 PM   Total Posts: 13

Hi, Im very noob on away3d, i downloaded all the examples of the repository and the last verison of away3d.

I was trying several examples like loader3dstest that has the next line

_container.load(new URLRequest('assets/models/f360.3ds')); 

And always in all the examples i get i got the same result, an error is throwed in the assetLibrary line 568

private function onDependencyRetrievingError(event LoaderEvent) : void
  {
   
var ext:String event.url.substring(event.url.length-4event.url.length).toLowerCase();
   if (
hasEventListener(LoaderEvent.LOAD_ERROR)){
    dispatchEvent
(event);
   
}
   
   
else throw new Error(event.message);
  

What can i do, i archieve to compile other examples like the basic_OBj and more examples but nothing with the line with the urlrequest

Im using flashdevelop 4

   

John Brookes, Moderator
Posted: 09 February 2012 08:07 PM   Total Posts: 732   [ # 1 ]

fd tells you what the error is about
eg
[Fault] exception, information=Error: Error #2032: Stream Error.
URL: file:///C|/Users/JB/Flash/JB/AW4Examples/bin/assets/models/f360.3ds

Its looking for the file at the above location, but cant find it.

So either change the url or move the file to where its looking.
eg
_container.load(new URLRequest(’../src/assets/models/f360.3ds’));

or just drop the assets folder into the bin folder.

   

Josepho, Newbie
Posted: 10 February 2012 01:43 AM   Total Posts: 13   [ # 2 ]

Ooh you were right thanks! :D

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X