Howdy!
You may want to try the following
image.addEventListener("changeLoaded", function(e) {
e.getData() && ( YOUR CODE HERE );
});
to handle the change of "loaded" to true.
It might help to read the documentation of qooxdoo's powerful event
system, particularly the so-called property events:
http://old.qooxdoo.org/documentation/event-system#link0
BTW, this article is still only available on the old homepage. Anyone
willing to transfer it to a page on the new site???
http://qooxdoo.org/documentation/user/event_system
Any help in transfering existing information is highly appreciated! :-)
Andreas
thetreed1 wrote:
> 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
>
>
--
Andreas Ecker Schlund + Partner AG
Team leader Frontend Brauerstr. 48
[EMAIL PROTECTED] 76135 Karlsruhe, Germany
fon +49 721 91374 4382 http://www.schlund.de
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