Maybe check length > 0 if there is text in the file...

BLITZ | Steven Sacks - 310-551-0200 x209


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:flashcoders-
> [EMAIL PROTECTED] On Behalf Of edwin
> Sent: Wednesday, June 28, 2006 4:46 PM
> To: [email protected]
> Subject: [Flashcoders] loadClip is OK with loading a text file
> 
> I've got a situation where I'm loading in images using loadClip and
> testing
> the success with onLoadError - it works fine if the URL doesn't point
to
> anything, but the way it's set up, if the image is missing the URL
will
> point to a text file. Instead of failing and initiating the
onLoadError
> handler, it seems to accept te text file and execute my onLoadComplete
> handler. How can I then determine that I've received a text file
rather
> than
> a proper image file?
> 
> Thanks,
> -edwin
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> 
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to