:z: I know
insideInput = String(xmlNode.childNodes[0].attributes.insider)
virusTarget = insideInput.indexOf(“kz”, [17]);
endTarget = insideInput.indexOf(“.”, [virusTarget+2]);
trace(“VTTT”+virusTarget)
trace(“ET”+ endTarget)
//endTarget = local.indexOf(“.”, [“vitesting”]);
clipTarget = virusTarget+3;
zebra = insideInput.substring(clipTarget, endTarget);
trace(zebra)
I’m trying extract info from a string, increment through it and add the data to an array
thing is I can’t get the startIndex thing to work
any ideas thanks
the start index is still not working… work around
insideInput = String(xmlNode.childNodes[0].attributes.insider);
** gorrila = “kz3”;
i =4
chimp = String(“.kz”+i)
//chimp =“kz4”;**
virusTarget = insideInput.indexOf(gorrila, [“k”]);
endTarget = insideInput.indexOf(chimp, [“k”]);
trace(“VTTT”+virusTarget);
trace(“ET”+endTarget);
//endTarget = local.indexOf(“.”, [“vitesting”]);
clipTarget = virusTarget+3;
zebra = insideInput.substring(clipTarget, endTarget);
trace(zebra);
right I have it working however one last issue
I need to have seperate arrays for each section…
so I need to somehow make
zebraArray[z] = zebra
into
zebra*Array[z] = zebra