This content has been marked as final. Show 5 replies
Do you understand that even though the loader is "complete", the contained application might not be ready?
You should get a reference to the loaded content, and listen for its application_complete event.
No I was not aware of that, but I see this as another problem. Right now the problem is the load operations that never completes (nor fails). I think it may have to do with some browser connection limits... Do you know of any events being fired when an "open connection" event fails because of connection limits ?
Another problem related to what you mentioned is when you tell a movie clip to "gotoAndStop" at som frame. Then it takes a little while before the instances of the frame is initialized. I could not find any "complete" events to handle this, so righ now I use a solution where I wait a bit and then check if all childred are non-nul, and if not I wait again before checking again. This is a hack, but it works and I could not find any better solution - do you know a better way to ensure a frame is completely initialized after a gotoAndStop call ?
Sorry, I do not do any Flash, wouldn't know a "frame" if it bit me on the butt..
Loading a bunch of external swf's can cause problems with the browser connections to the server apparently, as they are limited. You should stagger your loads based on the complete event. Once you receive the complete event you should be able to wait on the swfloader content for its complete/init event.
ok thank you very much for your answers.
I will make some sequencing of the loads then, so that the next load operation is is started when the prev. completes/fails. However, is it possible to start a limited number of simultaneous loads?( and if so how many ?), or should I make the sequencing so, that the load operations run one at a time?
Then there is the comment about having to wait for the SWFLoader content to complete. When should I hook up with the the event on the content object, when SWFLoader fires init, or when it fires Complete ?