PDA

View Full Version : GhostWire TanViewTop jsfl


altf4s
09-13-2005, 12:53 AM
Hi,

Im trying to make a a tab view top (use GhostWire component 2) during run time in jsfl. Im trying to load an mc to the tab view.


simTools_lib.editItem("contentPane_mc");
fl.componentsPanel.addItemToDocument({x:0, y:0},'GhostWire Components Set 2','TabViewTop');
var item= fl.getDocumentDOM().selection[0];
var labelIndex, dataIndex, loadIndex;

item.width=w; //Basically another func to re-positioned
item.height=h - dH_TabBar;
setCoords(item,x,y);

for (var i=0;i<item.parameters.length;i++){
switch (item.parameters[i].name){
case 'labels':
labelIndex = i;
while(item.parameters[i].value.length>1) item.parameters[i].removeItem(1);
break;
case 'defaultLoadType':
loadIndex = i;
item.parameters[i].listIndex=1; break;
case 'overlap':
item.parameters[i].value=2; break;
case 'cpady':
item.parameters[i].value=0; break;
case 'brightness':
item.parameters[i].value=0; break;
case 'cpadx':
item.parameters[i].value=0; break;
case 'data':
dataIndex = i; break;
default:
break;
}
}

item.parameters[labelIndex].value[0].value = 'Themes';
item.parameters[dataIndex].insertItem(0, 'data', 'Themes_mc' , 'List');


The label shows right as "Themes" but there's no Themes movie clip. For the Themes_mc, I did also
linkageExportForAS=true;
linkageIdentifier='Themes_mc';
linkageExportInFirstFrame=true

Anything else Im missing? Thanks before hand