Hello,
  I'm building a Flex app and it's been going fairly well. However, I've run 
into a problem when trying to load data from an external source (simple TXT 
file for now). I can't seem to control when a particular function is called. 

What I have is a series of components that are filled with images when the 
application starts. I want the list of images to come from a txt file (no 
problem with URLLoader). What I'm finding out is that the other functions in my 
init routine are called before I finish reading in the file.

For example, I have a routine called from "creationComplete".

function onStart():void
{
  initDatabase();
  initComponents();
}

in the case above, "initComponents()" is called before "initDatabase" finishes 
and I get a bunch of broken image links. Any advice on how I can guarantee the 
above executes in order? Is there any way I can force Flex to operate in a very 
linear manner (at least for initialization)? 

Thanks!

E.

Reply via email to