1 person found this helpful
I don't think there is anything you can insert in there. There aren't any
properties to watch that will tell you what you want.
I think it would be better to set the source property in code. Why waste
the cycles to fetch an image that doesn't exist? And if you know the image
doesn't exist, then turn off the visible and includeInLayout.
If you don't know if the image exists, you might be able to use complete and
ioerror events to set the visible and includeInLayout properties.
Hi mate. Sorry for the late reply. The problem is this - the image displays profile pictures of players and is always visible on the page the idea being as the user clicks each player name the image of the player changes dynamically. Each player object has a property called surname after which the images are named eg smith.jpg jones.jpg etc. Would it be better to assign each player a property called something like "hasProfileImage" which can be a boolean so if it is set to true for a player the image will appear for the selected player yet if the selected player's value is false it won't?
I wanted to avoid doing this as I didn't want each player item to have too many properties but I suppose it needs to be done for this if there is no way to check if the source exists/is valid.