I nearly posted this as a new thread and found this one at the last minute. I am having this exact same problem. The 404 isn't getting recognized on the Chumby's Flash player. I tried publishing as Flash 8 and Flash Lite 2.0 and had the same problem.
I have a simple image viewer that I wrote and it works fine. It pulls a new image from my webserver every 10 seconds. I'm trying to have all the proper error handling in place in case my webserver goes down/etc. Unfortunately the onLoadError() event does not seem to be triggered like it should when ran on the Chumby. I am adding/deleting my randomphoto.php api file on my webserver in order to trigger the expected success/fail condition. onLoadError() is triggered properly if I delete my api file on the webserver, then run the swf on my pc's flash player. My test actionscript code is at the bottom.
Here is the Chumby console debug, you will notice that "load complete" and "load init" are triggered, despite the fact that the request should have failed. It looks like the Flash Player is then trying to parse the 404 page's contents as an image file.
Webserver api file removed (should trigger an error):
2007-12-15 12:35:59 NetStreamRequest::Open(1): Opening protocol 'http://' host 'www.lunky.com' port 80 location '/randomphoto.php?79990487'
2007-12-15 12:35:59 NetStreamRequest::Open(1) opened http object id 6
2007-12-15 12:36:00 NetStreamRequest::ProcessHeaders(1) content-type: text/html; charset=iso-8859-1
2007-12-15 12:36:00 NetStreamRequest::Step(1) done, closing stream (208 of 208 bytes, avail=0) status=200
2007-12-15 12:36:00 SI_Object::SI_GetImageInfo(40a2b5d4,1084454432,{40a37200,208})
2007-12-15 12:36:00 ImageObject::DetectImage() unable to determine type of image with 208 bytes starting 3c 21 44 4f
2007-12-15 12:36:00 ImageObject::DetectImage() unable to determine type of image with 208 bytes starting 3c 21 44 4f
2007-12-15 12:36:00 SI_Object::SI_GetImageInfo() - Image id 1084454432 type 0 (Unknown) not supported
2007-12-15 12:36:00 SI_NotifyError(0x40a2b5d4): Error 6 (FI_BadImageDataError)
2007-12-15 12:36:00 TRACE: Load Complete
2007-12-15 12:36:00 TRACE: Load init
2007-12-15 12:36:00 ClientObject::DoUpdate(id=5 master=n): got FI_FrameBufferNotUpdatedWithError
Webserver api file in place (should trigger a success):
2007-12-15 12:42:00 NetStreamRequest::Open(1): Opening protocol 'http://' host 'www.lunky.com' port 80 location '/randomphoto.php?91064844'
2007-12-15 12:42:00 NetStreamRequest::Open(1) opened http object id 6
2007-12-15 12:42:00 NetStreamRequest::ProcessHeaders(1) content-type: image/jpeg
2007-12-15 12:42:00 NetStreamRequest::Step(1) done, closing stream (20196 of 0 bytes, avail=0) status=200
2007-12-15 12:42:00 TRACE: Load Complete
2007-12-15 12:42:00 TRACE: Load init
Example Actionscript test code:
rand = Math.ceil(Math.random(9999999) * 100000000);
this.createEmptyMovieClip('pic_0',this.getNextHighestDepth());
// Load the clip
pic_listener = new Object();
pic_mcl = new MovieClipLoader();
pic_listener.onLoadComplete = function(target_mc:MovieClip) {
trace("Load complete");
}
pic_listener.onLoadInit = function(target_mc:MovieClip) {
trace("Load init");
}
pic_listener.onLoadError = function(target_mc:MovieClip, errorCode:String) {
trace("Load Error: "+errorCode);
}
pic_mcl.addListener(pic_listener);
pic_mcl.loadClip('http://www.lunky.com/randomphoto.php?'+rand, this['pic_0']);