My head is battered, I've tried loads of ways to do this

function createPrinterOutput(){
var i=1;
var sampleX = getProperty(printPages.sectionOne, _x);
var arrayToSend1 = new Array();

arrayToSend1 = showPublicArray(DATA.data.tableData1);

printPages.sectionOne.duplicateMovieClip("sectionO neSheet" + i, i);
setProperty("printPages.sectionOneSheet" + i, _x, ((100*i) + sampleX));
printPages.sectionOneSheet1.table1.createTableCont ents(arrayToSend1, 30, 59);
}

calling the createTableContents() function in the duplicated movie dosen't
work in the above function, I assume because the duplication has not finished
(flash code is asynchronous etc etc), But it does work if I later call the
below function via a button.

function test(){
var arrayToSend1 = new Array();
arrayToSend1 = showPublicArray(DATA.data.tableData1);

printPages.sectionOneSheet1.table1.createTableCont ents(arrayToSend1, 30, 59);
}

Question: How can I check to see if the duplicated movie has finished loading
and is ready for me to call one of its functions?