Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17126

How to load json files from remote server?(mobile)

$
0
0

@eydamson wrote:

Hi i am trying to load a json file from my server.. so i tried

cc.loader.load({id: 'http://example.com/data.json', type: 'json'}, function (err, tex) {
});

cc.loader.load('http://example.com/data.json', function (err, tex) {
});

these codes are working on web platform.. but not on android..
and i tried looking at cc.loader.getItems() my json file is not there..
why it its not working on android? tired_face

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17126

Latest Images

Trending Articles



Latest Images