I'll explain this as best as I can.
I am using a list of data as a guide to constructing a level. My engine cycles through the list and attaches movieclips identified by the list. The movieclip symbols fall into two categories, ones that follow standard initialization procedure after they've been attached and those with unique initialization procedure. The problem is, in order to recognize that the movieclip has unique procedures and to know what those procedures are, the movieclip has to have variables and functions declared instantly. I can't use onClipEvent(load) because they are runtime mcs and declarations on the first frame of the mc don't take affect until the next frame. Any ideas on how I can get variables and functions to get initialized as soon as the movieclip is attached?
I want it to work like this:
_root.attachMovie("theMC","MC"+i",depth);
if(_root["MC"+i].standard == true) {
//standard functions;
} else {
_root["MC"+i].uniqueFunction();
}