[R125] Load Image by URL in CocoonJS

Bugs will be moved here once resolved.

Post » Fri Apr 12, 2013 6:48 am

It's great to see ajax now working for project file imports in CocoonJS, but it still isn't working for loading images by URL. Thanks

Link to .capx file (required!):
https://dl.dropboxusercontent.com/u/41218343/LoadFromURLtest.capx

https://dl.dropboxusercontent.com/u/41218343/LoadByURL_2013_04_12-07_32_07_debug_signed.apk

Steps to reproduce:
1. Install file on Android or preview in browser
2.
3.

Observed result:
Works fine in the browser not in CocoonJS. Nothing is loaded in CocoonJS

Expected result:
2 Colours should load instantly and then after 10 seconds alternate between instances

Browsers affected:
Chrome: no
CocoonJS: Yes

Operating system & service pack:
Android 2.3 Samsung Galaxy S Clear

Construct 2 version:

R25
    Nathan2013-04-12 06:53:12
B
29
S
8
G
4
Posts: 61
Reputation: 6,205

Post » Fri Apr 12, 2013 3:53 pm

Closing, please report this to Ludei. It's a bug in CocoonJS and we can't fix it for them.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Thu May 09, 2013 3:44 pm

@Nathan I am using this functionality at the minute and its working fine, i havent compiled in the cloud yet though but its working fine in the cocoonjs launcher app, have you tried it in the launcher app? Im worried its a case of it works in the launcher app but not once its compiled to apk, i cant get access to the cloud compiler at the minute to test
B
11
S
2
G
3
Posts: 95
Reputation: 3,028

Post » Thu May 09, 2013 3:48 pm

Actually i think my scenario is different as im using full http urls

Any reason your doing it this way instead of just changing the images via animation frames? I mean if the images are already part of the project then why not?
B
11
S
2
G
3
Posts: 95
Reputation: 3,028

Post » Fri May 10, 2013 8:12 am

@theames It's interesting that it's working for you with full http urls. I've just tried my example in the launcher and it still doesn't work.

The reason why I want to load images in this way is we produce educational games, primarily for teaching languages. We would like to be able to dynamically load images from a very large pool without loading all the images into RAM.

For our purposes the problem should be solved when CocoonJS releases WebGl and layout by layout loading. However, it would be nice to be able to keep one code base for the online version (Load by URL so the user doesn't have to download all the images) and the mobile version.
B
29
S
8
G
4
Posts: 61
Reputation: 6,205

Post » Fri May 10, 2013 10:00 am

@Nathan

I have just tried your capx via cocoonjs launcher and can confirm it doesnt work for me either

you can look in the console of the app to see the error which you can pass on to Ludei

Its erroring on trying to open the path to the files folder, maybe you need to add a prefix on the uri path to help it point to the right location but searching the forums i havent found any info on what that might be

It definately works loading from live urls though as I just implemented this yesterday to include ads to our other games from within our new game, which strangely enough is also an educational childrens game
B
11
S
2
G
3
Posts: 95
Reputation: 3,028


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests