Sorry if this question has already been answered but I can't seem to find any relevant examples online. I basically have a class which loads a set of MovieClip objects and provides accessor functions to return them.
public function getMovieClip( mc:MovieClip ):Boolean
{
if( allFilesLoaded )
{
mc = fileLoader.content;
return true;
}
else
{
return false;
}
}
Obviously this doesn't work, but it gives an idea of what I'm trying to do. I want to return a MovieClip to the calling code only if the object has been loaded.