for(var i=0;iif(getNameFromRef(layersArray[i]) == argArray[1]){ layerMenu.selectedIndex = i; found = true; break; } } if(argArray[2]){ findObject(???Z-INDEX???).value = argArray[2]; } The complete inspectBehavior() function, with a little added error checking, looks like the following: function inspectBehavior(msgStr){ var argArray,layerMenu,layersArray,menuLength,found; argArray = extractArgs(msgStr); layerMenu = findObject(???LAYER_LIST???); //Get all layers references including parent frames layersArray = getAllObjectRefs(???NS 4.0???,???LAYER???); menuLength = layerMenu.options.length; //Loop through all the