0 Replies Latest reply on Aug 21, 2014 12:01 AM by pauliuspt

    how to adapt code which works on stage to the preloader

    pauliuspt

      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?