Hi,
I am loading a simple 3D object as follows:
_loader = new Loader3D();
_loader.addEventListener(LoaderEvent.RESOURCE_COMPLETE, onResourceComplete);
_loader.addEventListener(LoaderEvent.LOAD_ERROR, onLoadError);
_loader.load( new URLRequest('vase.awd') )
private function onResourceComplete(ev : LoaderEvent) : void
{
_loader.removeEventListener(LoaderEvent.RESOURCE_COMPLETE, onResourceComplete);
_loader.removeEventListener(LoaderEvent.LOAD_ERROR, onLoadError);
_view.scene.addChild(_loader);
trace('Loaded Resource');
}
On running on the iPhone emulator on desktop (on FlashBuilder) the object loads fine.
But on iPhone the object can be seen only when I touch the screen. When I release the touch the object disappears. On touching again the object appears back.
Object is loaded successfully in both desktop emulator and iPhone as the trace message comes only once for both cases.
Any ideas for what I should do to get the object to appear after loading on iPhone without having to touch the screen?
Thanks.