well i want to make a image scroller from the images i get from an xml file.after i get all the file names , i want the images to be in a movie clip . so that i can use sroller properties to it. but i am not being able to display the images in the movie clip. how do i display all images in flash?
Here is my code.
function menuChoiceOne()
{
getURL("http://www.rathour.com.np");
}
NewMenu = new ContextMenu();
NewMenu.hideBuiltInItems();
NewMenu.customItems.push(new ContextMenuItem("This photo gallery is copyrighted!", menuChoiceOne));
this.menu = NewMenu;
/*
pic1bg._alpha = 100;
pic2bg._alpha = 0;
pic3bg._alpha = 0;
pic4bg._alpha = 0;
pic5bg._alpha = 0;
pic6bg._alpha = 0;
pic7bg._alpha = 0;
pic8bg._alpha = 0;
pic9bg._alpha = 0;
pic10bg._alpha = 0;*/
function loadXML(loaded)
{
if (loaded) {
xmlNode = this.firstChild;
image = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image* = xmlNode.childNodes*.childNodes[0].firstChild.nodeValue;
}
firstImage();
} else {
content.text = "file not loaded!";
}
}
xmlAlbum = new XML();
xmlAlbum.ignoreWhite = true;
xmlAlbum.onLoad = loadXML;
xmlAlbum.load("album.xml");
p=0;
function nextImage() {
//previousbtn._x = 30;
if (p<(total-1)) {
p++;
photo_mc.loadPhoto(image[p]);
content.text = description[p];
picture_num();
//if (panel.testing1._x >= 1085) {
} else {
//panel.testing1._x = panel.testing1._x + 115;
}
}
this is very urgent… Please help…