SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1902 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"


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