heh, k, I'll break it all down for ya here...
function launchFile(value) {
//compares the user's paramater to each of the idArray values
for (i=0; ((value != _root.invisDir.idArray[i]) && (i<_root.invisDir.idArray.length)); i++) {
null;
}
^----the above compares the user entered parameter to the xml array to make sure that it matches the id AND does not go above the array length (amount of values).
if (value != _root.invisDir.idArray[i]) {
_root.userInput.text = "Invalid Entry";
}
^---checks to see if the for statement was ended because the for loop became longer than the array length or not, if so, output "Invalid Entry" to the command prompt (doing a completely command prompt based navigation in flash, dynamically generated off of xml files, original concept = original problems ;P)
else {
_root.getURL("java script:NewWindow('_root.invisDir.menuItem[i].attributes.url',
'_root.invisDir.menuItem[i].attributes.title',
'_root.invisDir.menuItem[i].attributes.width',
'_root.invisDir.menuItem[i].attributes.height','no')");
}
}
^----this is supposed to popup the window depending on which array value it was matched with (_root.invisDir.menuItem[i].attributes.url and the rest are just calling the xml attributes).
[edit]
Sick thing too is that I am more of a designer, just caught onto flash a bit and then got this crazy fresh idea in my head and which is why I'm forcing myself to do it now =\
__________________