Hey,
I’m having some trouble understanding library linkage and SWF loading and I was wondering if one of you could enlighten me.
I’m making a game for a university assignment. As a required part of the assignment, and I do this a lot anyway, we need to attach every element to the timeline dynamically using AS.
I’ve specified class names for each MovieClip in the library under linkage. However, when I try and uncheck ‘Export in first frame’, whenever some of my AS tries to use the linked MovieClips, I get an error telling me they don’t exist. I can only call and attach them if this option is checked.
The reason I want to do this is for the initial load of the SWF. I am assuming, and please tell me if I am wrong, that when the SWF is first loaded, it will load everything in the first frame on the timeline and everything in the library set for export on the first frame. After it has done this, it will start playing the SWF and load the rest incrementally along the timeline (if there is anymore) and any other library assets.
When my game first loads, I want to display a loader while all the library assets load, but I am assuming I can’t do this because they will be loaded before the loader can be displayed, if that makes sense.
Am I understanding SWF loading completely wrong here, and if so, can someone point me to an article or explain it to me?
Thanks.