Hi,

> I have recently tried to load an animated sprite without any success.  I am
> digging into the code and have found the "ImageLoader.js" file, however I
> cannot locate where the image actually gets loaded.  It says in the source
> "el.src = source" (which seems to be a member assignment) and the comment is
> "Start loading of image".

The comment is correct. This is where the image is loaded. Or, put more 
precisely, the browser instructed to load and parse the image. __onload is 
triggered when the image is loaded successfully. It tries to read and cache the 
image size.

> Some observations:
> -An animated GIF returns an error when loaded (saying the image was unable
> to load);
> -An APNG should display the basic static PNG althought I see nothing at all
> (but it produces no error).

Just for comparison, have you tried to load a normal, non-animated PNG?

> 
> I was wondering if someone could steer me to where the actual loading gets
> done (parsing of the graphics file).  In the meantime I will continue to
> search...  I may also be searching in the wrong location.

The parsing is not done in JavaScript. If you want to display an image. Its 
format must be supported by the browser. What happens if you browse directly to 
the image?

Tristan



------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to