[Sugar-devel] EaselJS+PreloadJS and XHR
Manuel Quiñones
manuq at laptop.org
Mon Jan 27 12:00:08 EST 2014
2014-01-27 laurent bernabe <laurent.bernabe at gmail.com>:
> Hello everyone,
>
> I am using EaselJS and PreloadJS in one of my web activities (LearnChess) in
> order to manage pictures inside a canvas. But I don't manage to show png
> files.
How are you trying?
> According to this post : createjs_forum it can't be done locally without
> launching a server like lampp, because CreateJS libraries rely on XHR.
>
> So does this mean that CreateJS is not well suited for Sugar ?
No. Sugar serves the files correctly. Chances are:
1. you are trying your activity locally, directly in a browser from
file://...index.html
2. you have added links to file://.../image.png
If 1. run your activity from Sugar, or use a local server like "python
-m SimpleHTTPServer"
If 2. use relative paths to link your images
--
.. manuq ..
More information about the Sugar-devel
mailing list