Looooooka
12-17-2004, 11:58 AM
i'm using the scrollpane component into which i load different movies
one of the movies creates a dynamic movie(works fine on it's own)
but goes into a loop when loaded into the scrollpane component.
is there any way to fix this lock it or anything.
this is the part of the code that goes into to loop when the movie is loaded into the scrollpane component:
var vNewsListResult = new XML();
vNewsListResult.ignoreWhite = true;
vNewsListResult.onLoad = function(success) {
if(success) {
i=0;
a=-70;
rootNode = vNewsListResult.firstChild;
totalSlides = countnode(vNewsListResult.firstChild);
if(totalSlides != 0) {
for (x=0; x<totalSlides; x++) {
x++;
if(i==undefined) { i=0; }
if(a==undefined) { a=-85; }
i=i++;
a=a+85;
attachMovie("NewsListInfoClip", "NewsList" + i, getNextHighestDepth());
_root["NewsList" + i].NewsListInfoClipPic.id.text = rootNode.childNodes[x].childNodes[0].firstChild;
_root["NewsList" + i].title.text = rootNode.childNodes[x].childNodes[1].firstChild;
_root["NewsList" + i].description.text = rootNode.childNodes[x].childNodes[2].firstChild;
_root["NewsList" + i]._x = 0;
_root["NewsList" + i]._y = a;
//NewsListScroller.content["NewsList" + i].starholder.gotoAndStop(rootNode.childNodes[x].childNodes[4].firstChild);
_root["NewsList" + i].NewsListInfoClipPic.flashurl.text = rootNode.childNodes[x].childNodes[5].firstChild;
//trace(rootNode.childNodes[x].childNodes[3].attributes.jpegURL);
trace(["NewsList" + i] + " " + rootNode.childNodes[x].childNodes[2].firstChild);
loadMovie(rootNode.childNodes[x].childNodes[3].attributes.jpegURL, _parent["NewsList" + i].NewsListInfoClipPic.imageholder.imageholder);
}
}
}
}
anyone have any idea where the problem might be?
one of the movies creates a dynamic movie(works fine on it's own)
but goes into a loop when loaded into the scrollpane component.
is there any way to fix this lock it or anything.
this is the part of the code that goes into to loop when the movie is loaded into the scrollpane component:
var vNewsListResult = new XML();
vNewsListResult.ignoreWhite = true;
vNewsListResult.onLoad = function(success) {
if(success) {
i=0;
a=-70;
rootNode = vNewsListResult.firstChild;
totalSlides = countnode(vNewsListResult.firstChild);
if(totalSlides != 0) {
for (x=0; x<totalSlides; x++) {
x++;
if(i==undefined) { i=0; }
if(a==undefined) { a=-85; }
i=i++;
a=a+85;
attachMovie("NewsListInfoClip", "NewsList" + i, getNextHighestDepth());
_root["NewsList" + i].NewsListInfoClipPic.id.text = rootNode.childNodes[x].childNodes[0].firstChild;
_root["NewsList" + i].title.text = rootNode.childNodes[x].childNodes[1].firstChild;
_root["NewsList" + i].description.text = rootNode.childNodes[x].childNodes[2].firstChild;
_root["NewsList" + i]._x = 0;
_root["NewsList" + i]._y = a;
//NewsListScroller.content["NewsList" + i].starholder.gotoAndStop(rootNode.childNodes[x].childNodes[4].firstChild);
_root["NewsList" + i].NewsListInfoClipPic.flashurl.text = rootNode.childNodes[x].childNodes[5].firstChild;
//trace(rootNode.childNodes[x].childNodes[3].attributes.jpegURL);
trace(["NewsList" + i] + " " + rootNode.childNodes[x].childNodes[2].firstChild);
loadMovie(rootNode.childNodes[x].childNodes[3].attributes.jpegURL, _parent["NewsList" + i].NewsListInfoClipPic.imageholder.imageholder);
}
}
}
}
anyone have any idea where the problem might be?