Uhh... init stage

Using Pano2VR/Object2VR SWF files with your own Flash projects
Post Reply
HPatel
Posts: 1
Joined: Mon Apr 29, 2013 5:59 pm

Hi,

I have come from Pano2VR 2.2.3 to 2.3.4 and have run into some issues. I have had to make this upgrade due to the fact that the Mass Simulation tick box (when off) didnt work on 2.2.3 but it does work on 2.3.4

The first issue I have come accross is when adding a pano to my stage I get this:

Code: Select all

init panorama player...
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
uhh... init stage
Im not sure what it means but the pano still seems to work ok?

The second more major issue is unloading the pano for going to another section or to open a new pano. Here is my code for unloading a pano:

Code: Select all

private function unloadPano():void {
	var i:int;
	if(vr != null) {
		if (vr.pano != null) {
			if(vr.pano.bmpTile != null) {
				for(i = 0; i < vr.pano.bmpTile.length; i++) {
					if(vr.pano.bmpTile[i] != null) {
						vr.pano.bmpTile[i].dispose();
						vr.pano.bmpTile[i] = null;
					}
				}
			}
			if(vr.pano.bmpTileOverlay != null) {
				for(i = 0; i < vr.pano.bmpTileOverlay.length; i++) {
					if(vr.pano.bmpTileOverlay[i] != null) {
						vr.pano.bmpTileOverlay[i].dispose();
						vr.pano.bmpTileOverlay[i] = null;
					}
				}
			}
			if(vr.pano.removeAllListener != null && vr.pano.onClickQtHotspot != null) {
				vr.pano.unloadHotspots();
				vr.pano.onClickQtHotspot = null;
				if(stage != null && vr.pano.removeAllListener != null) {
					vr.pano.removeAllListener();
				}
			}
			vr.pano = null;
		}
				
		vr.cleanup();
		vr = null;
	        }
	       if(panoLoader != null) {
		if(this.contains(panoLoader)) {
			removeChild(panoLoader);
		}
		panoLoader.unloadAndStop();
		panoLoader.unload();
		}
}
When I try to unload a pano, I get:

Error: Error #1009: Cannot access a property or method of a null object reference.

This has worked fine on the older 2.2.3 version. Have there been changes to the API or something wrong with the code which is causing the issue?


Thanks,

hp
Post Reply