Hello,
  I am trying to tell when an image is loaded by using the getLoaded
function.  But it appears that is always seems to return false.

Example:
 
  QxDebug( "Debug", "Loading waiter image" );
  if( this.getChildrenLength( ) > 0 )
    {
      this.removeAll();
    }
  var image = new QxImage( "/images/globerot.gif" );
 
  image.setLeft( this.getInnerWidthForChild( )/2 - ( 300/2 ));
  image.setTop( this.getInnerHeightForChild( )/2 - ( 300/2 )); 
 
  image.setBackgroundColor( 255 );
  image.setResizeToInner( true );
  
  this.add( image );
 
  alert( image.getLoaded( ) );
 
If I replace the alert with a while(!image.getLoaded( ) ) the script will
just hang.  
 
Am I missing something?
 
TIA
 
 
Timothy Reed 
Software Engineer 

BAE Systems – National Security Solutions 
428 Phoenix Drive 
Griffiss Business & Technology Park 
Rome, NY 13441 
Phone: (315) 838-2284 
Email: [EMAIL PROTECTED] 

"Microsoft is now talking about the digital nervous system... I guess I
would be nervous if my system was built on their technology too." - Scott
McNealy  - CEO Sun Microsystems

 
-- 
View this message in context: 
http://www.nabble.com/QxImage-and-getLoaded-tf1855672.html#a5067158
Sent from the qooxdoo-devel forum at Nabble.com.


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to