Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
irraticFlash #1
duplicateMovieClip function calls (Asynchronous)
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?
irraticFlash Guest
-
Asynchronous calls from Java?
Hi, I want to listen for events on the java side and have a flex method called when something happens. How would I do this? This should be... -
Web service calls asynchronous vs synchronous
The best solution is to design you architecture using the observer pattern(GOF) K,Browne Developer -
Asynchronous web service calls
Hi I am trying to do some tests using asynchronous web service calls and have hit a problem. I have reduced the problem to the minimum so... -
Impersonation not working with Asynchronous calls
I make a connection from my web service function to a sql database (on another machine) using Windows Only authentication and the following in my... -
Windows identity during asynchronous calls
I'm trying to access a SQL server from a thread started from an asp.net application and get a "Cannot log into database as user null..." error. How...



Reply With Quote

