Hi,
I have set up a scrollpane to loaded up dynamically loaded images from XML file. I got it set up and images are loading inside the scrollpane but the scroller (not sure that how it is called) doesnot appear. I have attached the screenshot of how it looks like too. Below is my code
import mx.containers.ScrollPane;
var output_xml = new XML();
output_xml.ignoreWhite = true;
var moveY:Number = 0;
//scrollPane
myScroller.contentPath = "emptyScroll";
holder = myScroller.content;
myScroller.setSize(200, 200);
output_xml.onLoad = function(success){
if (success){
var showcase = output_xml.firstChild.childNodes;
for(i=0;i<showcase.length;i++) {
moveY = i*120;
temp = holder.attachMovie('thumb0', 'thumb'+i, i+1, {_y:moveY});
temp._visible = false;
temp.curUrl = showcase*.attributes.url;
temp.curThumb = showcase*.attributes.thumbImg;
temp.curI = i;
temp._x = 10;
temp._visible = true;
}
}else
trace("error loading xml");
}
output_xml.load("myTest.xml");
myScroller.invalidate();