Use Embed keyword that will help embedding the image in a class while 
compiling.[Embed("assets/status.png")]
private var status:Class;Thanks,

with Regards,
Jitendra Jain




----- Original Message ----
From: bhaq1972 <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, 30 September, 2008 5:35:19 PM
Subject: [flexcoders] determine if image source exists


How can I check if a the jpg source defined by a string really exists. 
eg

var image1:Image = new Image();
var sHello:String = "images/hello. jpg";

if(sHello exists) // this is the bit i need help on
{
image1.source = sHello;
}

tia
bod

  image.source=status; 


      Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/

Reply via email to