I agree with clint this is better off at the serverside where you could ad a hasImage property to your data.

The only other thing I could suggest is trying to use the httpStatus event of the image to detect a 404 status code
and change the image source to your silhouette image accordingly. This is kind of dirty in my opinion though because you are hitting up the server for items you don't know exist only to hit it up again.

Mike.

Clint Tredway wrote:
He will need to do this on the CF side as there isnt anything in AS3
that can detect file size unless he developing an AIR app.

On 6/14/07, Mike Kelp <[EMAIL PROTECTED]> wrote:

 Haha, sorry bout that...just realized your subject mentioned flex.

 Mike.

 John Ivanoff wrote:
I have first and last names of people
 When I select a person I check a directory to see in there is a jpeg
 in there that natches the name
 example
 name: "John Doe"
 I look for "John Doe.jpg"

 and I have this working. but I don't have photo's for all the people.
 If there is not a match I'll show a silhouette photo.
 I know it's a simple if then statement but I don't know check to see
 if I really have an image. Like file size?

 Thanks.
 John

 _______________________________________________
 Reply to DFWCFUG:  [email protected]
 Subscribe/Unsubscribe:
http://lists1.safesecureweb.com/mailman/listinfo/list
 List Archives:
http://www.mail-archive.com/list%40list.dfwcfug.org/
      http://www.mail-archive.com/list%40dfwcfug.org/
 DFWCFUG Sponsors:  www.instantspot.com/
  www.teksystems.com/


_______________________________________________
Reply to DFWCFUG:
  [email protected]
Subscribe/Unsubscribe:
  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives:
    http://www.mail-archive.com/list%40list.dfwcfug.org/
  http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors:
  www.instantspot.com/
  www.teksystems.com/




_______________________________________________
Reply to DFWCFUG: 
  [email protected]
Subscribe/Unsubscribe: 
  http://lists1.safesecureweb.com/mailman/listinfo/list
List Archives: 
    http://www.mail-archive.com/list%40list.dfwcfug.org/             
  http://www.mail-archive.com/list%40dfwcfug.org/
DFWCFUG Sponsors: 
  www.instantspot.com/
  www.teksystems.com/

Reply via email to