XML image & video-playing gallery issue. Video doesn't hide when online

Hi guys,

I’ve created a gallery using kirupa’s tutorial that loads in, through xml, both images and streaming video swfs.

here’s the link (then click on ‘Real Art’, then on ‘Roster’ in the menu):
http://www.studiotonne.com/tira/

All links (xml and content links in the xml) are pointing to an online server, so it should work offline in the same way it does online.

So offline, it all works fine and browsing through the gallery in the Roster for each artist, selecting each number in the gallery closes the current image/video and displays the new one, as it should.

Online however, the issue is different. For instance, clicking on ‘Build’, then on number 5 in the gallery (which is a streaming video embedded in a swf pulled in via xml), it streams in the required video. However, upon trying to select a different picture in the gallery, or choosing to view the gallery of a different artist, the video doesn’t want to disappear and allow other images to be seen, as it does when viewed offline.

I’m sure its quite a simple thing to make the streaming video swf that the xml loads in, to disappear. I just don’t understand why it works properly offline, whereas online, the video issue occurs.

Could it be a netConnection or netStream issue?

Here is the code for the build gallery in the roster:



stop();
function loadXML(loaded) {
	trace("XML loading...");
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
description* = xmlNode.childNodes*.childNodes[1].firstChild.nodeValue;
}
firstImage();
displayPages();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("clientupdates/build/xml/build.xml");

p = 0;
this.onEnterFrame = function() {
	
	filesize = picture.getBytesTotal();
	loaded = picture.getBytesLoaded();
	preloader._visible = true;
	if (loaded != filesize) {
		preloader.preload_bar._xscale = 100*loaded/filesize;
		/*
		if(blnPreview) {
			previous_btn._visible = false;
			next_btn._visible = false;
		} else {
			previous_btn._visible = true;
			next_btn._visible = true;
		}
		*/
	} else {
		preloader._visible = false;
		if (picture._alpha<100) {
			picture._alpha += 10;
		}
	}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}

function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}

}
function firstImage() {
	trace("firstImage");
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);

	// Only show the artwork data unless we're not in preview mode
	//if(!blnPreview) {
		desc_txt.text = description[0];
		picture_num();
	//}
}
}
function picture_num() {
	
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
trace("Pic num:" + current_pos);
}

function displayPages() {
	for(var i=1;i <=12; i++) {
		if(i <= total) {
			this["PageMC" + i].pgNum.text = "a";
			this["PageMC" + i]._visible = true;
		} else {
			this["PageMC" + i]._visible = false;
		}
	}
}

function setPage(pageNum) {
	if(pageNum>=0 && pageNum <total) {
		picture._alpha = 0;
		picture.loadMovie(image[pageNum], 1);
		desc_txt.text = description[pageNum];
		picture_num();
	}
}


var my_nc:NetConnection = new NetConnection();
my_nc.connect(null);
var my_ns:NetStream = new NetStream(my_nc);

Thanks for reading guys. I hope you can help.

Jerome************