I’m relatively new with flash, so i thought i’d buy some code and try to figure it out. i’ve since realized that its far to complex for me, and i have no idea what i’m doing.
the code i bought pops up a window to view portfolio images. I thought that i’d be easy to install a next button into the window. the portfolio is xml driven, so i just need it to jump to the next node. i put a invisible button into the back of the image container, and i have a click counter that outputs to a file that i’m trying to add to the current node. i need to get that number into another area, but all my attempts have come undefined.
this is the button i tried to make
(this.bigImgS._bgclr.next)
myVar=0;
this.next.onRelease = function(){
_root._FBimgX = _root.next;
_root.bigImgS.gotoAndPlay(10);
_root.skip = myVar+1;
myVar++;
trace(_root.skip);
}
and this is where i’m trying to get the variable to go
(_root._mainWEB._sectnsMC._newsSMC)
stop();
//--------------------------------------------------
line._x = 0;
totM = 0;
xx = 0;
//----------------
_xml = new XML();
Dir = "dat/xml/"+_root.f+"/";
file = _root.f;
_xml.ignoreWhite = true;
_xml.onLoad = function(ok) {
if (ok) {
_loading._visible = false;
menu();
} else {
trace("XML not loaded");
}
};
i = 1;
function menu() {
//-----
pathID = _xml.firstChild.firstChild;
totM = pathID.childNodes.length;
//totM = 11;
_root.totR = totM;
while (i<=totM) {
mcx = Fthumb.attachMovie("_newsMC", "btn"+i, i);
//-------------
//mcx._y = 175;
//-------------
b = i-1;
c = root.skip;
k = this._parent._parent._parent._parent.skip;
mcx._i = b;
mcx._titleXML = pathID.childNodes**.attributes.titlex;
mcx._txtXML = pathID.childNodes**.attributes.desx;
mcx._txtDes = pathID.childNodes**;
mcx._dateXML = pathID.childNodes**.attributes.date;
mcx._img = pathID.childNodes**.attributes.Img;
mcx._Bimg = pathID.childNodes**.attributes.bgImg;
mcx._next = pathID.childNodes[b+c].attributes.bgImg;
//-------------
if (i == totM) {
Prcd();
}
i++;
}
}