I’ve got a listbox that gets filled with a bunch of actions. But when there’s a crash, i want everything at that point and beyond to be removed from the list. The list will then contain only everything upto the crash.
I’ve been having trouble getting this to work:
[AS]
for (var x; x<actionbox.historyList.getLength(); x++) {
if (actionbox.historyList.getItemAt(x) == (“Forward (CRASH!)”)) {
for (var y = actionbox.historyList.getLength(); y>x; y–) {
errorbox.text = (y);
actionbox.historyList.removeItemAt(y);
}
x = actionbox.historyList.getLength();
}
}
[/AS]
Any help would be appreciated