Hi,
I have had problems getting my models to load when ran online and in a different folder, but work fine when running the file directly from the debug folder (running debug in flash builder).
For example, in the browser header: “file///c:/project1/bin-debug/file.swf” works fine, while “http://www.domain.com/bin-debug/file.swf” and “file///c:/project1/bin-release/file.swf” or even “file///c:/project1/bin-debug2/file.swf” does not load the 3d model. In all cases, there is an assets folder with the model inside it, relative to the swf.
I am using a simple way for loading and it works fine when debugging.
...
Loader:Loader3D = new Loader3D();
loader.load(new URLRequest(‘assets/vase.awd’));
loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onResourceComplete);
}
private function onResourceComplete(event : LoaderEvent) : void
{ loader.removeEventListener(LoaderEvent.RESOURCE_COMPLETE, onResourceComplete);
view.scene.addChild(loader);
}
But, when I run this through my browser on the web server, no model is loaded. Also, when I simply rename the debug folder from “bin-debug” to “bin-debug2”, it also does not find the model. I cannot find any reference to the bin-debug folder in my code, anywhere.
I added a crossdomain.xml file with a * wildcard to make sure there were no security issues when loading from anywhere. I am using the latest version of Away3D, just downloaded last week. I am using Flash Builder 4.5 with Flex 4.5.1. I have searched everywhere and cannot find anyone else with this issue.
I also tried and have the same issues using the AssetLibrary class.
Does anyone have any ideas as to why I am having these issues?
Thanks