RE: [Flashcoders] onLoadInit running when swf doesn't exist

2007-01-31 Thread Alain Rousseau
have you tried defining your listening function before your loadText function ? Had similar problems when defining the event handlers after the load() call. Also you could use LoadVars to test the existence of the file firsthand. import mx.utils.Delegate; var fileExists:Boolean = false; var test

Re: [Flashcoders] onLoadInit running when swf doesn't exist

2007-01-31 Thread Andy Herrman
I've seen issues where a download fails (connection is cut off after it started) where onLoadInit is called instead of onLoadError. To detect this I simply check the bytesLoaded versus bytesTotal on the movie clip I was loading it into. It's possible you're hitting the same situation (file doesn