Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

how to adapt code which works on stage to the preloader

$
0
0

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?


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>