hey, thanks a LOT for your help on this.
i wouldn't feel right posting my client's movie online, but here's the rest of
the code, hope it helps. thanks a million for your time.
the embed is like this:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="
http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve rsion=6,0,0,0"
WIDTH="708" HEIGHT="390" id="Scroller4-27" ALIGN="">
<PARAM NAME=movie VALUE="Scroller4-27.swf"> <PARAM NAME=loop VALUE=false>
<PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED
src="Scroller4-27.swf" loop=false quality=high bgcolor=#FFFFFF WIDTH="708"
HEIGHT="390" NAME="Scroller4-27" ALIGN=""
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="
http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>
1st frame, layer 1:
function showNode(z, deep) {
if (!z.hasChildNodes) {
if (z.nextSibling != null) {
showNode(z.nextSibling, deep);
}
} else {
for (var name in z.attributes) {
if (name == "artist") {
datum.artist[NN] = z.attributes[name];
} else if (name == "title") {
datum.title[NN] = z.attributes[name];
} else if (name == "label") {
datum.label[NN] = z.attributes[name];
} else if (name == "credit") {
datum.credit[NN] = z.attributes[name];
} else if (name == "image") {
datum.image[NN] = z.attributes[name];
}
}
showNode(z.firstChild, deep+1);
if (z.nextSibling != null) {
if (z.nextSibling.nodeName == "disk") {
NN++;
} else if (z.nextSibling.nodeName == "gallery") {
curPath = z.nextSibling.attributes["path"];
}
showNode(z.nextSibling, deep);
}
}
}
1st frame, second layer:
Gallery = [];
//load event checker//
listGallery = new LoadVars();
listGallery.load("listcdpackaging.txt");
//assign a function which fires when the data is loaded:
listGallery.onLoad = function(success) {
if (success) {
trace("loaded");
//Now that we know the data is loaded,
//we can progress
Gallery = listGallery.gallery.split("|");
galleryAmount = Gallery.length;
choice = 0;
gotoAndPlay(2);
} else {
trace("not loaded");
}
};
artist = title=label=credit="";
ta._visible = tt._visible=tl._visible=tc._visible=imageFrame._visible=false;
next._visible = false;
stop();