issue with loading a awd file using LoaderEvent in android

Software: Away3D 4.x

veggieman25, Newbie
Posted: 04 March 2016 05:44 AM   Total Posts: 12

Hi all I am having an issue with LoaderEvent when testing for android

var myLoader = new Loader3D();   
myLoader.addEventListener(LoaderEvent.RESOURCE_COMPLETEf_resourceComplete); 
myLoader.addEventListener(LoaderEvent.LOAD_ERRORf_loadError);   
myLoader.addEventListener(AssetEvent.ASSET_COMPLETEf_assetComplete); 
myLoader.load(new URLRequest('folderWhereMyAWDfilesAre/myAWDfile.awd')); 

When I debug for desktop everything works, when I debug for android device (or install it on the android device LOAD_ERROR is trigged)

I tried setting the file path to
myLoader.load(new URLRequest(’/data/data/air.myApp/myApp/Local Store/folderWhereMyAWDfilesAre/myAWDfile.awd’));
still get LOAD_ERROR

Any ideas?

UPDATE

—————

After reading http://away3d.com/forum/viewthread/4308/

I am now trying classes

UPDATE 2

—————
Classes are working perfectly, will be using that instead of loading awd files.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X