I have this code:
$.getJSON('http://jsonp.jit.su/?...etc', function(data) {
sym.setVariable("url1",data.Data.url);
sym.setVariable("minBet", data.Data.minBetAmount);
sym.setVariable("maxBet", data.Data.maxBetAmount);
sym.setVariable("maxWin", data.Data.maxWinAmount);
sym.setVariable("coef", data.Data.BetCoef);
});
it works on stage, but then I use it on preloader loading code,
I get ReferenceError's: $ and sym is not defined
How should I adapt the code?