[Sugar-devel] EaselJS+PreloadJS and XHR

laurent bernabe laurent.bernabe at gmail.com
Mon Jan 27 12:53:07 EST 2014


Thank you, I've got it :)

I should have defined

var image = loadingQueue.getResult("wb");

instead of

var image = loadingQueue.getResult("wb").result;

(I got this snippet somewhere on CreateJS forum, maybe coming from the use
of an old version).

Thanks :)

Regards


2014-01-27 Manuel Quiñones <manuq at laptop.org>

> 2014-01-27 laurent bernabe <laurent.bernabe at gmail.com>:
> > Thank you for your answer.
> >
> > In fact, I develop the activity and preview it from inside Brackets IDE.
> > Previews are shown inside a Chrome browser.
> > So, when previewing from Brackets IDE, we can say that I am viewing it
> > locally, in a browser, though it uses a kind of server (adress is for
> > example : http://127.0.0.1:39643/index.html).
> >
> > But I've also tested under osbuild (with run option), but the image does
> not
> > appear neither.
> >
> > For the links, I am using relative paths.
> > The repository LearnChess (LearnChess) is up to date : I haven't done any
> > change locally since.
>
> The 'complete' callback is called, I get 'loaded image' logged in the
> console.
>
> https://git.sugarlabs.org/learnchess/learnchess_web/blobs/master/js/activity.js#line40
>
> Seems a programming error.  If I log the variable 'image', I get undefined.
>
> https://git.sugarlabs.org/learnchess/learnchess_web/blobs/master/js/activity.js#line42
>
> , Let's move to IRC #sugar if you need more help .
>
> --
> .. manuq ..
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140127/4e7f5289/attachment.html>


More information about the Sugar-devel mailing list