# Stop XML

**URL:** https://forum.kirupa.com/t/stop-xml/279263
**Category:** flash
**Created:** [January 12, 2009, 1:26pm UTC](https://forum.kirupa.com/t/stop-xml/279263 "2009-01-12T13:26:06Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![antjelein](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@antjelein](https://forum.kirupa.com/u/antjelein)
#### Post date: [January 12, 2009, 1:26pm UTC](https://forum.kirupa.com/t/stop-xml/279263/1 "2009-01-12T13:26:06Z")

</div>

Hi there.

I’m a beginner when it comes to using XML.  
Now I’m working on a Website which contains a XML Carousel Gallery, with the coding below.

Now this all happens on the homepage. I would like to stop the xml on other frames though. Is there any coding I can use on my Buttons, to stop the XML working while going to another frame?

This is the page I’m talking about: [http://www.antje.co.uk/](http://www.antje.co.uk/)

Would be great if someone could help a beginner!!! :)))  
Thanks guys!

stop();  
var folder:String = “thumbnails/”; // a folder for thumbnail files + an XML file  
var total:Number;  
var radiusX:Number =180;  
var radiusY:Number = 10;  
var centerX:Number = 378;  
var centerY:Number = 340;  
var speed:Number = 0.003;  
tn\_group\_mc.\_visible = false;  
fm\_label.text = “”; fm\_url.text = “”;

var xml:XML = new XML();  
xml.ignoreWhite = true;

xml.onLoad = function()  
{  
var nodes = this.firstChild.childNodes;  
total = nodes.length;

```
for( var i=0; i &lt; total; i++)
{
	var t = tn_group_mc.duplicateMovieClip("tn"+i, i);
	t.angle = i * ((Math.PI*2)/total);
	t.onEnterFrame = mover;
	t.tn_mc.inner.loadMovie( folder + nodes*.attributes.filename );
	t.tn_reflection_mc.inner.loadMovie( folder + nodes*.attributes.filename );
	t.fm_label = nodes*.attributes.label;
	t.fm_url = nodes*.attributes.url;

	t.fm_button.onRollOver = function()
	{
		fm_label.text = "Title: " + this._parent.fm_label;
		fm_url.text = "URL: " + this._parent.fm_url;
	}
	t.fm_button.onRollOut = function()
	{
		fm_label.text = "";
		fm_url.text = "";
	}
	t.fm_button.onRelease = function()
	{
		getURL(this._parent.fm_url);
	}
}

```

}  
xml.load( folder + “flashmo\_thumbnails.xml”);

function mover()  
{  
this.\_x = Math.cos(this.angle) \* radiusX + centerX;  
this.\_y = Math.sin(this.angle) \* radiusY + centerY;  
var s = this.\_y /(centerY+radiusY);  
this.\_xscale = this.\_yscale = s\*100;  
this.angle += this.\_parent.speed;  
this.swapDepths(Math.round(this.\_xscale) + 100);  
}  
this.onMouseMove = function()  
{  
speed = (this.\_xmouse-centerX) \* 0.0001;  
}
