I have an Away3D(March 2014 version) project that I have moved over to a new server that now stops executing when it hits an attempt to load a jpg into a bitmapMaterial. Here's the method I used:
function loadShelf(pic): void {
shelfLoader = new Loader();
shelfLoader.load(new URLRequest(pic));
shelfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onShelfLoadComplete);
}
function onShelfLoadComplete(event: Event): void {
GLASS.img.addChild(shelfLoader); //the image loads successfully into a 2D clip
// the movie halts when it hits shelfMaterial
shelfMaterial = new BitmapMaterial(Cast.bitmap(event.target.content));
}
This problem does not occur on the original Windows 2003 server, just the new one. Any ideas?
Crossdomain issue maybe? You can load images from other domains and manipulate the Loader on loading the image, but you cannot perform insecure operations on it (like accessing the content or BitmapData.draw operation).