PDA

View Full Version : dynamic scrollpane... again.. sorry


Auctor
03-01-2006, 03:38 PM
Hello folks,

hope someone can help me with this problem. I searched in the Forum but didnīt found a solution.

i have this:


pic_root.visible = false;

sculptingXML = new XML();
sculptingXML.ignoreWhite = true;
sculptingXML.load("photo.xml");

sculptingXML.onLoad = function(){

rootElement = sculptingXML.firstChild;
children = rootElement.childNodes;
duplicateMovie();

}

function duplicateMovie() {

_root.createEmptyMovieClip("holder",150);

for ( var i = 0; i<children.length; i++) {
_root.holder.duplicateMovieClip("pic_"+i,i);

setProperty("pic_"+i,_x,i*150);
setProperty("pic_"+i,_y,0);


this["pic_"+i].loadMovie(children[i].firstChild.nodeValue);

}


}

the document hast a width of 900 pixel. i want to show five pics (150pixels) and the rest schould be "scrollable". hope you understand...

i tried everything to add it to a scrollpane. tried to make a instance and and so on. dinīt work out.

maybe someone can help me.

thanks a lot

martin

ps.: sorry for my english... :)