[FONT=Times New Roman][SIZE=3]Hello.[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]I have an issue here and I hope someone can help me.[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]I want to place an array of bullets (talking points) on stage, set their visibility to false, resize them all to fit on the stage, show the first bullet only, as I click the next button the next bullet’s visibility becomes true, and when there are no more bullets I want them to clear out and prepare for the next set of bullets.[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]I have it working up to the point of clearing them out and bringing in new bullets.[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]I can’t seem to get the bullets to go away when I go to the next page. [/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]I basically want to read in the bullets and then reset them for the next set.[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]Any ideas?[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]If I am not clear I apologize and I will attempt to be clearer.[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]I am showing my code and attaching the files.[/SIZE][/FONT]
Actionscript:
nodes = [];
bulletPlace = [];
lengthTotal = [];
Allnodes = [];
bullset = [];
imageNode = [];
pound = [];
i = 0;
j = 0;
var cxn:Number;
var bxn:Number;
var my_xml:XML = new XML();
my_xml.ignoreWhite = true;
my_xml.onLoad = function() {
nodes = this.firstChild;
lengthTotal = nodes.firstChild.childNodes.length;
Allnodes = nodes.firstChild.childNodes;
bulletPlace = nodes.firstChild.firstChild.childNodes[1].childNodes;
for (i=0; i<lengthTotal; i++) {
imageNode.push(Allnodes*.childNodes[0].attributes.url);
//trace(imageNode*)
}
for (j=0; j<bulletPlace.length; j++) {
bullset.push(bulletPlace[j].childNodes);
pound[j] = attachMovie("bulletedText", "clip"+j+"_mc", j, {_y:(j*30), _x:20});
pound[j].listerTxt.text = bullset[j];
pound[j].listerTxt.autoSize = "left";
pound[j]._visible = false;
}
mainImg.loadMovie(imageNode[0]);
pound[0]._visible = true;
bxn = 0;
cxn = 0;
};
my_xml.load("bullets.xml");
//
////
rv.onRelease = function() {
if (bxn>0) {
bxn--;
reverse();
}
};
///////////////////
fw.onRelease = function() {
if (bxn<bulletPlace.length) {
bxn++;
pound[bxn]._visible = true;
//
}
if (bxn == bulletPlace.length) {
forward();
pound[bxn]._visible = false;
}
};
////////////////////////////////////////////
function reverse() {
if (cxn>0) {
mainImg.loadMovie(imageNode[cxn]);
}
}
//
function forward() {
if (cxn<lengthTotal-1) {
cxn++;
//
mainImg.loadMovie(imageNode[cxn]);
}
}
//
XML:
<?xml version="1.0" ?>
<presentation skin="skin2.png">
<modules>
<module type="Introduction">
<imgloc url="1.swf" />
<bullets reset="true">
<bullet>bullet 1</bullet>
<bullet>bullet 2</bullet>
<bullet>bullet 3</bullet>
</bullets>
</module>
<module type="Introduction">
<imgloc url="2.swf" />
<bullets reset="true">
<bullet>bullet 1</bullet>
<bullet>bullet 2</bullet>
<bullet>bullet 3</bullet>
<bullet>bullet 4</bullet>
</bullets>
</module>
</modules>
</presentation>