# Nested movie clip not looping

**URL:** <https://forum.kirupa.com/t/nested-movie-clip-not-looping/217789>\
**Category:** Uncategorized\
**Created:** [March 1, 2007, 9:24pm UTC](https://forum.kirupa.com/t/nested-movie-clip-not-looping/217789 "2007-03-01T21:24:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kptgreg](https://avatars.discourse-cdn.com/v4/letter/k/c2a13f/32.png) [@kptgreg](https://forum.kirupa.com/u/kptgreg)\
**Post date:** [March 1, 2007, 9:24pm UTC](https://forum.kirupa.com/t/nested-movie-clip-not-looping/217789/1 "2007-03-01T21:24:17Z")

</div>

Using Flash 8, I am creating a mp3 player that gets info from an external XML file. I am trying to create a masked scrolling message that gets the text data from the XML file. I have succeeded doing this and was very happy until I found out the message only scrolls once. I do not understand why it doesn’t loop.

The message is loaded into a movie clip inside the main timeline called prompt\_mc that has a dynamic text field named prompt\_txt inside of it. In prompt\_mc I moved the message across 200 frames from right to left and then I dropped the prompt\_mc on the main timeline with a mask object above it. The mask is handled in the code and works great. Anyone know why my prompt\_mc is not looping or have any ideas??

Here is part of my code if it’s helpful:

// function to check if XML file is loaded and parse XML file  
function loadXML(loaded) {  
if (loaded) {  
\_root.prompt = this.firstChild.childNodes[1].firstChild.nodeValue;  
\_root.songtitleone = this.firstChild.childNodes[2].childNodes[0].firstChild.nodeValue;  
\_root.artistfirstSong = this.firstChild.childNodes[2].childNodes[1].firstChild.nodeValue;

prompt\_mc.prompt\_txt.text = \_root.prompt;  
songtitleone\_txt.text = \_root.songtitleone;

// prompt message mask  
prompt\_mc.setMask(mask\_mc);

// play songs  
var artistSong:String = \_root.artistfirstSong;

controller.autoPlay = false;

play\_mc.onRelease=function() {  
if (this.\_currentframe == 1) {  
this.gotoAndStop(“stop”);  
controller.setMedia(artistSong,“MP3”);  
controller.play();  
}  
else {  
this.gotoAndStop(“play”);  
controller.stop();  
}  
}

} else {  
trace(“Error: file not loaded!”);  
}  
}

// load XML file and define XML object  
xmlData = new XML();  
xmlData.ignoreWhite = true;  
xmlData.onLoad = loadXML;  
xmlData.load(playlist\_URL+name\_URL+identity\_URL);
